]> git.hungrycats.org Git - linux/commit
cpufreq/amd-pstate: Fix setting EPP in performance mode
authorMario Limonciello (AMD) <superm1@kernel.org>
Sat, 30 May 2026 15:04:34 +0000 (17:04 +0200)
committerMario Limonciello <superm1@kernel.org>
Tue, 2 Jun 2026 17:32:06 +0000 (12:32 -0500)
commit5629eec1a2829871d496f3042884cdc267612f6a
treead4eb7c6b11c07f422cc2295ea12ed1e07405886
parent3cd07ee35a66038fd1a643632bfc057645e07c9a
cpufreq/amd-pstate: Fix setting EPP in performance mode

EPP 0 is the only supported value in the performance policy.
commit 798c47593cca ("cpufreq/amd-pstate: Add support for platform profile
class") changed this while adding platform profile support to the
dynamic EPP feature, but this actually wasn't necessary since platform
profile writes disable manual EPP writes.

Restore allowing writing EPP of 0 when in performance mode.

Reviewed-by: Marco Scardovi <scardracs@disroot.org>
Tested-by: Marco Scardovi <scardracs@disroot.org>
Reported-by: Stuart Meckle <stuartmeckle@gmail.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221473
Closes: https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/work_items/190
Fixes: 798c47593cca ("cpufreq/amd-pstate: Add support for platform profile class")
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
drivers/cpufreq/amd-pstate.c