[PATCH v3 3/3] cpufreq/amd-pstate: Show a warning if missing EPP tunings

From: Mario Limonciello

Date: Tue Sep 08 2026 - 23:37:18 EST


From: "Mario Limonciello (AMD)" <superm1@xxxxxxxxxx>

EPP tunings are going to be more important going forward. Show a warning
if on a heterogeneous platform without them.

Suggested-by: Christian Ludloff <ludloff@xxxxxxxxx>
Signed-off-by: Mario Limonciello (AMD) <superm1@xxxxxxxxxx>
---
drivers/cpufreq/amd-pstate.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
index 380294bb56cd7..ae6caef389bd7 100644
--- a/drivers/cpufreq/amd-pstate.c
+++ b/drivers/cpufreq/amd-pstate.c
@@ -2376,8 +2376,12 @@ static void __init amd_pstate_init_epp_values(void)
const struct x86_cpu_id *id = x86_match_cpu(amd_pstate_epp_soc_ids);
const struct amd_pstate_epp_soc *soc;

- if (!id || !id->driver_data)
+ if (!id || !id->driver_data) {
+ if (cpu_feature_enabled(X86_FEATURE_ZEN6) &&
+ cpu_feature_enabled(X86_FEATURE_AMD_HTR_CORES))
+ pr_warn_once("No EPP tunings found for platform\n");
return;
+ }

soc = (const struct amd_pstate_epp_soc *)id->driver_data;

--
2.43.0