Skip to contentSkip to conversation

tools/power turbostat: turbostat: Correct RAPL_GFX_ALL macro to use RAPL_GFX_POLICY

PATCH New Kaushlendra Kumar 1 participant 1 message May 23, 2025 Turbostat utility

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/power turbostat: turbostat: Correct RAPL_GFX_ALL macro to use RAPL_GFX_POLICY

The RAPL_GFX_ALL macro was incorrectly defined with RAPL_GFX_POLIGY, which is not a valid identifier. This patch corrects the macro to use RAPL_GFX_POLICY, as defined in the rapl_msrs enum, ensuring that all GFX-related RAPL MSRs are properly grouped for feature checks and platform support logic.

---
 tools/power/x86/turbostat/turbostat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/power/x86/turbostat/turbostat.c +1 -1
index 089220aaa5c9..a8f9cf9206bb 100644
@@ -512,7 +512,7 @@ enum rapl_msrs {
 #define RAPL_PKG_ALL	(RAPL_PKG | RAPL_PKG_PERF_STATUS | RAPL_PKG_POWER_INFO)
 #define RAPL_DRAM_ALL	(RAPL_DRAM | RAPL_DRAM_PERF_STATUS | RAPL_DRAM_POWER_INFO)
 #define RAPL_CORE_ALL	(RAPL_CORE | RAPL_CORE_POLICY)
-#define RAPL_GFX_ALL	(RAPL_GFX | RAPL_GFX_POLIGY)
+#define RAPL_GFX_ALL	(RAPL_GFX | RAPL_GFX_POLICY)
 
 #define RAPL_AMD_F17H	(RAPL_AMD_PWR_UNIT | RAPL_AMD_CORE_ENERGY_STAT | RAPL_AMD_PKG_ENERGY_STAT)
 
Signature · 1 line
2.34.1