summaryrefslogtreecommitdiff
path: root/arch/x86/events/msr.c
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2022-05-04 22:44:10 +0300
committerPeter Zijlstra <peterz@infradead.org>2022-05-11 17:27:08 +0300
commitd773a73366bd54d0c75c533269fe2f0765ce42ee (patch)
tree71308a5807c5994503b30f4157f807ecef07a857 /arch/x86/events/msr.c
parentc2a960f7c5741cc4f03b4e587afeb89ad53c32c5 (diff)
downloadlinux-d773a73366bd54d0c75c533269fe2f0765ce42ee.tar.xz
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 <kan.liang@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220504194413.1003071-2-kan.liang@linux.intel.com
Diffstat (limited to 'arch/x86/events/msr.c')
-rw-r--r--arch/x86/events/msr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c
index 6d759f88315c..ac542f98c070 100644
--- a/arch/x86/events/msr.c
+++ b/arch/x86/events/msr.c
@@ -103,7 +103,9 @@ static bool test_intel(int idx, void *data)
case INTEL_FAM6_ROCKETLAKE:
case INTEL_FAM6_ALDERLAKE:
case INTEL_FAM6_ALDERLAKE_L:
+ case INTEL_FAM6_ALDERLAKE_N:
case INTEL_FAM6_RAPTORLAKE:
+ case INTEL_FAM6_RAPTORLAKE_P:
if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF)
return true;
break;