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 Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1928183

Title:
  turbostat doesn't work with AMD Cezanne APUs

Status in linux package in Ubuntu:
  Confirmed
Status in linux source package in Hirsute:
  Incomplete

Bug description:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985681 describes the
  issue and necessary cherry-pick
  (https://git.kernel.org/linus/301b1d3a9104f4f3a8ab4171cf88d0f55d632b41).

  ProblemType: Bug
  DistroRelease: Ubuntu 21.04
  Package: linux-tools-common 5.11.0-17.18
  ProcVersionSignature: Ubuntu 5.11.0-17.18-generic 5.11.12
  Uname: Linux 5.11.0-17-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu65
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  bartle     2287 F.... pulseaudio
   /dev/snd/controlC0:  bartle     2287 F.... pulseaudio
  CasperMD5CheckResult: unknown
  CurrentDesktop: GNOME-Flashback:GNOME
  Date: Wed May 12 01:04:15 2021
  MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
  PackageArchitecture: all
  ProcFB: 0 amdgpudrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.11.0-17-generic 
root=UUID=27b86d91-8e89-49da-ad17-45901581ce2f ro
  RelatedPackageVersions:
   linux-restricted-modules-5.11.0-17-generic N/A
   linux-backports-modules-5.11.0-17-generic  N/A
   linux-firmware                             1.197
  RfKill:
   0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
  SourcePackage: linux
  UpgradeStatus: Upgraded to hirsute on 2021-04-22 (19 days ago)
  dmi.bios.date: 04/23/2021
  dmi.bios.release: 5.17
  dmi.bios.vendor: American Megatrends International, LLC.
  dmi.bios.version: P2.10
  dmi.board.name: B550 Phantom Gaming-ITX/ax
  dmi.board.vendor: ASRock
  dmi.chassis.asset.tag: To Be Filled By O.E.M.
  dmi.chassis.type: 3
  dmi.chassis.vendor: To Be Filled By O.E.M.
  dmi.chassis.version: To Be Filled By O.E.M.
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInternational,LLC.:bvrP2.10:bd04/23/2021:br5.17:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rnB550PhantomGaming-ITX/ax:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
  dmi.product.family: To Be Filled By O.E.M.
  dmi.product.name: To Be Filled By O.E.M.
  dmi.product.sku: To Be Filled By O.E.M.
  dmi.product.version: To Be Filled By O.E.M.
  dmi.sys.vendor: To Be Filled By O.E.M.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1928183/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to