]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate: Use topology_logical_package_id() instead of logical_die_id()
authorGautham R. Shenoy <gautham.shenoy@amd.com>
Tue, 13 Aug 2024 09:51:14 +0000 (15:21 +0530)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 22 Aug 2024 20:42:10 +0000 (15:42 -0500)
commit0d8584d288a9b4132e945d76bcc04395d158b2e7
tree4da7ecbdb2b8016e66713e152a6f1ddf84f60c10
parent67d95303c84732c2e1de5730756281f648dbefaf
cpufreq/amd-pstate: Use topology_logical_package_id() instead of logical_die_id()

After the commit 63edbaa48a57 ("x86/cpu/topology: Add support for the
AMD 0x80000026 leaf"), the topolgy_logical_die_id() function returns
the logical Core Chiplet Die (CCD) ID instead of the logical socket
ID.

Since this is currently used to set MSR_AMD_CPPC_ENABLE, which needs
to be set on any one of the threads of the socket, it is prudent to
use topology_logical_package_id() in place of
topology_logical_die_id().

Fixes: 63edbaa48a57 ("x86/cpu/topology: Add support for the AMD 0x80000026 leaf")
cc: stable@vger.kernel.org # 6.10
Signed-off-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Tested-by: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Link: https://lore.kernel.org/lkml/20240801124509.3650-1-Dhananjay.Ugwekar@amd.com/
Signed-off-by: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c