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

From: Mario Limonciello (AMD)

Date: Tue Sep 08 2026 - 00:22:04 EST


EPP tunings are going to be more important going forward. Show a warning
if on a heterogenous 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 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