]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
perf/x86/intel: Add Panther Lake support
authorKan Liang <kan.liang@linux.intel.com>
Tue, 15 Apr 2025 11:44:07 +0000 (11:44 +0000)
committerIngo Molnar <mingo@kernel.org>
Thu, 17 Apr 2025 12:19:59 +0000 (14:19 +0200)
From PMU's perspective, Panther Lake is similar to the previous
generation Lunar Lake. Both are hybrid platforms, with e-core and
p-core.

The key differences are the ARCH PEBS feature and several new events.
The ARCH PEBS is supported in the following patches.
The new events will be supported later in perf tool.

Share the code path with the Lunar Lake. Only update the name.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20250415114428.341182-2-dapeng1.mi@linux.intel.com
arch/x86/events/intel/core.c

index 2b70a3adde2f83c707a623adbfc5c33b888a82c7..00dfe487bd00ea81ec7e64d9871bc03b70133b47 100644 (file)
@@ -7314,8 +7314,17 @@ __init int intel_pmu_init(void)
                name = "meteorlake_hybrid";
                break;
 
+       case INTEL_PANTHERLAKE_L:
+               pr_cont("Pantherlake Hybrid events, ");
+               name = "pantherlake_hybrid";
+               goto lnl_common;
+
        case INTEL_LUNARLAKE_M:
        case INTEL_ARROWLAKE:
+               pr_cont("Lunarlake Hybrid events, ");
+               name = "lunarlake_hybrid";
+
+       lnl_common:
                intel_pmu_init_hybrid(hybrid_big_small);
 
                x86_pmu.pebs_latency_data = lnl_latency_data;
@@ -7337,8 +7346,6 @@ __init int intel_pmu_init(void)
                intel_pmu_init_skt(&pmu->pmu);
 
                intel_pmu_pebs_data_source_lnl();
-               pr_cont("Lunarlake Hybrid events, ");
-               name = "lunarlake_hybrid";
                break;
 
        case INTEL_ARROWLAKE_H: