diff options
| author | Len Brown <len.brown@intel.com> | 2026-02-04 23:41:53 +0300 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2026-02-04 23:52:11 +0300 |
| commit | 16cc8f249c702b7cbb4c2c2be7cd8f4fdd5d1d0c (patch) | |
| tree | 93b646848ff3ffce0ad77ad4150bb197ddd71bde | |
| parent | 7f98ab9da046865d57c102fd3ca9669a29845f67 (diff) | |
| download | linux-16cc8f249c702b7cbb4c2c2be7cd8f4fdd5d1d0c.tar.xz | |
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>
| -rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 5ad45c2ac5bd..c4c8b6315fd2 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -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; |
