Commit 16cc8f24 authored by Len Brown's avatar Len Brown
Browse files

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: 19476a59 ("tools/power turbostat: Validate RAPL MSRs for AWS Nitro Hypervisor")
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 7f98ab9d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2135,7 +2135,7 @@ off_t idx_to_offset(int idx)

	switch (idx) {
	case IDX_PKG_ENERGY:
		if (valid_rapl_msrs & RAPL_AMD_F17H)
		if (platform->plat_rapl_msrs & RAPL_AMD_F17H)
			offset = MSR_PKG_ENERGY_STAT;
		else
			offset = MSR_PKG_ENERGY_STATUS;