Skip to content

Commit b1d0e15

Browse files
zhenywPeter Zijlstra
authored and
Peter Zijlstra
committed
perf/x86/intel/cstate: Add pkg C2 residency counter for Sierra Forest
Package C2 residency counter is also available on Sierra Forest. So add it support in srf_cstates. Fixes: 3877d55 ("perf/x86/intel/cstate: Add Sierra Forest support") Signed-off-by: Zhenyu Wang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Kan Liang <[email protected]> Tested-by: Wendy Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8400291 commit b1d0e15

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/x86/events/intel/cstate.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
* perf code: 0x00
6565
* Available model: SNB,IVB,HSW,BDW,SKL,KNL,GLM,CNL,
6666
* KBL,CML,ICL,ICX,TGL,TNT,RKL,ADL,
67-
* RPL,SPR,MTL,ARL,LNL
67+
* RPL,SPR,MTL,ARL,LNL,SRF
6868
* Scope: Package (physical package)
6969
* MSR_PKG_C3_RESIDENCY: Package C3 Residency Counter.
7070
* perf code: 0x01
@@ -693,7 +693,8 @@ static const struct cstate_model srf_cstates __initconst = {
693693
.core_events = BIT(PERF_CSTATE_CORE_C1_RES) |
694694
BIT(PERF_CSTATE_CORE_C6_RES),
695695

696-
.pkg_events = BIT(PERF_CSTATE_PKG_C6_RES),
696+
.pkg_events = BIT(PERF_CSTATE_PKG_C2_RES) |
697+
BIT(PERF_CSTATE_PKG_C6_RES),
697698

698699
.module_events = BIT(PERF_CSTATE_MODULE_C6_RES),
699700
};

0 commit comments

Comments
 (0)