diff options
author | Len Brown <len.brown@intel.com> | 2013-01-08 01:26:07 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2013-02-08 19:25:57 -0500 |
commit | 70b43400bc290764b49ff3497a9824604c66c409 (patch) | |
tree | 411dc71e0f007eb37a30f0eebbf3800db68ef87a /tools/power | |
parent | 85a4d2d41dc6d1c0296326204a857a9fab864a31 (diff) |
tools/power turbostat: support Haswell
This patch enables turbostat to run properly on the
next-generation Intel(R) Microarchitecture, code named "Haswell" (HSW).
HSW supports the BCLK and counters found in SNB.
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/power')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index ce6d46038f74..b326878bd5d1 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c | |||
@@ -1397,6 +1397,9 @@ int has_nehalem_turbo_ratio_limit(unsigned int family, unsigned int model) | |||
1397 | case 0x2D: /* SNB Xeon */ | 1397 | case 0x2D: /* SNB Xeon */ |
1398 | case 0x3A: /* IVB */ | 1398 | case 0x3A: /* IVB */ |
1399 | case 0x3E: /* IVB Xeon */ | 1399 | case 0x3E: /* IVB Xeon */ |
1400 | case 0x3C: /* HSW */ | ||
1401 | case 0x3F: /* HSW */ | ||
1402 | case 0x45: /* HSW */ | ||
1400 | return 1; | 1403 | return 1; |
1401 | case 0x2E: /* Nehalem-EX Xeon - Beckton */ | 1404 | case 0x2E: /* Nehalem-EX Xeon - Beckton */ |
1402 | case 0x2F: /* Westmere-EX Xeon - Eagleton */ | 1405 | case 0x2F: /* Westmere-EX Xeon - Eagleton */ |
@@ -1488,6 +1491,9 @@ void rapl_probe(unsigned int family, unsigned int model) | |||
1488 | switch (model) { | 1491 | switch (model) { |
1489 | case 0x2A: | 1492 | case 0x2A: |
1490 | case 0x3A: | 1493 | case 0x3A: |
1494 | case 0x3C: /* HSW */ | ||
1495 | case 0x3F: /* HSW */ | ||
1496 | case 0x45: /* HSW */ | ||
1491 | do_rapl = RAPL_PKG | RAPL_CORES | RAPL_GFX; | 1497 | do_rapl = RAPL_PKG | RAPL_CORES | RAPL_GFX; |
1492 | break; | 1498 | break; |
1493 | case 0x2D: | 1499 | case 0x2D: |
@@ -1724,6 +1730,9 @@ int is_snb(unsigned int family, unsigned int model) | |||
1724 | case 0x2D: | 1730 | case 0x2D: |
1725 | case 0x3A: /* IVB */ | 1731 | case 0x3A: /* IVB */ |
1726 | case 0x3E: /* IVB Xeon */ | 1732 | case 0x3E: /* IVB Xeon */ |
1733 | case 0x3C: /* HSW */ | ||
1734 | case 0x3F: /* HSW */ | ||
1735 | case 0x45: /* HSW */ | ||
1727 | return 1; | 1736 | return 1; |
1728 | } | 1737 | } |
1729 | return 0; | 1738 | return 0; |
@@ -2248,7 +2257,7 @@ int main(int argc, char **argv) | |||
2248 | cmdline(argc, argv); | 2257 | cmdline(argc, argv); |
2249 | 2258 | ||
2250 | if (verbose) | 2259 | if (verbose) |
2251 | fprintf(stderr, "turbostat v3.0 November 23, 2012" | 2260 | fprintf(stderr, "turbostat v3.1 January 8, 2013" |
2252 | " - Len Brown <lenb@kernel.org>\n"); | 2261 | " - Len Brown <lenb@kernel.org>\n"); |
2253 | 2262 | ||
2254 | turbostat_init(); | 2263 | turbostat_init(); |