platform/x86: ISST: Allow reading core-power state on HWP disabled systems
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 29 Feb 2024 00:26:59 +0000 (16:26 -0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 12 Mar 2024 10:47:58 +0000 (12:47 +0200)
commite8b4223dbf12cb6b722e1b8c48a9386cb096d4fb
tree3dd8518d70e9002137c5d21b573075e9ef21ea9d
parenta6dcd3f1725e048de521e9d9421b0751ba0aa379
platform/x86: ISST: Allow reading core-power state on HWP disabled systems

When HWP (Hardware P-states) is disabled, dynamic SST features are
disabled. But user should still be able to read the current core-power
state, with legacy P-states. This will allow users to read current
configuration with static SST enabled from BIOS.

To address this, do not call disable_dynamic_sst_features() when the
request is for reading the state.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://lore.kernel.org/r/20240229002659.1416623-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