linux/drivers/platform/x86/intel/speed_select_if
Srinivas Pandruvada 9462e74c5c
platform/x86: ISST: Correct command storage data length
After resume/online turbo limit ratio (TRL) is restored partially if
the admin explicitly changed TRL from user space.

A hash table is used to store SST mail box and MSR settings when modified
to restore those settings after resume or online. This uses a struct
isst_cmd field "data" to store these settings. This is a 64 bit field.
But isst_store_new_cmd() is only assigning as u32. This results in
truncation of 32 bits.

Change the argument to u64 from u32.

Fixes: f607874f35 ("platform/x86: ISST: Restore state on resume")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250328224749.2691272-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>
2025-04-01 14:20:53 +03:00
..
Kconfig platform/x86: ISST: Enumerate TPMI SST and create framework 2023-03-16 15:18:02 +01:00
Makefile platform/x86: ISST: Enumerate TPMI SST and create framework 2023-03-16 15:18:02 +01:00
isst_if_common.c platform/x86: ISST: Correct command storage data length 2025-04-01 14:20:53 +03:00
isst_if_common.h platform/x86: ISST: Avoid some SkyLake server models 2024-05-31 16:24:43 +03:00
isst_if_mbox_msr.c platform/x86: intel_speed_select_if: Switch to new Intel CPU model defines 2024-06-03 09:49:12 +03:00
isst_if_mbox_pci.c
isst_if_mmio.c platform/x86: intel_speed_select_if: Use devm_ioremap_resource 2023-10-04 11:10:31 +03:00
isst_tpmi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
isst_tpmi_core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
isst_tpmi_core.h platform/x86: ISST: Add suspend/resume callbacks 2023-03-16 15:18:02 +01:00