]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/power turbostat: Fix AMD RAPL regression
authorLen Brown <len.brown@intel.com>
Wed, 18 Feb 2026 02:31:51 +0000 (20:31 -0600)
committerLen Brown <len.brown@intel.com>
Wed, 18 Feb 2026 05:27:52 +0000 (23:27 -0600)
commitef0e60083f768b32cda17b1b0ca9519405db89a6
tree6682baa76f58ed32a91586dadc2873dd6312ac6a
parent51496091dd37b405e6e399a9638da3f1da3f4c64
tools/power turbostat: Fix AMD RAPL regression

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

Two recent cleanup patches that were not supposed to change anything
broke the core_id code needed for AMD RAPL initialization:

commit 070e92361eec ("tools/power turbostat: Enhance HT enumeration")
commit ddf60e38ca04 ("tools/power turbostat: Simplify global core_id calculation")

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c