summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJacob Pan <jacob.jun.pan@linux.intel.com>2016-06-16 09:48:22 -0700
committerLen Brown <len.brown@intel.com>2016-12-01 01:33:18 -0500
commit0f64490978ef9ed4debe33bf0dbf25e80659f7f7 (patch)
tree025a7d730becc6b857a51ddea157a51b0d402e06 /tools
parent2c48c990ea330ae8079488fdf1d156620c6f9d0c (diff)
downloadlinux-0-day-0f64490978ef9ed4debe33bf0dbf25e80659f7f7.tar.gz
linux-0-day-0f64490978ef9ed4debe33bf0dbf25e80659f7f7.tar.xz
tools/power/turbostat: Add Denverton RAPL support
The Denverton CPU RAPL supports package, core, and DRAM domains. Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/x86/turbostat/turbostat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 16ccada7e439c..70a6699c528ce 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -2663,6 +2663,9 @@ void rapl_probe(unsigned int family, unsigned int model)
case 0x4D: /* AVN */
do_rapl = RAPL_PKG | RAPL_CORES;
break;
+ case 0x5f: /* DNV */
+ do_rapl = RAPL_PKG | RAPL_DRAM | RAPL_DRAM_POWER_INFO | RAPL_DRAM_PERF_STATUS | RAPL_PKG_PERF_STATUS | RAPL_PKG_POWER_INFO | RAPL_CORES_ENERGY_STATUS;
+ break;
default:
return;
}