diff options
author | Len Brown <len.brown@intel.com> | 2016-12-01 20:27:46 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2016-12-01 20:27:46 -0500 |
commit | d8ebb442264de62d5d0157adb8f0df96e831b3d3 (patch) | |
tree | 95ad8dfd18f45d5db2fcf4216e5fe41abd49d1b4 | |
parent | 005c82d64d1aa49290a39573019f73b5088beeff (diff) |
tools/power turbostat: fix SKX PKG_CSTATE_LIMIT decoding
SKX has fewer package C-states than previous generations,
and so the decoding of PKG_CSTATE_LIMIT has changed.
This changes the line ending with pkg-cstate-limit=XXX: pcYYY
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index a54ca3775521..10ae4ffe137c 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c | |||
@@ -1294,6 +1294,7 @@ int slv_pkg_cstate_limits[16] = {PCL__0, PCL__1, PCLRSV, PCLRSV, PCL__4, PCLRSV, | |||
1294 | int amt_pkg_cstate_limits[16] = {PCL__0, PCL__1, PCL__2, PCLRSV, PCLRSV, PCLRSV, PCL__6, PCL__7, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV}; | 1294 | int amt_pkg_cstate_limits[16] = {PCL__0, PCL__1, PCL__2, PCLRSV, PCLRSV, PCLRSV, PCL__6, PCL__7, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV}; |
1295 | int phi_pkg_cstate_limits[16] = {PCL__0, PCL__2, PCL_6N, PCL_6R, PCLRSV, PCLRSV, PCLRSV, PCLUNL, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV}; | 1295 | int phi_pkg_cstate_limits[16] = {PCL__0, PCL__2, PCL_6N, PCL_6R, PCLRSV, PCLRSV, PCLRSV, PCLUNL, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV}; |
1296 | int bxt_pkg_cstate_limits[16] = {PCL__0, PCL__2, PCLUNL, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV}; | 1296 | int bxt_pkg_cstate_limits[16] = {PCL__0, PCL__2, PCLUNL, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV}; |
1297 | int skx_pkg_cstate_limits[16] = {PCL__0, PCL__2, PCL_6N, PCL_6R, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLUNL, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV, PCLRSV}; | ||
1297 | 1298 | ||
1298 | 1299 | ||
1299 | static void | 1300 | static void |
@@ -2191,9 +2192,11 @@ int probe_nhm_msrs(unsigned int family, unsigned int model) | |||
2191 | case INTEL_FAM6_SKYLAKE_DESKTOP: /* SKL */ | 2192 | case INTEL_FAM6_SKYLAKE_DESKTOP: /* SKL */ |
2192 | case INTEL_FAM6_KABYLAKE_MOBILE: /* KBL */ | 2193 | case INTEL_FAM6_KABYLAKE_MOBILE: /* KBL */ |
2193 | case INTEL_FAM6_KABYLAKE_DESKTOP: /* KBL */ | 2194 | case INTEL_FAM6_KABYLAKE_DESKTOP: /* KBL */ |
2194 | case INTEL_FAM6_SKYLAKE_X: /* SKX */ | ||
2195 | pkg_cstate_limits = hsw_pkg_cstate_limits; | 2195 | pkg_cstate_limits = hsw_pkg_cstate_limits; |
2196 | break; | 2196 | break; |
2197 | case INTEL_FAM6_SKYLAKE_X: /* SKX */ | ||
2198 | pkg_cstate_limits = skx_pkg_cstate_limits; | ||
2199 | break; | ||
2197 | case INTEL_FAM6_ATOM_SILVERMONT1: /* BYT */ | 2200 | case INTEL_FAM6_ATOM_SILVERMONT1: /* BYT */ |
2198 | case INTEL_FAM6_ATOM_SILVERMONT2: /* AVN */ | 2201 | case INTEL_FAM6_ATOM_SILVERMONT2: /* AVN */ |
2199 | pkg_cstate_limits = slv_pkg_cstate_limits; | 2202 | pkg_cstate_limits = slv_pkg_cstate_limits; |