mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/1] cpufreq/amd-pstate: Prevent active mode on systems without EPP support
@ 2026-06-03  8:19 Marco Scardovi
  2026-06-03  8:19 ` [PATCH 1/1] " Marco Scardovi
  2026-06-03  9:39 ` [PATCH 0/1] " K Prateek Nayak
  0 siblings, 2 replies; 12+ messages in thread
From: Marco Scardovi @ 2026-06-03  8:19 UTC (permalink / raw)
  To: viresh.kumar, rafael, ray.huang, mario.limonciello
  Cc: perry.yuan, kprateek.nayak, wyes.karny, stuartmeckle, linux-pm,
	linux-kernel

Hi all,

Mario, I've made the actual changes you have requested me on bugzilla for
https://bugzilla.kernel.org/show_bug.cgi?id=221473 . Let me know if it sits
right with you.

Prevent the amd-pstate driver from loading in EPP-reliant "active" mode on
systems without Collaborative Processor Performance Control (CPPC) Energy
Performance Preference (EPP) support (such as Zen 2 and older processors).

Zen 2 and older processors do not support EPP. Loading the driver in active
mode on these systems pins the CPU frequency to the lowest non-linear
frequency (1.7GHz).

To resolve this:
- Unconditionally probe EPP support during driver initialization via a new
  amd_pstate_epp_supported() helper, which queries cppc_get_epp_perf() on
  the first online CPU.
- Lack of ENERGY_PERF support or any error from cppc_get_epp_perf() causes
  EPP to be treated as unsupported.
- Cache EPP support to avoid repeated capability checks during mode switches.
- Fall back to passive mode at boot if EPP is unsupported.
- Reject runtime switches to active mode with -ENODEV.

Please review and provide feedback.

Thanks,
Marco


Marco Scardovi (1):
  cpufreq/amd-pstate: Prevent active mode on systems without EPP support

 drivers/cpufreq/amd-pstate.c | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-06-05  3:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03  8:19 [PATCH 0/1] cpufreq/amd-pstate: Prevent active mode on systems without EPP support Marco Scardovi
2026-06-03  8:19 ` [PATCH 1/1] " Marco Scardovi
2026-06-03  9:39 ` [PATCH 0/1] " K Prateek Nayak
2026-06-03 11:56   ` [PATCH v2 0/2] cpufreq/amd-pstate: Fix EPP initialization and add capability check Marco Scardovi
2026-06-03 11:56     ` [PATCH v2 1/2] cpufreq/amd-pstate: Fix EPP initialization for shared memory systems Marco Scardovi
2026-06-03 18:53       ` Mario Limonciello
2026-06-04  3:56         ` K Prateek Nayak
2026-06-04  6:56           ` Marco Scardovi
2026-06-04 18:43             ` Mario Limonciello
2026-06-05  3:41               ` K Prateek Nayak
2026-06-03 11:56     ` [PATCH v2 2/2] cpufreq/amd-pstate: Prevent active mode on systems without EPP support Marco Scardovi
2026-06-03 18:08     ` [PATCH v2 0/2] cpufreq/amd-pstate: Fix EPP initialization and add capability check Mario Limonciello

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®