diff options
author | Len Brown <len.brown@intel.com> | 2016-04-06 17:15:59 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-07 16:18:38 -0400 |
commit | cdc57272ea0a0e952c4609b56e157e4d0ec8e956 (patch) | |
tree | 76b3d7231ea59fc48c1b3e13d099c43a12197ac9 /tools | |
parent | ec53e594c65ab099ca784d62b6f4c191e3a4d7cc (diff) |
tools/power turbostat: initial KBL support
KBL is similar to SKL
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 3b64b6bdaf90..277e0321e590 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c | |||
@@ -2188,6 +2188,8 @@ int probe_nhm_msrs(unsigned int family, unsigned int model) | |||
2188 | case 0x56: /* BDX-DE */ | 2188 | case 0x56: /* BDX-DE */ |
2189 | case 0x4E: /* SKL */ | 2189 | case 0x4E: /* SKL */ |
2190 | case 0x5E: /* SKL */ | 2190 | case 0x5E: /* SKL */ |
2191 | case 0x8E: /* KBL */ | ||
2192 | case 0x9E: /* KBL */ | ||
2191 | case 0x55: /* SKX */ | 2193 | case 0x55: /* SKX */ |
2192 | pkg_cstate_limits = hsw_pkg_cstate_limits; | 2194 | pkg_cstate_limits = hsw_pkg_cstate_limits; |
2193 | break; | 2195 | break; |
@@ -2296,6 +2298,8 @@ int has_config_tdp(unsigned int family, unsigned int model) | |||
2296 | case 0x56: /* BDX-DE */ | 2298 | case 0x56: /* BDX-DE */ |
2297 | case 0x4E: /* SKL */ | 2299 | case 0x4E: /* SKL */ |
2298 | case 0x5E: /* SKL */ | 2300 | case 0x5E: /* SKL */ |
2301 | case 0x8E: /* KBL */ | ||
2302 | case 0x9E: /* KBL */ | ||
2299 | case 0x55: /* SKX */ | 2303 | case 0x55: /* SKX */ |
2300 | 2304 | ||
2301 | case 0x57: /* Knights Landing */ | 2305 | case 0x57: /* Knights Landing */ |
@@ -2639,6 +2643,8 @@ void rapl_probe(unsigned int family, unsigned int model) | |||
2639 | break; | 2643 | break; |
2640 | case 0x4E: /* SKL */ | 2644 | case 0x4E: /* SKL */ |
2641 | case 0x5E: /* SKL */ | 2645 | case 0x5E: /* SKL */ |
2646 | case 0x8E: /* KBL */ | ||
2647 | case 0x9E: /* KBL */ | ||
2642 | do_rapl = RAPL_PKG | RAPL_DRAM | RAPL_DRAM_PERF_STATUS | RAPL_PKG_PERF_STATUS | RAPL_PKG_POWER_INFO; | 2648 | do_rapl = RAPL_PKG | RAPL_DRAM | RAPL_DRAM_PERF_STATUS | RAPL_PKG_PERF_STATUS | RAPL_PKG_POWER_INFO; |
2643 | break; | 2649 | break; |
2644 | case 0x3F: /* HSX */ | 2650 | case 0x3F: /* HSX */ |
@@ -2924,6 +2930,8 @@ int has_snb_msrs(unsigned int family, unsigned int model) | |||
2924 | case 0x56: /* BDX-DE */ | 2930 | case 0x56: /* BDX-DE */ |
2925 | case 0x4E: /* SKL */ | 2931 | case 0x4E: /* SKL */ |
2926 | case 0x5E: /* SKL */ | 2932 | case 0x5E: /* SKL */ |
2933 | case 0x8E: /* KBL */ | ||
2934 | case 0x9E: /* KBL */ | ||
2927 | case 0x55: /* SKX */ | 2935 | case 0x55: /* SKX */ |
2928 | case 0x5C: /* BXT */ | 2936 | case 0x5C: /* BXT */ |
2929 | return 1; | 2937 | return 1; |
@@ -2953,6 +2961,8 @@ int has_hsw_msrs(unsigned int family, unsigned int model) | |||
2953 | case 0x3D: /* BDW */ | 2961 | case 0x3D: /* BDW */ |
2954 | case 0x4E: /* SKL */ | 2962 | case 0x4E: /* SKL */ |
2955 | case 0x5E: /* SKL */ | 2963 | case 0x5E: /* SKL */ |
2964 | case 0x8E: /* KBL */ | ||
2965 | case 0x9E: /* KBL */ | ||
2956 | case 0x5C: /* BXT */ | 2966 | case 0x5C: /* BXT */ |
2957 | return 1; | 2967 | return 1; |
2958 | } | 2968 | } |
@@ -2975,6 +2985,8 @@ int has_skl_msrs(unsigned int family, unsigned int model) | |||
2975 | switch (model) { | 2985 | switch (model) { |
2976 | case 0x4E: /* SKL */ | 2986 | case 0x4E: /* SKL */ |
2977 | case 0x5E: /* SKL */ | 2987 | case 0x5E: /* SKL */ |
2988 | case 0x8E: /* KBL */ | ||
2989 | case 0x9E: /* KBL */ | ||
2978 | return 1; | 2990 | return 1; |
2979 | } | 2991 | } |
2980 | return 0; | 2992 | return 0; |
@@ -3282,6 +3294,8 @@ void process_cpuid() | |||
3282 | switch(model) { | 3294 | switch(model) { |
3283 | case 0x4E: /* SKL */ | 3295 | case 0x4E: /* SKL */ |
3284 | case 0x5E: /* SKL */ | 3296 | case 0x5E: /* SKL */ |
3297 | case 0x8E: /* KBL */ | ||
3298 | case 0x9E: /* KBL */ | ||
3285 | crystal_hz = 24000000; /* 24.0 MHz */ | 3299 | crystal_hz = 24000000; /* 24.0 MHz */ |
3286 | break; | 3300 | break; |
3287 | case 0x55: /* SKX */ | 3301 | case 0x55: /* SKX */ |