* [PATCH] platform/x86: ISST: Reset core count to 0
@ 2026-03-25 19:26 Srinivas Pandruvada
2026-03-27 12:00 ` Ilpo Järvinen
0 siblings, 1 reply; 2+ messages in thread
From: Srinivas Pandruvada @ 2026-03-25 19:26 UTC (permalink / raw)
To: hansg, ilpo.jarvinen
Cc: platform-driver-x86, linux-kernel, Srinivas Pandruvada, stable
Based on feature revision, number of buckets can be less than the
TRL_MAX_BUCKETS. In that case core counts in the remaining buckets
can be set to some invalid values.
Hence reset core count to 0 for all buckets before assigning correct
values.
Fixes: 885d1c2a30b7 ("platform/x86: ISST: Support SST-TF revision 2")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: stable@vger.kernel.org
---
drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
index b8cdaa233ea9..dc22504aea32 100644
--- a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
+++ b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
@@ -1458,6 +1458,8 @@ static int isst_if_get_turbo_freq_info(void __user *argp)
SST_MUL_FACTOR_FREQ)
}
+ memset(turbo_freq.bucket_core_counts, 0, sizeof(turbo_freq.bucket_core_counts));
+
if (feature_rev >= 2) {
bool has_tf_info_8 = false;
--
2.52.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] platform/x86: ISST: Reset core count to 0
2026-03-25 19:26 [PATCH] platform/x86: ISST: Reset core count to 0 Srinivas Pandruvada
@ 2026-03-27 12:00 ` Ilpo Järvinen
0 siblings, 0 replies; 2+ messages in thread
From: Ilpo Järvinen @ 2026-03-27 12:00 UTC (permalink / raw)
To: hansg, Srinivas Pandruvada; +Cc: platform-driver-x86, linux-kernel, stable
On Wed, 25 Mar 2026 12:26:38 -0700, Srinivas Pandruvada wrote:
> Based on feature revision, number of buckets can be less than the
> TRL_MAX_BUCKETS. In that case core counts in the remaining buckets
> can be set to some invalid values.
>
> Hence reset core count to 0 for all buckets before assigning correct
> values.
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-fixes branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my
local branch there, which might take a while.
The list of commits applied:
[1/1] platform/x86: ISST: Reset core count to 0
commit: e1415b9418eb22b4a7a1ef4b4aec9dd0a49e3fa7
--
i.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-27 12:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-25 19:26 [PATCH] platform/x86: ISST: Reset core count to 0 Srinivas Pandruvada
2026-03-27 12:00 ` Ilpo Järvinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®