AMDGPU driver

Can anybody tell me how to get the system to use the open source amdgpu driver, as after running :

inxi -Gaz

the output is :

Graphics: Device-1: AMD Renoir vendor: Lenovo driver: N/A bus ID: 07:00.0 chip ID: 1002:1636
Device-2: Acer type: USB driver: uvcvideo bus ID: 2-2:2 chip ID: 5986:2130
Display: server: X.Org 1.20.3 compositor: kwin_x11 driver: N/A note: display driver n/a
unloaded: fbdev,modesetting,vesa alternate: ati display ID: :0 screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") s-diag: 414mm (16.3")
Monitor-1: default res: 1366x768 hz: 76
OpenGL: renderer: N/A v: N/A direct render: N/A

Any ideas, please?

Package xf86-video-amdgpu-18.1.0-lp152.2.5.x86_64.rpm is installed.

Thanks in advance

Hi
The kernel in openSUSE Leap 15.2 is too old to support the newer card. AFAIK you will need to look at trying the kernel from Kernel:stable repository…

Try to use amdgpu-pro driver.
You will get OpenCL support.

No problems with Tumbleweed:

**erlangen:~ #** inxi -Gaz 
**Graphics:  Device-1:** AMD Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] **vendor:** Sapphire Limited **driver:** amdgpu  
           **v:** kernel **bus ID:** 01:00.0 **chip ID:** 1002:699f  
           **Display:****server:** X.Org 1.20.10 **compositor:** kwin_x11 **driver:** amdgpu,ati **unloaded:** fbdev,modesetting,vesa  
           **display ID:** :0 **screens:** 1  
           **Screen-1:** 0 **s-res:** 3840x2160 **s-dpi:** 144 **s-size:** 677x381mm (26.7x15.0") **s-diag:** 777mm (30.6")  
           **Monitor-1:** HDMI-A-0 **res:** 3840x2160 **hz:** 60 **dpi:** 154 **size:** 632x360mm (24.9x14.2") **diag:** 727mm (28.6")  
           **OpenGL:****renderer:** Radeon RX550/550 Series (POLARIS12 DRM 3.40.0 5.10.7-1-default LLVM 11.0.0) **v:** 4.6 Mesa 20.3.2  
           **direct render:** Yes  
**erlangen:~ #**

You may try Live Tumbleweed and consider switching if successful.

Please do not embarrass immature minds.
OP is using new AMD Renoir, and you are using old AMD Lexa Pro.

That’s why I said ‘if successful’. Anyway:

**3400G:~ #** inxi -Gaz 
**Graphics:  Device-1:** Advanced Micro Devices [AMD/ATI] Picasso **vendor:** Gigabyte **driver:** amdgpu **v:** kernel **bus ID:** 08:00.0  
           **chip ID:** 1002:15d8  
           **Display:****server:** X.Org 1.20.10 **compositor:** kwin_x11 **driver:** amdgpu,ati **unloaded:** fbdev,modesetting,vesa  
           **display ID:** :0 **screens:** 1  
           **Screen-1:** 0 **s-res:** 1920x1200 **s-dpi:** 96 **s-size:** 508x317mm (20.0x12.5") **s-diag:** 599mm (23.6")  
           **Monitor-1:** DVI-D-0 **res:** 1920x1200 **hz:** 60 **dpi:** 94 **size:** 520x330mm (20.5x13.0") **diag:** 616mm (24.2")  
           **OpenGL:****renderer:** AMD Radeon Vega 11 Graphics (RAVEN DRM 3.40.0 5.11.0-rc4-1.g41414a9-vanilla LLVM 11.0.0)  
           **v:** 4.6 Mesa 20.3.2 **direct render:** Yes  
**3400G:~ #**

Tumbleweed and Leap have a bad bug, which prevents from suspending to RAM while all other distributions checked work well. Aside from this I experienced no problems.

Please post the output of –

 # lsmod | grep -iE 'amd|radeon'

You may have to simply execute “modprobe amdgpu” …

Which “Renoir” processor do you have?

[HR][/HR]This machine is running Leap 15.2 on an AMD Ryzen 5 3400G with Radeon Vega Graphics – Advanced Micro Devices [AMD/ATI] Picasso

  • Yes, “Renoir
    ” succeeds “Picasso” but, AFAICS, they’re both Vega 11 – the Ryzen 5 3400G is definitely a “Vega 11” device …

Thanks, I will try the modprobe route and see if that works.

I have a Ryzen 5 4650U which is a Vega 6 AFAIK.

Thanks, I have tried that, but it simply crashes X. No video output.

Nope, the modprobe doesn’t help, but thanks for the suggestion.

We used to have SaX2 to reconfigure X which was useful. I really dislike a system that tries to be “clever” and autodetect only.

Is there no tool like SaX2 anymore?

Nope – we’re slowly returning to the original UNIX® world – install it and run it …

Then, you’ll need at least a version 5.8 Linux Kernel – better a version 5.10 Kernel …

[HR][/HR]Bottom line:

  • AMD Renoir needs Tumbleweed – Linux Kernel version 5.10 – actually currently version 5.10.4 …

Disable ATI driver.
3200G suspends Ok.

TW or Leap with a new kernel.

Removed package xf86-video-ati:

**3400G:~ #** inxi -Gaz 
**Graphics:  Device-1:** Advanced Micro Devices [AMD/ATI] Picasso **vendor:** Gigabyte **driver:** amdgpu **v:** kernel **bus ID:** 08:00.0  
           **chip ID:** 1002:15d8  
           **Display:****server:** X.Org 1.20.10 **compositor:** kwin_x11 **driver:** amdgpu **unloaded:** fbdev,modesetting,vesa **alternate:** ati  
           **display ID:** :0 **screens:** 1  
           **Screen-1:** 0 **s-res:** 1920x1200 **s-dpi:** 96 **s-size:** 508x317mm (20.0x12.5") **s-diag:** 599mm (23.6")  
           **Monitor-1:** DVI-D-0 **res:** 1920x1200 **hz:** 60 **dpi:** 94 **size:** 520x330mm (20.5x13.0") **diag:** 616mm (24.2")  
           **OpenGL:****renderer:** AMD Radeon Vega 11 Graphics (RAVEN DRM 3.40.0 5.10.7-1-default LLVM 11.0.1) **v:** 4.6 Mesa 20.3.3  
           **direct render:** Yes  
**3400G:~ #**

Kerenel is 5.10.7-1-default. Suspend to RAM still fails:

**3400G:~ #** journalctl -b -1 -u systemd-suspend.service 
-- Logs begin at Sat 2020-12-12 12:09:37 CET, end at Thu 2021-01-21 17:19:22 CET. -- 
Jan 21 17:07:17 3400G systemd[1]: Starting Suspend... 
Jan 21 17:07:17 3400G systemd-sleep[2193]: Successfully forked off '(sd-executor)' as PID 2194.
Jan 21 17:07:17 3400G [2194]: Successfully forked off '(direxec)' as PID 2195.
Jan 21 17:07:17 3400G systemd-sleep[2195]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend 
Jan 21 17:07:17 3400G [2194]: /usr/lib/systemd/system-sleep/grub2.sleep succeeded.
Jan 21 17:07:17 3400G systemd-sleep[2193]: (sd-executor) succeeded.
Jan 21 17:07:17 3400G systemd-sleep[2193]: Bus n/a: changing state UNSET → OPENING
Jan 21 17:07:17 3400G systemd-sleep[2193]: sd-bus: starting bus by connecting to /run/dbus/system_bus_socket...
Jan 21 17:07:17 3400G systemd-sleep[2193]: Bus n/a: changing state OPENING → AUTHENTICATING
Jan 21 17:07:17 3400G systemd-sleep[2193]: Bus n/a: changing state AUTHENTICATING → HELLO
Jan 21 17:07:17 3400G systemd-sleep[2193]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Jan 21 17:07:17 3400G systemd-sleep[2193]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.63 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Jan 21 17:07:17 3400G systemd-sleep[2193]: Bus n/a: changing state HELLO → RUNNING
Jan 21 17:07:17 3400G systemd-sleep[2193]: Sent message type=method_call sender=n/a destination=org.freedesktop.home1 path=/org/freedesktop/home1 interface=org.freedesktop.home1.Manager member=LockAllHomes cookie=2 reply_cookie=0 signature=n/a error-name=n/a error-mess>
Jan 21 17:07:17 3400G systemd-sleep[2193]: Got message type=error sender=org.freedesktop.DBus destination=:1.63 path=n/a interface=n/a member=n/a cookie=3 reply_cookie=2 signature=s error-name=org.freedesktop.DBus.Error.NameHasNoOwner error-message=Name "org.freedeskto>
Jan 21 17:07:17 3400G systemd-sleep[2193]: systemd-homed is not running, skipping locking of home directories.
Jan 21 17:07:17 3400G systemd-sleep[2193]: Bus n/a: changing state RUNNING → CLOSED
Jan 21 17:07:17 3400G systemd-sleep[2193]: Suspending system... 
**3400G:~ #**

Errors are:

Jan 21 17:07:22 3400G kernel: ACPI: Preparing to enter system sleep state S3 
Jan 21 17:07:22 3400G kernel: PM: Saving platform NVS memory 
Jan 21 17:07:22 3400G kernel: Disabling non-boot CPUs ... 
Jan 21 17:07:22 3400G kernel: Wakeup pending. Abort CPU freeze 
Jan 21 17:07:22 3400G kernel: **Non-boot CPUs are not disabled**
Jan 21 17:07:22 3400G kernel: ACPI: Waking up from system sleep state S3 
Jan 21 17:07:22 3400G kernel: **usb usb1: root hub lost power or was reset**
Jan 21 17:07:22 3400G kernel: **usb usb2: root hub lost power or was reset**
Jan 21 17:07:22 3400G kernel: **sd 1:0:0:0: [sdb] Starting disk**
Jan 21 17:07:22 3400G kernel: **sd 4:0:0:0: [sdc] Starting disk**
Jan 21 17:07:22 3400G kernel: **sd 0:0:0:0: [sda] Starting disk**
Jan 21 17:07:22 3400G kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000). 
Jan 21 17:07:22 3400G kernel: [drm] PSP is resuming... 
Jan 21 17:07:22 3400G kernel: serial 00:05: activated 
Jan 21 17:07:22 3400G kernel: [drm] reserve 0x400000 from 0xf47fc00000 for PSP TMR 
Jan 21 17:07:22 3400G kernel: amdgpu 0000:08:00.0: amdgpu: RAS: optional ras ta ucode is not available 
Jan 21 17:07:22 3400G kernel: amdgpu 0000:08:00.0: amdgpu: RAP: optional rap ta ucode is not available 
Jan 21 17:07:22 3400G kernel: ata6: SATA link down (SStatus 0 SControl 330) 
Jan 21 17:07:22 3400G kernel: ata9: SATA link down (SStatus 0 SControl 300) 
Jan 21 17:07:22 3400G kernel: ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300) 
Jan 21 17:07:22 3400G kernel: ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) 
Jan 21 17:07:22 3400G kernel: ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300) 
Jan 21 17:07:22 3400G kernel: ata5.00: configured for UDMA/133 
Jan 21 17:07:22 3400G kernel: **ata1.00: supports DRM functions and may not be fully accessible**
Jan 21 17:07:22 3400G kernel: **ata2.00: supports DRM functions and may not be fully accessible**
Jan 21 17:07:22 3400G kernel: ata1.00: disabling queued TRIM support
Jan 21 17:07:22 3400G kernel: ata2.00: disabling queued TRIM support
Jan 21 17:07:22 3400G kernel: **ata1.00: supports DRM functions and may not be fully accessible**
Jan 21 17:07:22 3400G kernel: ata1.00: disabling queued TRIM support
Jan 21 17:07:22 3400G kernel: **ata2.00: supports DRM functions and may not be fully accessible**
Jan 21 17:07:22 3400G kernel: ata1.00: configured for UDMA/133 
Jan 21 17:07:22 3400G kernel: ata2.00: disabling queued TRIM support
Jan 21 17:07:22 3400G kernel: ata2.00: configured for UDMA/133 
Jan 21 17:07:22 3400G kernel: [drm] kiq ring mec 2 pipe 1 q 0 
Jan 21 17:07:22 3400G kernel: amdgpu: dpm has been enabled 
Jan 21 17:07:22 3400G kernel: usb 1-6: reset low-speed USB device number 2 using xhci_hcd 
Jan 21 17:07:22 3400G kernel: [drm] VCN decode and encode initialized successfully(under SPG Mode). 
Jan 21 17:07:22 3400G kernel: amdgpu 0000:08:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0 
Jan 21 17:07:22 3400G kernel: amdgpu 0000:08:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0 
Jan 21 17:07:22 3400G kernel: amdgpu 0000:08:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0 
Jan 21 17:07:22 3400G kernel: amdgpu 0000:08:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0 
Jan 21 17:07:22 3400G kernel: amdgpu 0000:08:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0 
Jan 21 17:07:22 3400G kernel: amdgpu 0000:08:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0 
Jan 21 17:07:22 3400G kernel: amdgpu 0000:08:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0

Thanks for all the input guys. I ended up re-installing with tumbleweed. Unfortunately tumbleweed doesn’t seem to suppot hibernation, which leap does? Go figure!

Thanks again.

[QUOTE=leonpmu;2998642]Can anybody tell me how to get the system to use the open source amdgpu driver, as after running :

inxi -Gaz

the output is :

Graphics: Device-1: AMD Renoir vendor: Lenovo driver: N/A bus ID: 07:00.0 chip ID: 1002:1636
Device-2: Acer type: USB driver: uvcvideo bus ID: 2-2:2 chip ID: 5986:2130 kernel-default-5.10.14-1.1.g0a69f62.x86_64
Display: server: X.Org 1.20.3 compositor: kwin_x11 driver: N/A note: display driver n/a
unloaded: fbdev,modesetting,vesa alternate: ati display ID: :0 screens: 1
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") s-diag: 414mm (16.3")
Monitor-1: default res: 1366x768 hz: 76
OpenGL: renderer: N/A v: N/A direct render: N/A

Any ideas, please?

I am running leap 15.2 on a HP 855 G7 . Leap 15.2 and I believe 15.3 provide a 5.3 kernel . There were other issues such as the buttons on the touchpad did not work. After much fumbling I added the stable kernel repository - https://download.opensuse.org/repositories/Kernel:/stable/standard/ . This provided : kernel-default-5.10.14-1.1.g0a69f62.x86_64 . Now I can use the HDMI port and the touchpad buttons.

Just guessing you may need newer firmware than that provided by 15.2 with 5.10.14. Did you try the 15.3 kernel and kernel-firmware before 5.10.14? Are xf86-video-amdgpu and libdrm_amdgpu1 installed? Does /etc/X11/xorg.conf exist? If yes, what does it contain? Does any /etc/X11/xorg.conf.d/*amdgpu.conf or *device.conf file exist that specifies any specific device driver? The URL resulting from

susepaste -n dml12 /var/log/Xorg.0.log

might lead us to clues what’s going wrong.

With current Linux Kernels, Leap and Tumbleweed, when UEFI Secure Boot is active, the Kernel is “locked down” – meaning, currently, Hibernation doesn’t work – due to the Swap space not being encrypted …


 > cat /sys/kernel/security/lsm
lockdown,capability,apparmor > 


 # journalctl --this-boot --output=short-monotonic | grep -iE ' locked |lockdown|secure'
    0.000000] xxx kernel: secureboot: Secure boot enabled
    0.000000] xxx kernel: Kernel is locked down from EFI Secure Boot mode; see man kernel_lockdown.7
    0.004595] xxx kernel: secureboot: Secure boot enabled
    1.861258] xxx kernel: Loaded X.509 cert 'openSUSE Secure Boot Signkey: c8bdc7ac1a1d85966217fd93ebfc14f4a200b814'
    1.866590] xxx kernel: integrity: Loaded X.509 cert 'openSUSE Secure Boot CA: 6842600de22c4c477e95be23dfea9513e5971762'
    1.867135] xxx kernel: Lockdown: swapper/0: hibernation is restricted; see man kernel_lockdown.7
    3.885179] xxx kernel: Lockdown: systemd: /dev/mem,kmem,port is restricted; see man kernel_lockdown.7
    4.106570] xxx kernel: Lockdown: systemd-hiberna: hibernation is restricted; see man kernel_lockdown.7
    4.889429] xxx kernel: Lockdown: systemd: /dev/mem,kmem,port is restricted; see man kernel_lockdown.7
    7.372868] xxx kernel: Lockdown: numlockbios: /dev/mem,kmem,port is restricted; see man kernel_lockdown.7
   21.194839] xxx kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
 # 

Unfortunately, the “kernel_lockdown” man (7) page isn’t normally installed on Leap systems but, it’s available here … https://man7.org/linux/man-pages/man7/kernel_lockdown.7.html.
Please take note of the following entry in the man page –


       • Unencrypted hibernation/suspend to swap are disallowed as the
         kernel image is saved to a medium that can then be accessed.

I have always disabled UEFI secure mode on all machines I use. I actually hate UEFI but we are being herded like sheep to the slaughter on this ****. So I cripple it as much as possible. Which is why I also disable TPM or the AMD equivalent if possible as well.

But thanks for that info, very helpful.