]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/amd: Use heterogeneous core topology for identifying boost numerator
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 25 Oct 2024 17:14:59 +0000 (12:14 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 25 Oct 2024 18:51:17 +0000 (20:51 +0200)
commit3eef25ab0d89cb1e55699a4d242c5afe17dbbd07
treef02095e00b20c6998dc026e46c546ab7e5998ed7
parent45239ba39a5279e9efc671774e2eef29df4d2484
x86/amd: Use heterogeneous core topology for identifying boost numerator

AMD heterogeneous designs include two types of cores:

 * Performance
 * Efficiency

Each core type has different highest performance values configured by the
platform.  Drivers such as amd_pstate need to identify the type of core to
correctly set an appropriate boost numerator to calculate the maximum
frequency.

X86_FEATURE_AMD_HETEROGENEOUS_CORES is used to identify whether the SoC
supports heterogeneous core type by reading CPUID leaf Fn_0x80000026.

On performance cores the scaling factor of 196 is used.  On efficiency cores
the scaling factor is the value reported as the highest perf.  Efficiency
cores have the same preferred core rankings.

Suggested-by: Perry Yuan <perry.yuan@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20241025171459.1093-6-mario.limonciello@amd.com
arch/x86/kernel/acpi/cppc.c