Skip to content

Commit d773a73

Browse files
Kan LiangPeter Zijlstra
authored andcommitted
perf/x86/msr: Add new Alder Lake and Raptor Lake support
The new Alder Lake N and Raptor Lake P also support PPERF and SMI_COUNT MSRs. Signed-off-by: Kan Liang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c2a960f commit d773a73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/events/msr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ static bool test_intel(int idx, void *data)
103103
case INTEL_FAM6_ROCKETLAKE:
104104
case INTEL_FAM6_ALDERLAKE:
105105
case INTEL_FAM6_ALDERLAKE_L:
106+
case INTEL_FAM6_ALDERLAKE_N:
106107
case INTEL_FAM6_RAPTORLAKE:
108+
case INTEL_FAM6_RAPTORLAKE_P:
107109
if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF)
108110
return true;
109111
break;

0 commit comments

Comments
 (0)