]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tools/power turbostat: AMD: msr offset 0x611 read failed: Input/output error
authorLen Brown <len.brown@intel.com>
Wed, 4 Feb 2026 20:41:53 +0000 (14:41 -0600)
committerLen Brown <len.brown@intel.com>
Wed, 4 Feb 2026 20:52:11 +0000 (14:52 -0600)
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>
tools/power/x86/turbostat/turbostat.c

index 5ad45c2ac5bd8f898dddbd0de4918d0e56c0ba82..c4c8b6315fd26e0a5a0ebb89488a062339516d50 100644 (file)
@@ -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;