[tip:,perf/urgent] perf/x86/rapl: Add support for Intel Raptor Lake

Message ID 166693931539.29415.9211825739101668046.tip-bot2@tip-bot2
State New
Headers
Series [tip:,perf/urgent] perf/x86/rapl: Add support for Intel Raptor Lake |

Commit Message

tip-bot2 for Thomas Gleixner Oct. 28, 2022, 6:41 a.m. UTC
  The following commit has been merged into the perf/urgent branch of tip:

Commit-ID:     eff98a7421b3ee73d62268115ffa5bfc0ba94544
Gitweb:        https://git.kernel.org/tip/eff98a7421b3ee73d62268115ffa5bfc0ba94544
Author:        Zhang Rui <rui.zhang@intel.com>
AuthorDate:    Sun, 23 Oct 2022 20:51:20 +08:00
Committer:     Peter Zijlstra <peterz@infradead.org>
CommitterDate: Thu, 27 Oct 2022 10:27:31 +02:00

perf/x86/rapl: Add support for Intel Raptor Lake

Raptor Lake RAPL support is the same as previous Sky Lake.
Add Raptor Lake model for RAPL.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Wang Wendy <wendy.wang@intel.com>
Link: https://lkml.kernel.org/r/20221023125120.2727-2-rui.zhang@intel.com
---
 arch/x86/events/rapl.c | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c
index 165c506..fea544e 100644
--- a/arch/x86/events/rapl.c
+++ b/arch/x86/events/rapl.c
@@ -808,6 +808,9 @@  static const struct x86_cpu_id rapl_model_match[] __initconst = {
 	X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L,		&model_skl),
 	X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,		&model_skl),
 	X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,	&model_spr),
+	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,		&model_skl),
+	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P,	&model_skl),
+	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S,	&model_skl),
 	{},
 };
 MODULE_DEVICE_TABLE(x86cpu, rapl_model_match);