clbr / radeontop

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

Radeon RX 580 with amdgpu on kernel 5.3.0-29-lowlatency #99

Open windowsrefund opened 4 years ago

windowsrefund commented 4 years ago

Hello,

My freshly installed card appears to be running fine with the amdgpu module.

> lspci -k | grep -A 2 VGA 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e7) Subsystem: Sapphire Technology Limited Radeon RX 570 Pulse 4GB Kernel driver in use: amdgpu

However, despite compiling radeontop 1.2, I'm seeing the following errors before and after the program runs.

> sudo radeontop amdgpu DRM driver is used, but clock reporting is not enabled amdgpu DRM driver is used, but amdgpu VRAM size reporting is not enabled amdgpu DRM driver is used, but amdgpu VRAM usage reporting is not enabled Failed to get VRAM usage, kernel likely too old Collecting data, please wait....

Please let me know if I can supply additional information that might be helpful.

clbr commented 4 years ago

I'm not sure if the libdrm version was autodetected in 1.2; before autodetection, you had to manually enable it in Makefile or by passing a var, because it required a relatively recent libdrm at the time.

windowsrefund commented 4 years ago

Thank you for the response. I ran make with nls=0 amdgpu=1

Here's some addtional information

ldd /usr/sbin/radeontop 
    linux-vdso.so.1 (0x00007ffd4d2d4000)
    libpciaccess.so.0 => /lib/x86_64-linux-gnu/libpciaccess.so.0 (0x00007f90ee247000)
    libdrm.so.2 => /lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f90ee233000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f90ee22d000)
    libncursesw.so.6 => /lib/x86_64-linux-gnu/libncursesw.so.6 (0x00007f90ee1f3000)
    libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f90ee1c3000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f90ee1a0000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f90edfad000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f90edf91000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f90ede42000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f90ee280000)

dpkg -l | grep libdrm 
ii  libdrm-amdgpu1:amd64                 2.4.99-1ubuntu1                        amd64        Userspace interface to amdgpu-specific kernel DRM services -- runtime
ii  libdrm-common                        2.4.99-1ubuntu1                        all          Userspace interface to kernel DRM services -- common files
ii  libdrm-dev:amd64                     2.4.99-1ubuntu1                        amd64        Userspace interface to kernel DRM services -- development files
ii  libdrm-intel1:amd64                  2.4.99-1ubuntu1                        amd64        Userspace interface to intel-specific kernel DRM services -- runtime
ii  libdrm-nouveau2:amd64                2.4.99-1ubuntu1                        amd64        Userspace interface to nouveau-specific kernel DRM services -- runtime
ii  libdrm-radeon1:amd64                 2.4.99-1ubuntu1                        amd64        Userspace interface to radeon-specific kernel DRM services -- runtime
ii  libdrm2:amd64                        2.4.99-1ubuntu1                        amd64        Userspace interface to kernel DRM services -- runtime
trek00 commented 4 years ago

It seems to me you are running an older version of radeontop, please try again with the latest git version