Skip to content

Commit d33605f

Browse files
committed
tools/power/turbostat: Add initial support for SierraForest
Add initial support for SierraForest. It shares the same features with SapphireRapids, except that it has MSR_MODULE_C6_RES_MS support. Signed-off-by: Zhang Rui <[email protected]>
1 parent 5feab4a commit d33605f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tools/power/x86/turbostat/turbostat.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,22 @@ static const struct platform_features spr_features = {
674674
.rapl_msrs = RAPL_PKG_ALL | RAPL_DRAM_ALL,
675675
};
676676

677+
static const struct platform_features srf_features = {
678+
.has_msr_misc_feature_control = 1,
679+
.has_msr_misc_pwr_mgmt = 1,
680+
.has_nhm_msrs = 1,
681+
.has_config_tdp = 1,
682+
.bclk_freq = BCLK_100MHZ,
683+
.supported_cstates = CC1 | CC6 | PC2 | PC6,
684+
.cst_limit = CST_LIMIT_SKX,
685+
.has_msr_core_c1_res = 1,
686+
.has_msr_module_c6_res_ms = 1,
687+
.has_irtl_msrs = 1,
688+
.has_cst_prewake_bit = 1,
689+
.trl_msrs = TRL_BASE | TRL_CORECOUNT,
690+
.rapl_msrs = RAPL_PKG_ALL | RAPL_DRAM_ALL,
691+
};
692+
677693
static const struct platform_features slv_features = {
678694
.has_nhm_msrs = 1,
679695
.bclk_freq = BCLK_SLV,
@@ -848,6 +864,7 @@ static const struct platform_data turbostat_pdata[] = {
848864
{ INTEL_FAM6_ATOM_TREMONT, &tmt_features },
849865
{ INTEL_FAM6_ATOM_TREMONT_L, &tmt_features },
850866
{ INTEL_FAM6_ATOM_GRACEMONT, &adl_features },
867+
{ INTEL_FAM6_ATOM_CRESTMONT_X, &srf_features },
851868
{ INTEL_FAM6_XEON_PHI_KNL, &knl_features },
852869
{ INTEL_FAM6_XEON_PHI_KNM, &knl_features },
853870
/*

0 commit comments

Comments
 (0)