Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/power turbostat: AMD: msr offset 0x611 read failed: Input/output error

Turbostat exits during RAPL probe with:

turbostat: cpu0: msr offset 0x611 read failed: Input/output error

A binary with this bug can be used successfully with
the option "--no-msr"

Fix this regression by trusting the static AMD RAPL MSR offset.

Fixes: 19476a592bf2 ("tools/power turbostat: Validate RAPL MSRs for AWS Nitro Hypervisor")
Signed-off-by: Len Brown <len.brown@intel.com>

Len Brown 16cc8f24 7f98ab9d

+1 -1
+1 -1
tools/power/x86/turbostat/turbostat.c
··· 2135 2135 2136 2136 switch (idx) { 2137 2137 case IDX_PKG_ENERGY: 2138 - if (valid_rapl_msrs & RAPL_AMD_F17H) 2138 + if (platform->plat_rapl_msrs & RAPL_AMD_F17H) 2139 2139 offset = MSR_PKG_ENERGY_STAT; 2140 2140 else 2141 2141 offset = MSR_PKG_ENERGY_STATUS;