Skip to content

Commit 7950de1

Browse files
Kan LiangIngo Molnar
authored andcommitted
perf/x86/intel: Add Panther Lake support
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
1 parent 71dcc11 commit 7950de1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

arch/x86/events/intel/core.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7314,8 +7314,17 @@ __init int intel_pmu_init(void)
73147314
name = "meteorlake_hybrid";
73157315
break;
73167316

7317+
case INTEL_PANTHERLAKE_L:
7318+
pr_cont("Pantherlake Hybrid events, ");
7319+
name = "pantherlake_hybrid";
7320+
goto lnl_common;
7321+
73177322
case INTEL_LUNARLAKE_M:
73187323
case INTEL_ARROWLAKE:
7324+
pr_cont("Lunarlake Hybrid events, ");
7325+
name = "lunarlake_hybrid";
7326+
7327+
lnl_common:
73197328
intel_pmu_init_hybrid(hybrid_big_small);
73207329

73217330
x86_pmu.pebs_latency_data = lnl_latency_data;
@@ -7337,8 +7346,6 @@ __init int intel_pmu_init(void)
73377346
intel_pmu_init_skt(&pmu->pmu);
73387347

73397348
intel_pmu_pebs_data_source_lnl();
7340-
pr_cont("Lunarlake Hybrid events, ");
7341-
name = "lunarlake_hybrid";
73427349
break;
73437350

73447351
case INTEL_ARROWLAKE_H:

0 commit comments

Comments
 (0)