Hum... yes this kernel contains 5.11.0-18 from the master-next branch + the commit mentioned in your bug description:
ubuntu-hirsute [master-next]$ git log --oneline d96cbcb tools/power/turbostat: Fix turbostat for AMD Zen CPUs 8c01482 UBUNTU: Ubuntu-5.11.0-18.19 commit d96cbcb71e2a47f240dcadfc498db278fb2a0b56 Author: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Date: Wed Apr 28 17:09:03 2021 +0800 tools/power/turbostat: Fix turbostat for AMD Zen CPUs BugLink: https://bugs.launchpad.net/bugs/1928183 It was reported that on Zen+ system turbostat started exiting, which was tracked down to the MSR_PKG_ENERGY_STAT read failing because offset_to_idx wasn't returning a non-negative index. This patch combined the modification from Bingsong Si and Bas Nieuwenhuizen and addd the MSR to the index system as alternative for MSR_PKG_ENERGY_STATUS. Fixes: 9972d5d84d76 ("tools/power turbostat: Enable accumulate RAPL display") Reported-by: youling257 <youling...@gmail.com> Tested-by: youling257 <youling...@gmail.com> Tested-by: Kurt Garloff <k...@garloff.de> Tested-by: Bingsong Si <owen...@ucloud.cn> Tested-by: Artem S. Tashkinov <a...@gmx.com> Co-developed-by: Bingsong Si <owen...@ucloud.cn> Co-developed-by: Terry Bowman <terry.bow...@amd.com> Signed-off-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Reviewed-by: Chen Yu <yu.c.c...@intel.com> Signed-off-by: Len Brown <len.br...@intel.com> (cherry picked from commit 301b1d3a9104f4f3a8ab4171cf88d0f55d632b41) Signed-off-by: Po-Hsu Lin <po-hsu....@canonical.com> BTW it looks like you will need to install more than just linux-tools-common deb. On a 21.04 clean install, if I just install linux-tools-common the turbostat command will complain about: $ turbostat WARNING: turbostat not found for kernel 5.11.0-17 You may need to install the following packages for this specific kernel: linux-tools-5.11.0-17-generic linux-cloud-tools-5.11.0-17-generic I will have to install 5.11.0-18 kernel/header/module/module-extras debs and other two tools-5.11 deb files to make it work on 5.11.0-18 Can you give it a try? Thanks -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1928183 Title: turbostat doesn't work with AMD Cezanne APUs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1928183/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs