Skip to content

RFC cpufreq/amd-pstate: Rework dynamic_epp as an energy_performance_preference mode

K Prateek Nayak linux-doc linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6cpufreq/amd-pstate: Extract platform profile to EPP conversion into a helperdrivers/cpufreq/amd-pstate.c+32 -351 reply
2/6cpufreq/amd-pstate: Add dynamic EPP as an "energy_performance_preference" modedrivers/cpufreq/amd-pstate.c+79 -112 replies
3/6cpufreq/amd-pstate: Repurpose "amd_dynamic_epp" cmdline and corresponding sysfsdrivers/cpufreq/amd-pstate.c+12 -363 replies
4/6Documentation/amd-pstate: Update dynamic_epp documentation with new behaviorDocumentation/admin-guide/pm/amd-pstate.rst+38 -230 replies
4/6Documentation/amd-pstate: Update dynamic_epp documentation with new behaviorDocumentation/admin-guide/pm/amd-pstate.rst+38 -230 replies
5/6cpufreq/amd-pstate: Reduce the scope of exported symbolsdrivers/cpufreq/amd-pstate.c drivers/cpufreq/amd-pstate.h+14 -71 reply
6/6cpufreq/amd-pstate-ut: Add unit test for "dynamic" EPP modedrivers/cpufreq/amd-pstate-ut.c drivers/cpufreq/amd-pstate.c drivers/cpufreq/amd-pstate.h+33 -220 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchMario Limonciello (AMD)
1/6R-b
2/6
3/6
4/6
4/6
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/6] cpufreq/amd-pstate: Rework dynamic_epp as an energy_performance_preference mode

Like custom_epp, move dnamic_epp functionality into a energy_performance_preference selection which makes the integration more natural with the rest of the driver functionality.

RFC is mainly to check if this is a good idea and if the "dynamic_epp" sysfs needs to be retained? I've retained it in the series, changing it to a RO attribute to reflect if the feature is disabled from kenel cmdline but it seems unnecessary with the feature available as an "energy_performance_preference" which can be toggled anytime.

Series is based on linux-pm:bleeding-edge at commit 03842bb4dfb5 ("Merge branch 'experimental/acpi-driver-work' into bleeding-edge") (30-06-2026) with Marco's series from [1] applied on top.

[1] https://lore.kernel.org/lkml/[email protected]/
---
K Prateek Nayak (6):
cpufreq/amd-pstate: Extract platform profile to EPP conversion into a
helper
cpufreq/amd-pstate: Add dynamic EPP as an
"energy_performance_preference" mode
cpufreq/amd-pstate: Repurpose "amd_dynamic_epp" cmdline and
corresponding sysfs
Documentation/amd-pstate: Update dynamic_epp documentation with new
behavior
cpufreq/amd-pstate: Reduce the scope of exported symbols cpufreq/amd-pstate-ut: Add unit test for "dynamic" EPP mode

 Documentation/admin-guide/pm/amd-pstate.rst |  61 ++++--
 drivers/cpufreq/amd-pstate-ut.c             |  48 +++--
 drivers/cpufreq/amd-pstate.c                | 221 ++++++++++++--------
 drivers/cpufreq/amd-pstate.h                |   8 +
 4 files changed, 206 insertions(+), 132 deletions(-)

base-commit: 03842bb4dfb516e7c3c6323fede451823c4629dc
prerequisite-message-id: [email protected]
prerequisite-patch-id: 15637b279250c6f653e42afb1c7ed7970be2627e
prerequisite-patch-id: f8c8f4064db0f33251d420723da8c92d9d803890
prerequisite-patch-id: 72386a2a5a24597eccbeb16624dcfd8b27770c16

Signature · 1 line
2.34.1