Thread (6 messages) flat view 6 messages, 2 authors, 13d ago
COOLING13d

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

From: "Mario Limonciello (AMD)" <superm1@kernel.org>
Date: 2026-09-08 04:19:43
Also in: lkml
Subsystem: amd pstate driver, cpu frequency scaling framework, the rest · Maintainers: Huang Rui, Mario Limonciello, "Rafael J. Wysocki", Viresh Kumar, Linus Torvalds

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

Suggested-by: Christian Ludloff <redacted>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
---
 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 543ec143efc94..7c1f8ca7b7f72 100644
--- a/drivers/cpufreq/amd-pstate.c
+++ b/drivers/cpufreq/amd-pstate.c
@@ -2390,8 +2390,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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help