summaryrefslogtreecommitdiff
path: root/tools/power
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2023-08-27 09:16:52 +0300
committerZhang Rui <rui.zhang@intel.com>2023-09-27 17:14:19 +0300
commit1109694817fb4fcdfccb1a86fd58e69fb60f4eab (patch)
treedd87102ed1f1d1a30c6364aca8207655ea1756c8 /tools/power
parent24d16bec379db6eea2d72e18c97c6c80e486a5e1 (diff)
downloadlinux-1109694817fb4fcdfccb1a86fd58e69fb60f4eab.tar.xz
tools/power/turbostat: Adjust cstate for is_bdx() models
Disable CC7/PC7 for is_bdx() models. Delete is_bdx() CPU model check. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Reviewed-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/power')
-rw-r--r--tools/power/x86/turbostat/turbostat.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 262af40fe35d..27ca29f0545a 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -556,7 +556,7 @@ static const struct platform_features bdx_features = {
.has_nhm_msrs = 1,
.has_config_tdp = 1,
.bclk_freq = BCLK_100MHZ,
- .supported_cstates = CC1 | CC3 | CC6 | CC7 | PC2 | PC3 | PC6 | PC7,
+ .supported_cstates = CC1 | CC3 | CC6 | PC2 | PC3 | PC6,
.cst_limit = CST_LIMIT_HSW,
.has_cst_auto_convension = 1,
.trl_msrs = TRL_BASE,
@@ -4282,22 +4282,6 @@ int is_dnv(unsigned int family, unsigned int model)
return 0;
}
-int is_bdx(unsigned int family, unsigned int model)
-{
-
- if (!genuine_intel)
- return 0;
-
- if (family != 6)
- return 0;
-
- switch (model) {
- case INTEL_FAM6_BROADWELL_X:
- return 1;
- }
- return 0;
-}
-
int is_icx(unsigned int family, unsigned int model)
{
@@ -5804,10 +5788,6 @@ void process_cpuid()
if (is_dnv(family, model)) {
use_c1_residency_msr = 1;
}
- if (is_bdx(family, model)) {
- BIC_NOT_PRESENT(BIC_CPU_c7);
- BIC_NOT_PRESENT(BIC_Pkgpc7);
- }
if (has_c8910_msrs(family, model)) {
if (pkg_cstate_limit >= PCL__8)
BIC_PRESENT(BIC_Pkgpc8);