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

From: Mario Limonciello
Date: Wed Jun 26 2024 - 00:22:03 EST


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