platform/x86: ISST: Use fuse enabled mask instead of allowed levels
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 3 Oct 2023 16:32:31 +0000 (09:32 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 4 Oct 2023 08:10:24 +0000 (11:10 +0300)
commitda4082841ccf022beae73e63d3f476f59777172b
tree0a36da52f2312ad770d14333f1415d707fa134f6
parent49d371ab9d2c850867332b469fa6b3a2d5cf338c
platform/x86: ISST: Use fuse enabled mask instead of allowed levels

Allowed level mask is a mask of levels, which are currently allowed to
dynamically switch by the OS. Fused mask is a mask of all levels even if
OS is not allowed to switch.

Even if OS is not allowed to dynamically switch, it is still possible for
user to boot to a level by using BIOS option. To decide which level to
boot next time, user wants to check parameters (power, performance or
thermal) of that level to decide.

So, when passing the level mask for display to user space, use fuse
enabled mask, which has all levels.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20231003163234.1856669-2-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