Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/power turbostat: Fix AMD RAPL regression on big systems

turbostat.c:8688: rapl_perf_init: Assertion `next_domain < num_domains' failed.

The initial fix for this regression was incomplete, as it did not
handle multi-package systems with sparse core ids.

Fixes: ef0e60083f76 ("tools/power turbostat: Fix AMD RAPL regression")
Signed-off-by: Len Brown <len.brown@intel.com>

+1 -1
+1 -1
tools/power/x86/turbostat/turbostat.c
··· 5155 5155 if (!platform->has_per_core_rapl) 5156 5156 return topo.num_packages; 5157 5157 5158 - return topo.num_cores; 5158 + return GLOBAL_CORE_ID(topo.max_core_id, topo.num_packages) + 1; 5159 5159 } 5160 5160 5161 5161 static inline int get_rapl_domain_id(int cpu)