]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf/x86/intel/cstate: Add Diamond Rapids support
authorZide Chen <zide.chen@intel.com>
Mon, 15 Dec 2025 18:25:20 +0000 (10:25 -0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 16 Dec 2025 13:35:59 +0000 (14:35 +0100)
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.

Signed-off-by: Zide Chen <zide.chen@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://patch.msgid.link/20251215182520.115822-3-zide.chen@intel.com
arch/x86/events/intel/cstate.c

index 008f8ea5931592b9aa840268ca1707ed3ed8642f..1e2658b60d9140248b8edf90bbbd8492907d47d9 100644 (file)
@@ -652,6 +652,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),