perf/x86/rapl: Add support for Intel Raptor Lake
authorZhang Rui <rui.zhang@intel.com>
Sun, 23 Oct 2022 12:51:20 +0000 (20:51 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 27 Oct 2022 08:27:31 +0000 (10:27 +0200)
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

index 165c506cd37cd8b948278c77e70e4af435b3d747..fea544e5842a18f16c4a2734299180976475b85a 100644 (file)
@@ -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);