From: Vincent Brillault Date: Thu, 12 Feb 2015 20:06:24 +0000 (+0100) Subject: Turbostat: Add support for Broadwell (rapl part) X-Git-Tag: collectd-5.5.0~24^2~20 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=25e51eb1b7473e0e6a2dfd94a3f3dd96a59da517;p=collectd.git Turbostat: Add support for Broadwell (rapl part) Partial backport of 4e8e863fed2e82278d29c6357de8251adb73acb9 from Len Brown Add comments on all models --- diff --git a/src/turbostat.c b/src/turbostat.c index 4c45016f..2f30206a 100644 --- a/src/turbostat.c +++ b/src/turbostat.c @@ -983,22 +983,25 @@ probe_cpu() " model: %#x)", family, model); } switch (model) { - case 0x2A: - case 0x3A: - case 0x3C: - case 0x45: - case 0x46: + case 0x2A: /* SNB */ + case 0x3A: /* IVB */ + case 0x3C: /* HSW */ + case 0x45: /* HSW */ + case 0x46: /* HSW */ + case 0x3D: /* BDW */ do_rapl = RAPL_PKG | RAPL_CORES | RAPL_CORE_POLICY | RAPL_PKG_POWER_INFO | RAPL_GFX; break; - case 0x3F: + case 0x3F: /* HSX */ + case 0x4F: /* BDX */ + case 0x56: /* BDX-DE */ do_rapl = RAPL_PKG | RAPL_PKG_POWER_INFO | RAPL_PKG_PERF_STATUS | RAPL_DRAM | RAPL_DRAM_PERF_STATUS; break; - case 0x2D: - case 0x3E: + case 0x2D: /* SNB Xeon */ + case 0x3E: /* IVB Xeon */ do_rapl = RAPL_PKG | RAPL_CORES | RAPL_CORE_POLICY | RAPL_PKG_POWER_INFO | RAPL_PKG_PERF_STATUS | RAPL_DRAM | RAPL_DRAM_PERF_STATUS; break; - case 0x37: - case 0x4D: + case 0x37: /* BYT */ + case 0x4D: /* AVN */ do_rapl = RAPL_PKG | RAPL_CORES; break; default: