From 3f3407eb7fa72b44dd56baea72a5d600fb29511f Mon Sep 17 00:00:00 2001 From: Zide Chen Date: Mon, 15 Dec 2025 10:25:20 -0800 Subject: [PATCH] perf/x86/intel/cstate: Add Diamond Rapids support ANBZ: #31923 commit 7ac422cf7b16ec524bcd8e017459e328a4103f63 upstream. From a C-state residency profiling perspective, Diamond Rapids is similar to SRF and GNR, supporting core C1/C6, module C6, and package C2/C6 residency counters. Similar to CWF, the C1E residency can be accessed via PMT only. Intel-SIG: commit 7ac422cf7b16 perf/x86/intel/cstate: Add Diamond Rapids support Backport cstate PMU for DMR Signed-off-by: Zide Chen Signed-off-by: Ingo Molnar Reviewed-by: Dapeng Mi Link: https://patch.msgid.link/20251215182520.115822-3-zide.chen@intel.com [ Zhang Rui: amend commit log ] Signed-off-by: Zhang Rui --- arch/x86/events/intel/cstate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/events/intel/cstate.c b/arch/x86/events/intel/cstate.c index e89557745e61..03b731aab7a8 100644 --- a/arch/x86/events/intel/cstate.c +++ b/arch/x86/events/intel/cstate.c @@ -754,6 +754,7 @@ static const struct x86_cpu_id intel_cstates_match[] __initconst = { X86_MATCH_VFM(INTEL_EMERALDRAPIDS_X, &icx_cstates), X86_MATCH_VFM(INTEL_GRANITERAPIDS_X, &icx_cstates), X86_MATCH_VFM(INTEL_GRANITERAPIDS_D, &icx_cstates), + X86_MATCH_VFM(INTEL_DIAMONDRAPIDS_X, &srf_cstates), X86_MATCH_VFM(INTEL_TIGERLAKE_L, &icl_cstates), X86_MATCH_VFM(INTEL_TIGERLAKE, &icl_cstates), -- Gitee