Commit ff206149 authored by Zhang Rui's avatar Zhang Rui

tools/power/turbostat: Adjust cstate for has_slv_msrs() models

Disable PC2/PC3/PC7 and enable PC6 for has_slv_msrs() models.
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Reviewed-by: default avatarLen Brown <len.brown@intel.com>
parent 192cbf04
...@@ -635,7 +635,7 @@ static const struct platform_features spr_features = { ...@@ -635,7 +635,7 @@ static const struct platform_features spr_features = {
static const struct platform_features slv_features = { static const struct platform_features slv_features = {
.has_nhm_msrs = 1, .has_nhm_msrs = 1,
.bclk_freq = BCLK_SLV, .bclk_freq = BCLK_SLV,
.supported_cstates = CC1 | CC3 | CC6 | PC3 | PC6, .supported_cstates = CC1 | CC3 | CC6 | PC6,
.cst_limit = CST_LIMIT_SLV, .cst_limit = CST_LIMIT_SLV,
.trl_msrs = TRL_ATOM, .trl_msrs = TRL_ATOM,
.rapl_msrs = RAPL_PKG | RAPL_CORE, .rapl_msrs = RAPL_PKG | RAPL_CORE,
...@@ -5829,10 +5829,6 @@ void process_cpuid() ...@@ -5829,10 +5829,6 @@ void process_cpuid()
do_irtl_snb = has_snb_msrs(family, model); do_irtl_snb = has_snb_msrs(family, model);
if (has_slv_msrs(family, model)) { if (has_slv_msrs(family, model)) {
BIC_NOT_PRESENT(BIC_Pkgpc2);
BIC_NOT_PRESENT(BIC_Pkgpc3);
BIC_PRESENT(BIC_Pkgpc6);
BIC_NOT_PRESENT(BIC_Pkgpc7);
BIC_PRESENT(BIC_Mod_c6); BIC_PRESENT(BIC_Mod_c6);
use_c1_residency_msr = 1; use_c1_residency_msr = 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment