]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
platform/x86: ISST: Correct locked bit width
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 23 Mar 2026 15:36:35 +0000 (08:36 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 24 Mar 2026 10:31:10 +0000 (12:31 +0200)
SST-PP locked bit width is set to three bits. It should be only one bit.
Use SST_PP_LOCK_WIDTH define instead of SST_PP_LEVEL_WIDTH.

Fixes: ea009e4769fa ("platform/x86: ISST: Add SST-PP support via TPMI")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260323153635.3263828-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>
drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c

index 6f46cbb2898fdfaf0bbdc635530113c1f0a823af..e238c3105c78e7a3750ec07b813eab1d6f758395 100644 (file)
@@ -872,7 +872,7 @@ static int isst_if_get_perf_level(void __user *argp)
        _read_pp_info("current_level", perf_level.current_level, SST_PP_STATUS_OFFSET,
                      SST_PP_LEVEL_START, SST_PP_LEVEL_WIDTH, SST_MUL_FACTOR_NONE)
        _read_pp_info("locked", perf_level.locked, SST_PP_STATUS_OFFSET,
-                     SST_PP_LOCK_START, SST_PP_LEVEL_WIDTH, SST_MUL_FACTOR_NONE)
+                     SST_PP_LOCK_START, SST_PP_LOCK_WIDTH, SST_MUL_FACTOR_NONE)
        _read_pp_info("feature_state", perf_level.feature_state, SST_PP_STATUS_OFFSET,
                      SST_PP_FEATURE_STATE_START, SST_PP_FEATURE_STATE_WIDTH, SST_MUL_FACTOR_NONE)
        perf_level.enabled = !!(power_domain_info->sst_header.cap_mask & BIT(1));