linux/tools/power/x86/turbostat
Calvin Walton 9392bd98bb tools/power turbostat: Add support for AMD Fam 17h (Zen) RAPL
Based on the Open-Source Register Reference for AMD Family 17h
Processors Models 00h-2Fh:
https://support.amd.com/TechDocs/56255_OSRR.pdf

These processors report RAPL support in bit 14 of CPUID 0x80000007 EDX,
and the following MSRs are present:
0xc0010299 (RAPL_PWR_UNIT), like Intel's RAPL_POWER_UNIT
0xc001029a (CORE_ENERGY_STAT), kind of like Intel's PP0_ENERGY_STATUS
0xc001029b (PKG_ENERGY_STAT), like Intel's PKG_ENERGY_STATUS

A notable difference from the Intel implementation is that AMD reports
the "Cores" energy usage separately for each core, rather than a
per-package total. The code has been adjusted to handle either case in a
generic way.

I haven't yet enabled collection of package power, due to being unable
to test it on multi-node systems (TR, EPYC).

Signed-off-by: Calvin Walton <calvin.walton@kepstin.ca>
Signed-off-by: Len Brown <len.brown@intel.com>
2019-03-20 22:55:45 -04:00
..
.gitignore turbostat: Add a .gitignore to ignore the compiled turbostat binary 2014-01-18 22:34:10 -05:00
Makefile tools power turbostat: Override CFLAGS assignments and add LDFLAGS to build command 2018-12-28 16:33:08 -03:00
turbostat.8 tools/power turbostat: Update turbostat(8) RAPL throttling column description 2018-07-17 20:06:47 -04:00
turbostat.c tools/power turbostat: Add support for AMD Fam 17h (Zen) RAPL 2019-03-20 22:55:45 -04:00