Skip to content

Commit 528c9f1

Browse files
zhang-ruiPeter Zijlstra
authored andcommitted
perf/x86/cstate: Add SAPPHIRERAPIDS_X CPU support
From the perspective of Intel cstate residency counters, SAPPHIRERAPIDS_X is the same as ICELAKE_X. Share the code with it. And update the comments for SAPPHIRERAPIDS_X. Signed-off-by: Zhang Rui <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Kan Liang <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 60490e7 commit 528c9f1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arch/x86/events/intel/cstate.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* perf code: 0x02
5252
* Available model: SLM,AMT,NHM,WSM,SNB,IVB,HSW,BDW,
5353
* SKL,KNL,GLM,CNL,KBL,CML,ICL,ICX,
54-
* TGL,TNT,RKL,ADL,RPL
54+
* TGL,TNT,RKL,ADL,RPL,SPR
5555
* Scope: Core
5656
* MSR_CORE_C7_RESIDENCY: CORE C7 Residency Counter
5757
* perf code: 0x03
@@ -62,7 +62,7 @@
6262
* perf code: 0x00
6363
* Available model: SNB,IVB,HSW,BDW,SKL,KNL,GLM,CNL,
6464
* KBL,CML,ICL,ICX,TGL,TNT,RKL,ADL,
65-
* RPL
65+
* RPL,SPR
6666
* Scope: Package (physical package)
6767
* MSR_PKG_C3_RESIDENCY: Package C3 Residency Counter.
6868
* perf code: 0x01
@@ -74,7 +74,7 @@
7474
* perf code: 0x02
7575
* Available model: SLM,AMT,NHM,WSM,SNB,IVB,HSW,BDW,
7676
* SKL,KNL,GLM,CNL,KBL,CML,ICL,ICX,
77-
* TGL,TNT,RKL,ADL,RPL
77+
* TGL,TNT,RKL,ADL,RPL,SPR
7878
* Scope: Package (physical package)
7979
* MSR_PKG_C7_RESIDENCY: Package C7 Residency Counter.
8080
* perf code: 0x03
@@ -675,6 +675,7 @@ static const struct x86_cpu_id intel_cstates_match[] __initconst = {
675675
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE, &icl_cstates),
676676
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_X, &icx_cstates),
677677
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_D, &icx_cstates),
678+
X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, &icx_cstates),
678679

679680
X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE_L, &icl_cstates),
680681
X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE, &icl_cstates),

0 commit comments

Comments
 (0)