Skip to content

Commit 6b74a30

Browse files
committed
tools/power/turbostat: Remove PC7/PC9 support on ADL/RPL
Compared with other platforms that share cnl_features, ADL/RPL don't have PC7/PC9. Clone a new platform feature set from cnl_features for ADL/RPL, with PC7/PC9 removed. Signed-off-by: Zhang Rui <[email protected]> Reviewed-by: Len Brown <[email protected]>
1 parent 05ad96f commit 6b74a30

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

tools/power/x86/turbostat/turbostat.c

+23-6
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,23 @@ static const struct platform_features cnl_features = {
612612
.enable_tsc_tweak = 1,
613613
};
614614

615+
static const struct platform_features adl_features = {
616+
.has_msr_misc_feature_control = 1,
617+
.has_msr_misc_pwr_mgmt = 1,
618+
.has_nhm_msrs = 1,
619+
.has_config_tdp = 1,
620+
.bclk_freq = BCLK_100MHZ,
621+
.supported_cstates = CC1 | CC6 | CC7 | PC2 | PC3 | PC6 | PC8 | PC10,
622+
.cst_limit = CST_LIMIT_HSW,
623+
.has_irtl_msrs = 1,
624+
.has_msr_core_c1_res = 1,
625+
.has_ext_cst_msrs = 1,
626+
.trl_msrs = TRL_BASE,
627+
.tcc_offset_bits = 6,
628+
.rapl_msrs = RAPL_PKG_ALL | RAPL_CORE_ALL | RAPL_DRAM | RAPL_DRAM_PERF_STATUS | RAPL_GFX,
629+
.enable_tsc_tweak = 1,
630+
};
631+
615632
static const struct platform_features skx_features = {
616633
.has_msr_misc_feature_control = 1,
617634
.has_msr_misc_pwr_mgmt = 1,
@@ -812,11 +829,11 @@ static const struct platform_data turbostat_pdata[] = {
812829
{ INTEL_FAM6_SAPPHIRERAPIDS_X, &spr_features },
813830
{ INTEL_FAM6_EMERALDRAPIDS_X, &spr_features },
814831
{ INTEL_FAM6_LAKEFIELD, &cnl_features },
815-
{ INTEL_FAM6_ALDERLAKE, &cnl_features },
816-
{ INTEL_FAM6_ALDERLAKE_L, &cnl_features },
817-
{ INTEL_FAM6_RAPTORLAKE, &cnl_features },
818-
{ INTEL_FAM6_RAPTORLAKE_P, &cnl_features },
819-
{ INTEL_FAM6_RAPTORLAKE_S, &cnl_features },
832+
{ INTEL_FAM6_ALDERLAKE, &adl_features },
833+
{ INTEL_FAM6_ALDERLAKE_L, &adl_features },
834+
{ INTEL_FAM6_RAPTORLAKE, &adl_features },
835+
{ INTEL_FAM6_RAPTORLAKE_P, &adl_features },
836+
{ INTEL_FAM6_RAPTORLAKE_S, &adl_features },
820837
{ INTEL_FAM6_METEORLAKE, &cnl_features },
821838
{ INTEL_FAM6_METEORLAKE_L, &cnl_features },
822839
{ INTEL_FAM6_ATOM_SILVERMONT, &slv_features },
@@ -828,7 +845,7 @@ static const struct platform_data turbostat_pdata[] = {
828845
{ INTEL_FAM6_ATOM_TREMONT_D, &tmtd_features },
829846
{ INTEL_FAM6_ATOM_TREMONT, &tmt_features },
830847
{ INTEL_FAM6_ATOM_TREMONT_L, &tmt_features },
831-
{ INTEL_FAM6_ATOM_GRACEMONT, &cnl_features },
848+
{ INTEL_FAM6_ATOM_GRACEMONT, &adl_features },
832849
{ INTEL_FAM6_XEON_PHI_KNL, &knl_features },
833850
{ INTEL_FAM6_XEON_PHI_KNM, &knl_features },
834851
/*

0 commit comments

Comments
 (0)