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

Yo-Jung Leo Lin (AMD) Leo.Lin at amd.com
Thu Sep 17 08:39:20 UTC 2026


From: Mario Limonciello <mario.limonciello at amd.com>

BugLink: https://bugs.launchpad.net/bugs/2167558

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

Reviewed-by: K Prateek Nayak <kprateek.nayak at amd.com>
Tested-by: K Prateek Nayak <kprateek.nayak at amd.com>
Suggested-by: Christian Ludloff <ludloff at gmail.com>
Signed-off-by: Mario Limonciello <mario.limonciello at amd.com>
(cherry picked from commit 350de8c394d4e61df6ebe31d8ddd928a69766fd3 linux-next)
Signed-off-by: Yo-Jung Leo Lin (AMD) <Leo.Lin at amd.com>
---
 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 5666229c98674..5eb03c7792cf4 100644
--- a/drivers/cpufreq/amd-pstate.c
+++ b/drivers/cpufreq/amd-pstate.c
@@ -2367,8 +2367,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




More information about the kernel-team mailing list