Skip to content

Commit 16cc8f2

Browse files
committed
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: 19476a5 ("tools/power turbostat: Validate RAPL MSRs for AWS Nitro Hypervisor") Signed-off-by: Len Brown <len.brown@intel.com>
1 parent 7f98ab9 commit 16cc8f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/power/x86/turbostat/turbostat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2135,7 +2135,7 @@ off_t idx_to_offset(int idx)
21352135

21362136
switch (idx) {
21372137
case IDX_PKG_ENERGY:
2138-
if (valid_rapl_msrs & RAPL_AMD_F17H)
2138+
if (platform->plat_rapl_msrs & RAPL_AMD_F17H)
21392139
offset = MSR_PKG_ENERGY_STAT;
21402140
else
21412141
offset = MSR_PKG_ENERGY_STATUS;

0 commit comments

Comments
 (0)