tools/power turbostat: Add NPU power monitoring via Intel PMT
PATCH 1/1 tools/power turbostat: Add NPU power monitoring via Intel PMT
Read the NPU_ENERGY counter (U32.18.14 format) from the Intel PMT sysfs interface and expose a new column:
NPUWatt - average NPU power over the measurement interval (W)
The GUID and offset values for each supported platform are taken from the Intel PMT XML definitions:
https://github.com/intel/Intel-PMT
Platform GUID Offset
MTL 0x130670b2 0x628
ARL 0x1306a0b3 0x628ARL_H 0x1306a0b2 0x628ARL_S 0x1306a0b4 0x628
PTL 0x3086000 0x670
WCL 0x308d000 0x670
LNL 0x3072005 0x5d0
NVL 0x13000001 0x5e8
Signed-off-by Kaushlendra Kumar <[email protected]>
Tested-by Dawid Osuchowski <[email protected]>
Reviewed-by Dawid Osuchowski <[email protected]>
--- tools/power/x86/turbostat/turbostat.8 | 2 + tools/power/x86/turbostat/turbostat.c | 136 +++++++++++++++++++++++++- 2 files changed, 137 insertions(+), 1 deletion(-)
tools/power/x86/turbostat/turbostat.8 +2 -0
@@ -219,6 +219,8 @@ The system configuration dump (if --quiet is not used) is followed by statistics .PP \fBSysWatt\fP Watts consumed by the whole platform (RAPL PSYS). .PP +\fBNPUWatt\fP Watts consumed by the Neural Processing Unit (NPU), available on platforms with a loaded Intel NPU (intel_vpu) driver. +.PP \fBPKG_%\fP percent of the interval that RAPL throttling was active on the Package. Note that the system summary is the sum of the package throttling time, and thus may be higher than 100% on a multi-package system. Note that the meaning of this field is model specific. For example, some hardware increments this counter when RAPL responds to thermal limits, but does not increment this counter when RAPL responds to power limits. Comparing PkgWatt and PkgTmp to system limits is necessary. .PP \fBRAM_%\fP percent of the interval that RAPL throttling was active on DRAM.
tools/power/x86/turbostat/turbostat.c +135 -1
239 lines not on this page · raw message
Signature · 1 line
2.34.1