]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq/amd-pstate: Add dynamic energy performance preference
authorMario Limonciello (AMD) <superm1@kernel.org>
Sun, 29 Mar 2026 20:38:07 +0000 (15:38 -0500)
committerMario Limonciello (AMD) <superm1@kernel.org>
Thu, 2 Apr 2026 16:29:02 +0000 (11:29 -0500)
commite30ca6dd5345c5b8ba05f346a8e81105352fe571
tree751cb69f5363db19492b53fad8e0991e76a4acc1
parenta362ae6e7e85bca4c870c37085d7793c4beec360
cpufreq/amd-pstate: Add dynamic energy performance preference

Dynamic energy performance preference changes the EPP profile based on
whether the machine is running on AC or DC power.

A notification chain from the power supply core is used to adjust EPP
values on plug in or plug out events.

When enabled, the driver exposes a sysfs toggle for dynamic EPP, blocks
manual writes to energy_performance_preference while it "owns" the EPP
updates.

For non-server systems:
    * the default EPP for AC mode is `performance`.
    * the default EPP for DC mode is `balance_performance`.

For server systems dynamic EPP is mostly a no-op.

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Documentation/admin-guide/pm/amd-pstate.rst
drivers/cpufreq/Kconfig.x86
drivers/cpufreq/amd-pstate.c
drivers/cpufreq/amd-pstate.h