]> git.hungrycats.org Git - linux/commit
cpufreq/amd-pstate: Add support for raw EPP writes
authorMario Limonciello (AMD) <superm1@kernel.org>
Sun, 29 Mar 2026 20:38:10 +0000 (15:38 -0500)
committerMario Limonciello (AMD) <superm1@kernel.org>
Thu, 2 Apr 2026 16:29:25 +0000 (11:29 -0500)
commit6927f21852f38db2975b5d5539cbe5241c25a99b
treede93289d2538e1308e05db1951ed23965b67bf80
parent798c47593ccae7dd36c033e557f3f364a2056b9e
cpufreq/amd-pstate: Add support for raw EPP writes

The energy performance preference field of the CPPC request MSR
supports values from 0 to 255, but the strings only offer 4 values.

The other values are useful for tuning the performance of some
workloads.

Add support for writing the raw energy performance preference value
to the sysfs file.  If the last value written was an integer then
an integer will be returned.  If the last value written was a string
then a string will be returned.

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/amd-pstate.c
drivers/cpufreq/amd-pstate.h