clbr / radeontop

GNU General Public License v3.0
785 stars 69 forks source link

"Cannot access GPU registers, are you root?" even being root #124

Closed meddario closed 2 years ago

meddario commented 2 years ago

Hi, executing both

radeontop

and

sudo radeontop

I get the error Cannot access GPU registers, are you root?, do I need some special configuration?

Additional info

radeontop was installed by standard sudo apt update && sudo apt install -y radeontop.

Another strange thing:

radeontop -v
RadeonTop unknown
dpkg -l | grep radeontop
ii  radeontop                                   1.2-1                                      amd64        Utility to showRadeon GPU utilization

System info:

cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

lshw -C video
  *-display
       description: VGA compatible controller
       product: Wani [Radeon R5/R6/R7 Graphics]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 1
       bus info: pci@0000:00:01.0
       version: c9
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
       configuration: driver=amdgpu latency=0
       resources: irq:46 memory:e0000000-efffffff memory:d0800000-d0ffffff ioport:4000(size=256) memory:d1600000-d163ffff memory:c0000-dffff
  *-display
       description: Display controller
       product: Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 83
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi bus_master cap_list rom
       configuration: driver=amdgpu latency=0
       resources: irq:48 memory:c0000000-cfffffff memory:d0000000-d01fffff ioport:2000(size=256) memory:d1400000-d143ffff memory:d1440000-d145ffff

Laptop model: ACER Aspire E15 E5-553G-1615.

chromer030 commented 2 years ago

Try with latest radeontop from git , which currently is RadeonTop v1.3-4-g1552170. You should compile it yourself which is pretty simple and guided in README.

meddario commented 2 years ago

Hi,

I downloaded a tarball of 1.3 and it works, for the record, I had to install (Ubuntu 20.04):

sudo apt install libxcb-dri2-0-dev build-essential pkgconf libdrm-dev libncurses-dev libpciaccess-dev

I'll also try the git version, thanks!