cpufreq/amd-pstate: Use nominal perf for limits when boost is disabled
authorMario Limonciello <mario.limonciello@amd.com>
Sat, 12 Oct 2024 17:45:16 +0000 (12:45 -0500)
committerMario Limonciello <mario.limonciello@amd.com>
Wed, 16 Oct 2024 04:54:15 +0000 (23:54 -0500)
commit18d9b52271213890da295a7c63ef8880ed570cd8
tree12ad5478895651142a333485e34b9ad835e634f2
parentc10e50a469b5ec91eabf653526a22bdce03a9bca
cpufreq/amd-pstate: Use nominal perf for limits when boost is disabled

When boost has been disabled the limit for perf should be nominal perf not
the highest perf.  Using the latter to do calculations will lead to
incorrect values that are still above nominal.

Fixes: ad4caad58d91 ("cpufreq: amd-pstate: Merge amd_pstate_highest_perf_set() into amd_get_boost_ratio_numerator()")
Reported-by: Peter Jung <ptr1337@cachyos.org>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219348
Reviewed-by: Perry Yuan <perry.yuan@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Tested-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Link: https://lore.kernel.org/r/20241012174519.897-1-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c