need help with AMDGPU drivers.

CataclysmicGentleman

Active Member
Joined
Jan 18, 2023
Messages
222
Reaction score
87
Credits
1,855
im stuck here: https://www.amd.com/en/support/grap.../amd-radeon-rx-6400-series/amd-radeon-rx-6400
I am running the latest stable release of the linux kernel, and heres all my info:

System: Kernel: 6.1.0-0.deb11.7-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1
Desktop: Cinnamon 5.6.8 tk: GTK 3.24.24 wm: muffin dm: LightDM Distro: LMDE 5 Elsie
base: Debian 11.2 bullseye
Machine: Type: Desktop System: Dell product: OptiPlex 3060 v: N/A serial: <filter> Chassis:
type: 3 serial: <filter>
Mobo: Dell model: 04Y8V0 v: A02 serial: <filter> UEFI: Dell v: 1.21.0 date: 07/06/2022
CPU: Info: 6-Core model: Intel Core i5-8500 bits: 64 type: MCP arch: Kaby Lake note: check
rev: A L2 cache: 9 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 36000
Speed: 900 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 900 2: 900 3: 900 4: 900
5: 900 6: 900
Graphics: Device-1: Intel CometLake-S GT2 [UHD Graphics 630] vendor: Dell driver: i915 v: kernel
bus ID: 00:02.0 chip ID: 8086:3e92
Device-2: AMD vendor: Sapphire Limited driver: N/A bus ID: 03:00.0 chip ID: 1002:743f
Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting unloaded: fbdev,vesa
resolution: 1920x1080~60Hz s-dpi: 96
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.5
direct render: Yes
Audio: Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel v: kernel
bus ID: 00:1f.3 chip ID: 8086:a348
Device-2: AMD driver: snd_hda_intel v: kernel bus ID: 03:00.1 chip ID: 1002:ab28
Device-3: C-Media Blue Snowball type: USB driver: hid-generic,snd-usb-audio,usbhid
bus ID: 1-5:3 chip ID: 0d8c:0005
Sound Server: ALSA v: k6.1.0-0.deb11.7-amd64
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Dell
driver: r8169 v: kernel port: 3000 bus ID: 04:00.0 chip ID: 10ec:8168
IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth: Device-1: ASUSTek ASUS USB-BT500 type: USB driver: btusb v: 0.8 bus ID: 1-9:4
chip ID: 0b05:190e
Report: ID: hci0 state: down address: <filter>
Drives: Local Storage: total: 1.82 TiB used: 78.19 GiB (4.2%)
ID-1: /dev/nvme0n1 vendor: Western Digital model: WDS100T2B0C-00PXH0 size: 931.51 GiB
speed: 31.6 Gb/s lanes: 4 serial: <filter>
ID-2: /dev/sda vendor: Western Digital model: WDS100T2B0A-00SM50 size: 931.51 GiB
speed: 6.0 Gb/s serial: <filter>
Partition: ID-1: / size: 907.47 GiB used: 39.09 GiB (4.3%) fs: ext4 dev: /dev/nvme0n1p3
ID-2: /boot/efi size: 285.4 MiB used: 5.8 MiB (2.0%) fs: vfat dev: /dev/nvme0n1p1
Swap: ID-1: swap-1 type: partition size: 8.2 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p2
Sensors: System Temperatures: cpu: 57.0 C mobo: N/A
Fan Speeds (RPM): N/A
Repos: Packages: 2245 apt: 2236 flatpak: 9
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/adoptopenjdk.list
1: deb https: //adoptopenjdk.jfrog.io/adoptopenjdk/deb buster main
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http: //packages.linuxmint.com elsie main upstream import backport #id:linuxmint_main
2: deb https: //deb.debian.org/debian bullseye main contrib non-free
3: deb https: //deb.debian.org/debian bullseye-updates main contrib non-free
4: deb http: //security.debian.org bullseye-security main contrib non-free
5: deb https: //deb.debian.org/debian bullseye-backports main contrib non-free
Info: Processes: 238 Uptime: 6m Memory: 15.45 GiB used: 3.26 GiB (21.1%) Init: systemd v: 247
runlevel: 5 Compilers: gcc: 10.2.1 alt: 10 Client: Cinnamon v: 5.6.8 inxi: 3.3.01

when i do "lspci | grep VGA" I get:

00:02.0 VGA compatible controller: Intel Corporation CometLake-S GT2 [UHD Graphics 630]
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 743f (rev c7


the first one is the built in gpu that uh cant run anything, the second one is the installed GPU. Please note i have gotten this GPU to work on linux many times before, just having trouble since switching to a debian based distro (using LMDE5)

you would think the second one is the GPU, but im not sure why it wont let me boot from it (via HDMI) or use it when gaming. imma double triple check tho so brb

im stuck and dont know what else to do. there isnt a linux install for the AMD drivers for debian, only ubunutu and redhat, (check the link) so uh what do i do?
 


Graphics: Device-1: Intel CometLake-S GT2 [UHD Graphics 630] vendor: Dell driver: i915 v: kernel
bus ID: 00:02.0 chip ID: 8086:3e92
Device-2: AMD vendor: Sapphire Limited driver: N/A bus ID: 03:00.0 chip ID: 1002:743f
if you'll notice how the intel gpu has a driver, but the amd one doesn't it looks like it isn't loading for some reason.

you could try

sudo update-pciids

to see if that will help the gpu get correctly identified and hopefully get a driver.
 
if you'll notice how the intel gpu has a driver, but the amd one doesn't it looks like it isn't loading for some reason.

you could try

sudo update-pciids

to see if that will help the gpu get correctly identified and hopefully get a driver.
your a hero, that was so easy and now it identifies my gpu
 
for the record, i got that idea from your info in a previous post:
when I did the command
"lspci | grep VGA" it said
"00:02.0 VGA compatible controller: Intel Corporation CometLake-S GT2 [UHD Graphics 630]
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 743f (rev c7)" unless my AMD RX 6400 is the "AMD device 743f" I don't think its detected.
great job sticking with it until you found a fix.
 
for the record, i got that idea from your info in a previous post:

great job sticking with it until you found a fix.
now how do i tell which GPU my system is using and how do i tell it to use my epic beefy one instead of the built in one?
 
now how do i tell which GPU my system is using and how do i tell it to use my epic beefy one instead of the built in one?
Have a look in your BIOS and see if there are any options to select which GPU you want to use.

You can also use the glxinfo command to find more info on which GPU is running the show. See here:

Before you give the Last Resort a try d-message the driver of the GPU if you think the driver isn't loading.
Code:
dmesg <name of driver>

Drivers are listed under lsmod.

The Xorg log is helpful too- Just run this command to see what's going on.
Code:
/var/log/Xorg.0.log

Last Resort: You could blacklist the driver for the GPU that you don't want to run the show. USE Caution here!
IF you decide to do that write down what you did so you can re-enable it again if you have to.
If the driver for the GPU that you didn't blacklist is not loading as it should: the screen will most likely stay black.
 
Last edited:
For fun I looked through my Xorg log and the driver/module for my Radeon GPU is loading.
Code:
Loading /usr/lib/xorg/modules/drivers/radeon_drv.so

[    18.871] (II) Module radeon: vendor="X.Org Foundation"


The AMDGPU driver is working well on my Debian system.

Code:
amdgpu               6713344  0
gpu_sched              49152  1 amdgpu
Code:
i2c_algo_bit           16384  2 amdgpu,radeon
ttm                   114688  2 amdgpu,radeon

I could be mistaken, however if my memory serves me right the AMDGPU driver is already in the Linux kernel.


Hope that helps:-:)
 
For fun I looked through my Xorg log and the driver/module for my Radeon GPU is loading.
Code:
Loading /usr/lib/xorg/modules/drivers/radeon_drv.so

[    18.871] (II) Module radeon: vendor="X.Org Foundation"


The AMDGPU driver is working well on my Debian system.

Code:
amdgpu               6713344  0
gpu_sched              49152  1 amdgpu
Code:
i2c_algo_bit           16384  2 amdgpu,radeon
ttm                   114688  2 amdgpu,radeon

I could be mistaken, however if my memory serves me right the AMDGPU driver is already in the Linux kernel.


Hope that helps:-:)
when I type in lspci | greb vga my GPU shows up (both of them ) however when trying to game it doesnt rely on my beefy budget gaming GPU, system relies on the intel GPU which is not intended for gaming. how do I change that?


Code:
 lspci | grep VGA [code]
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630]
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 24 [Radeon RX 6400/6500 XT/6500M] (rev c7)
 
i dont think i have the amd GPU drivers, when i look i have a driver for settings but idk if its the same thing:

Code:
cd /usr/lib/xorg/modules/drivers
:/usr/lib/xorg/modules/drivers$ ls
amdgpu_drv.so  fbdev_drv.so  modesetting_drv.so  qxl_drv.so     vesa_drv.so
ati_drv.so     intel_drv.so  nouveau_drv.so      radeon_drv.so  vmware_drv.so 


 [code]
 
to see if i have a graphics driver loaded i check either

lspci -knn | grep -iA3 vga

and look for a "Kernel driver in use" line or

inxi -G

and look for the "driver:" part to have driver after it:

Code:
lspci -knn | grep -iA3 vga
00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06)
	Subsystem: Lenovo 4th Gen Core Processor Integrated Graphics Controller [17aa:221e]
	Kernel driver in use: i915
	Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GLM [Quadro K1100M] [10de:0ff6] (rev a1)
	Subsystem: Lenovo GK107GLM [Quadro K1100M] [17aa:221e]
	Kernel driver in use: nouveau
	Kernel modules: nouveau
inxi -G
Graphics:  Device-1: Intel 4th Gen Core Processor Integrated Graphics driver: i915 v: kernel 
           Device-2: NVIDIA GK107GLM [Quadro K1100M] driver: nouveau v: kernel 
           Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting unloaded: fbdev,vesa 
           resolution: 1280x720~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4600 (HSW GT2) v: 4.5 Mesa 20.3.5
 
to see if i have a graphics driver loaded i check either

lspci -knn | grep -iA3 vga

and look for a "Kernel driver in use" line or

inxi -G

and look for the "driver:" part to have driver after it:

Code:
lspci -knn | grep -iA3 vga
00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06)
    Subsystem: Lenovo 4th Gen Core Processor Integrated Graphics Controller [17aa:221e]
    Kernel driver in use: i915
    Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GLM [Quadro K1100M] [10de:0ff6] (rev a1)
    Subsystem: Lenovo GK107GLM [Quadro K1100M] [17aa:221e]
    Kernel driver in use: nouveau
    Kernel modules: nouveau
inxi -G
Graphics:  Device-1: Intel 4th Gen Core Processor Integrated Graphics driver: i915 v: kernel
           Device-2: NVIDIA GK107GLM [Quadro K1100M] driver: nouveau v: kernel
           Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting unloaded: fbdev,vesa
           resolution: 1280x720~60Hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4600 (HSW GT2) v: 4.5 Mesa 20.3.5
Code:
lspci -knn | grep -iA3 vga
00:02.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] [8086:3e92]
    DeviceName: Onboard - Video
    Subsystem: Dell UHD Graphics 630 (Desktop) [1028:085c]
    Kernel driver in use: i915
--
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 24 [Radeon RX 6400/6500 XT/6500M] [1002:743f] (rev c7)
    Subsystem: Sapphire Technology Limited Device [1da2:e458]
    Kernel modules: amdgpu
03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller [1002:ab28]
 
also:
Code:
 inxi -G
Graphics:  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] driver: i915 v: kernel 
           Device-2: Advanced Micro Devices [AMD/ATI] Navi 24 [Radeon RX 6400/6500 XT/6500M] driver: N/A 
           Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.5
 
seems to me the opengl is using only the on board gpu, but the other gpu is there, it also says driver: N/A so uh yeah
 
both still show that driver (amdgpu) doesn't appear to be loading for some reason. which kernel are you using? you should be able to check with

uname -r
6.1.0-0.deb11.7-amd64
 
this is the debian wiki for how to get amdgpu drivers working: https://wiki.debian.org/AtiHowTo

since it suggests installing these packages: firmware-amd-graphics libgl1-mesa-dri libglx-mesa0 mesa-vulkan-drivers xserver-xorg-video-all, you could try

apt list firmware-amd-graphics libgl1-mesa-dri libglx-mesa0 mesa-vulkan-drivers xserver-xorg-video-all

they are likely all installed, but it couldn't hurt to check. output from my lmde5 virtual machine:
Code:
apt list firmware-amd-graphics libgl1-mesa-dri libglx-mesa0 mesa-vulkan-drivers xserver-xorg-video-all
Listing... Done
firmware-amd-graphics/oldstable,oldstable,now 20210315-3 all [installed]
libgl1-mesa-dri/oldstable,now 20.3.5-1 amd64 [installed]
libgl1-mesa-dri/oldstable 20.3.5-1 i386
libglx-mesa0/oldstable,now 20.3.5-1 amd64 [installed]
libglx-mesa0/oldstable 20.3.5-1 i386
mesa-vulkan-drivers/oldstable,now 20.3.5-1 amd64 [installed]
mesa-vulkan-drivers/oldstable 20.3.5-1 i386
xserver-xorg-video-all/oldstable,now 1:7.7+22 amd64 [installed]
xserver-xorg-video-all/oldstable 1:7.7+22 i386
 
it says they are all installed

Code:
 apt list firmware-amd-graphics libgl1-mesa-dri libglx-mesa0 mesa-vulkan-drivers xserver-xorg-video-all
Listing... Done
firmware-amd-graphics/oldstable,oldstable,now 20210315-3 all [installed]
libgl1-mesa-dri/oldstable,now 20.3.5-1 amd64 [installed]
libgl1-mesa-dri/oldstable,now 20.3.5-1 i386 [installed]
libglx-mesa0/oldstable,now 20.3.5-1 amd64 [installed]
libglx-mesa0/oldstable,now 20.3.5-1 i386 [installed]
mesa-vulkan-drivers/oldstable,now 20.3.5-1 amd64 [installed]
mesa-vulkan-drivers/oldstable,now 20.3.5-1 i386 [installed]
xserver-xorg-video-all/oldstable,now 1:7.7+22 amd64 [installed]
xserver-xorg-video-all/oldstable 1:7.7+22 i386
 
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 24 [Radeon RX 6400/6500 XT/6500M] [1002:743f] (rev c7)
Subsystem: Sapphire Technology Limited Device [1da2:e458]
Kernel modules: amdgpu
the next thing i would look at are system journal messages that relate to the pci bus of the gpu (03:00.0) and the driver (amdgpu) with

journalctl -b | grep -E '03:00.0|amdgpu'
 
Code:
Aug 21 09:33:55 mattslmde kernel: pci 0000:03:00.0: [1002:743f] type 00 class 0x030000
Aug 21 09:33:55 mattslmde kernel: pci 0000:03:00.0: reg 0x10: [mem 0xd0000000-0xdfffffff 64bit pref]
Aug 21 09:33:55 mattslmde kernel: pci 0000:03:00.0: reg 0x18: [mem 0xe0000000-0xe01fffff 64bit pref]
Aug 21 09:33:55 mattslmde kernel: pci 0000:03:00.0: reg 0x20: [io  0x4000-0x40ff]
Aug 21 09:33:55 mattslmde kernel: pci 0000:03:00.0: reg 0x24: [mem 0xe2100000-0xe21fffff]
Aug 21 09:33:55 mattslmde kernel: pci 0000:03:00.0: reg 0x30: [mem 0xe2200000-0xe221ffff pref]
Aug 21 09:33:55 mattslmde kernel: pci 0000:03:00.0: PME# supported from D1 D2 D3hot D3cold
Aug 21 09:33:55 mattslmde kernel: pci 0000:03:00.0: 31.504 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x4 link at 0000:00:01.0 (capable of 252.048 Gb/s with 16.0 GT/s PCIe x16 link)
Aug 21 09:33:55 mattslmde kernel: pci 0000:03:00.0: vgaarb: bridge control possible
Aug 21 09:33:55 mattslmde kernel: pci 0000:03:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none
Aug 21 09:33:55 mattslmde kernel: pci 0000:03:00.1: D0 power state depends on 0000:03:00.0
Aug 21 09:33:55 mattslmde kernel: pci 0000:03:00.0: Adding to iommu group 2
Aug 21 09:33:55 mattslmde kernel: [drm] amdgpu kernel modesetting enabled.
Aug 21 09:33:55 mattslmde kernel: amdgpu: CRAT table not found
Aug 21 09:33:55 mattslmde kernel: amdgpu: Virtual CRAT table created for CPU
Aug 21 09:33:55 mattslmde kernel: amdgpu: Topology: Add CPU node
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: enabling device (0106 -> 0107)
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: amdgpu: Fetched VBIOS from VFCT
Aug 21 09:33:55 mattslmde kernel: amdgpu: ATOM BIOS: 113-D63401-US3
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: amdgpu: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: amdgpu: VRAM: 4080M 0x0000008000000000 - 0x00000080FEFFFFFF (4080M used)
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: amdgpu: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: amdgpu: AGP: 267894784M 0x0000008400000000 - 0x0000FFFFFFFFFFFF
Aug 21 09:33:55 mattslmde kernel: [drm] amdgpu: 4080M of VRAM memory ready
Aug 21 09:33:55 mattslmde kernel: [drm] amdgpu: 7908M of GTT memory ready.
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: firmware: failed to load amdgpu/beige_goby_sos.bin (-2)
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: firmware: failed to load amdgpu/beige_goby_sos.bin (-2)
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: Direct firmware load for amdgpu/beige_goby_sos.bin failed with error -2
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: amdgpu: failed to init sos firmware
Aug 21 09:33:55 mattslmde kernel: [drm:psp_sw_init [amdgpu]] [I]ERROR[/I] Failed to load psp firmware!
Aug 21 09:33:55 mattslmde kernel: [drm:amdgpu_device_init.cold [amdgpu]] [I]ERROR[/I] sw_init of IP block <psp> failed -2
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: amdgpu: amdgpu_device_ip_init failed
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: amdgpu: Fatal error during GPU init
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: amdgpu: amdgpu: finishing device.
Aug 21 09:33:55 mattslmde kernel: amdgpu: probe of 0000:03:00.0 failed with error -2
Aug 21 09:33:55 mattslmde kernel: [drm] amdgpu: ttm finalized
 
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: firmware: failed to load amdgpu/beige_goby_sos.bin (-2)
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: Direct firmware load for amdgpu/beige_goby_sos.bin failed with error -2
Aug 21 09:33:55 mattslmde kernel: amdgpu 0000:03:00.0: amdgpu: failed to init sos firmware
Aug 21 09:33:55 mattslmde kernel: [drm:psp_sw_init [amdgpu]] ERROR Failed to load psp firmware!
Aug 21 09:33:55 mattslmde kernel: [drm:amdgpu_device_init.cold [amdgpu]] ERROR sw_init of IP block <psp> failed -2
looks like your firmware isn't loading for some reason. taking a look in my vm...
 

Members online


Top