]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: ISST: Correct command storage data length
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 28 Mar 2025 22:47:49 +0000 (15:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:39:23 +0000 (07:39 +0200)
commitca898f02fe0a58a20ac51f27c18fc6aa12d3fa18
tree2f18da3115e8542cdad229952cddf7ceeb086a20
parent6fa53ec60ffa3ba9079d6fe6fc9d6e1d1578bb98
platform/x86: ISST: Correct command storage data length

[ Upstream commit 9462e74c5c983cce34019bfb27f734552bebe59f ]

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: f607874f35cb ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/intel_speed_select_if/isst_if_common.c