[PATCH 0/2] Fixes for wrong performance levels in acpi-cpufreq

Mario Limonciello
2024-06-26T04:21:43Z

In testing with amd-pstate disabled, I noticed that family 0x19 model 0x70
(Phoenix) was reporting an inccorrect max frequency. This is because the
perf levels used to look it up are wrong.

The correct values are stored in amd-pstate, but there is no reason to
store it in two places. Move the amd-pstate values over to one place
so that both drivers get the right values.

Mario Limonciello (2):
x86/cpu/amd: Clarify amd_get_highest_perf()
cpufreq: amd-pstate: Use amd_get_highest_perf() to lookup perf values

arch/x86/kernel/cpu/amd.c | 44 ++++++++++++++++++++++++++++++------
drivers/cpufreq/amd-pstate.c | 21 ++---------------
2 files changed, 39 insertions(+), 26 deletions(-)

--
2.43.0