Skip to content

Commit 196eca0

Browse files
zhang-ruilenb
authored andcommitted
tools/power turbostat: Enhance ARL/LNL support
ARL/LNL don't have PC8, other than that, it behaves the same as CNL. Copy cnl_features for ARL/LNL, except that PC8 support is removed. Signed-off-by: Zhang Rui <[email protected]> Signed-off-by: Len Brown <[email protected]>
1 parent c8b246e commit 196eca0

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

tools/power/x86/turbostat/turbostat.c

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,23 @@ static const struct platform_features adl_features = {
663663
.enable_tsc_tweak = 1,
664664
};
665665

666+
static const struct platform_features arl_features = {
667+
.has_msr_misc_feature_control = 1,
668+
.has_msr_misc_pwr_mgmt = 1,
669+
.has_nhm_msrs = 1,
670+
.has_config_tdp = 1,
671+
.bclk_freq = BCLK_100MHZ,
672+
.supported_cstates = CC1 | CC6 | CC7 | PC2 | PC3 | PC6 | PC10,
673+
.cst_limit = CST_LIMIT_HSW,
674+
.has_irtl_msrs = 1,
675+
.has_msr_core_c1_res = 1,
676+
.has_ext_cst_msrs = 1,
677+
.trl_msrs = TRL_BASE,
678+
.tcc_offset_bits = 6,
679+
.rapl_msrs = RAPL_PKG_ALL | RAPL_CORE_ALL | RAPL_DRAM | RAPL_DRAM_PERF_STATUS | RAPL_GFX,
680+
.enable_tsc_tweak = 1,
681+
};
682+
666683
static const struct platform_features skx_features = {
667684
.has_msr_misc_feature_control = 1,
668685
.has_msr_misc_pwr_mgmt = 1,
@@ -905,8 +922,8 @@ static const struct platform_data turbostat_pdata[] = {
905922
{ INTEL_FAM6_RAPTORLAKE_S, &adl_features },
906923
{ INTEL_FAM6_METEORLAKE, &cnl_features },
907924
{ INTEL_FAM6_METEORLAKE_L, &cnl_features },
908-
{ INTEL_FAM6_ARROWLAKE, &cnl_features },
909-
{ INTEL_FAM6_LUNARLAKE_M, &cnl_features },
925+
{ INTEL_FAM6_ARROWLAKE, &arl_features },
926+
{ INTEL_FAM6_LUNARLAKE_M, &arl_features },
910927
{ INTEL_FAM6_ATOM_SILVERMONT, &slv_features },
911928
{ INTEL_FAM6_ATOM_SILVERMONT_D, &slvd_features },
912929
{ INTEL_FAM6_ATOM_AIRMONT, &amt_features },

0 commit comments

Comments
 (0)