Skip to content

Commit e1415b9

Browse files
spandruvadaij-intel
authored andcommitted
platform/x86: ISST: Reset core count to 0
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: 885d1c2 ("platform/x86: ISST: Support SST-TF revision 2") Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260325192638.3417281-1-srinivas.pandruvada@linux.intel.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent fbddf68 commit e1415b9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,8 @@ static int isst_if_get_turbo_freq_info(void __user *argp)
14611461
SST_MUL_FACTOR_FREQ)
14621462
}
14631463

1464+
memset(turbo_freq.bucket_core_counts, 0, sizeof(turbo_freq.bucket_core_counts));
1465+
14641466
if (feature_rev >= 2) {
14651467
bool has_tf_info_8 = false;
14661468

0 commit comments

Comments
 (0)