Skip to content

Commit 5a6efcb

Browse files
committed
tools/power/turbostat: Add initial support for GrandRidge
Add initial support for GrandRidge. It shares the same features as SierraForest, except that it does not support PC2/PC6. Signed-off-by: Zhang Rui <[email protected]>
1 parent d33605f commit 5a6efcb

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
@@ -690,6 +690,22 @@ static const struct platform_features srf_features = {
690690
.rapl_msrs = RAPL_PKG_ALL | RAPL_DRAM_ALL,
691691
};
692692

693+
static const struct platform_features grr_features = {
694+
.has_msr_misc_feature_control = 1,
695+
.has_msr_misc_pwr_mgmt = 1,
696+
.has_nhm_msrs = 1,
697+
.has_config_tdp = 1,
698+
.bclk_freq = BCLK_100MHZ,
699+
.supported_cstates = CC1 | CC6,
700+
.cst_limit = CST_LIMIT_SKX,
701+
.has_msr_core_c1_res = 1,
702+
.has_msr_module_c6_res_ms = 1,
703+
.has_irtl_msrs = 1,
704+
.has_cst_prewake_bit = 1,
705+
.trl_msrs = TRL_BASE | TRL_CORECOUNT,
706+
.rapl_msrs = RAPL_PKG_ALL | RAPL_DRAM_ALL,
707+
};
708+
693709
static const struct platform_features slv_features = {
694710
.has_nhm_msrs = 1,
695711
.bclk_freq = BCLK_SLV,
@@ -865,6 +881,7 @@ static const struct platform_data turbostat_pdata[] = {
865881
{ INTEL_FAM6_ATOM_TREMONT_L, &tmt_features },
866882
{ INTEL_FAM6_ATOM_GRACEMONT, &adl_features },
867883
{ INTEL_FAM6_ATOM_CRESTMONT_X, &srf_features },
884+
{ INTEL_FAM6_ATOM_CRESTMONT, &grr_features },
868885
{ INTEL_FAM6_XEON_PHI_KNL, &knl_features },
869886
{ INTEL_FAM6_XEON_PHI_KNM, &knl_features },
870887
/*

0 commit comments

Comments
 (0)