You are not logged in.

#1 2024-03-16 03:54:13

ReilyS
Member
Registered: 2024-03-16
Posts: 12

[SOLVED] Dedicated AMD GPU is not recognized

This week I bought a new system and so decided to finally ditch windows and to install linux. Following the guide to install Arch went smoothly and I was already downloading games to play but I noticed my AMD 7900 GRE is not detected When I connect my monitor to the GPU with HDMI it also does not give a signal. When I run the lspci -k command I get the following result: https://pastebin.com/xs1sLzjv The system info only shows: "GPU: AMD ATI 0b:00.0 Raphael" for my graphics card.

Before installing I read that drivers with AMD cards shouldn't be a hassle and I've seen multiple videos of people simply installing linux with the graphics card being immediately detected as one would expect. Downloading additional drivers however didn't help. I already tried reinstalling Arch, using my other PCI slot yet those didn't solve the problem. I don't expect there to be a hardware problem as these are new products and I can see the lights turn on for my GPU. I've tried searching the forums on similar topics but only couldn't narrow down my search sufficiently. I've already tried fixing the problem myself for around 5 hours so I'm hoping any of you might know what could be the cause of my problem.

Last edited by ReilyS (2024-03-20 18:28:00)

Offline

#2 2024-03-16 10:52:51

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,956

Re: [SOLVED] Dedicated AMD GPU is not recognized

Which brand & model is this system ?

What motherboard and processor (probably a ryzen 7000 ?) does it use ?

Does the arch install iso detect the discrete card ?

Last edited by Lone_Wolf (2024-03-16 10:53:37)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#3 2024-03-16 11:25:08

ReilyS
Member
Registered: 2024-03-16
Posts: 12

Re: [SOLVED] Dedicated AMD GPU is not recognized

My system is using an ASUS TUF  gaming B650-PLUS wifi motherboard, an AMD Ryzen 7 7800X3D CPU, a Hellhound RX 7900 GRE GPU, and an 850 Watt PSU. I mostly followed a Best Buy Guide so compatibility isn't an issue.

As far as my install, it doesn't detect the card entirely. This is my neofetch output:

 .o+`                   ---------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Kernel: 6.7.9-arch1-1 
               `+oooooo:                 Uptime: 2 hours, 22 mins 
               -+oooooo+:                Packages: 857 (pacman), 8 (flatpak) 
             `/:-:++oooo+:               Shell: bash 5.2.26 
            `/++++/+++++++:              Resolution: 1920x1080 
           `/++++++++++++++:             DE: Plasma 6.0.2 
          `/+++ooooooooooooo/`           WM: KWin 
         ./ooosssso++osssssso+`          Theme: Breeze-Dark [GTK2], Breeze [GTK3] 
        .oossssso-````/ossssss+`         Icons: breeze-dark [GTK2/3] 
       -osssssso.      :ssssssso.        Terminal: konsole 
      :osssssss/        osssso+++.       CPU: AMD Ryzen 7 7800X3D (16) @ 5.050GHz 
     /ossssssss/        +ssssooo/-       GPU: AMD ATI 0b:00.0 Raphael 
   `/ossssso+/:-        -:/+osssso+-     Memory: 11538MiB / 31302MiB 
  `+sso+:-`                 `.-/+oso:
 `++:.                           `-/+/                           
 .`                                 `/                           

I might try installing a different linux distro or windows and seeing if that somehow can resolve the problem. Or might it be a hardware issue after all?

Offline

#4 2024-03-17 13:24:58

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,956

Re: [SOLVED] Dedicated AMD GPU is not recognized

You probably won't need to install other OSes, just use live versions. Knoppix, puppy linux , linux mint come to mind .

If they don't show the presence of your card, verify all connectors on the card/system are seated correctly . A mis-aligned power connector could be causing this.

Also make sure you are using the slot marked PCIEX16_1 (closest to the processor) for the 7900 card.
The one marked PCIEX16_2 shares pci lanes with the M2_3 slot and is disabled completely when that M2 slot is in use.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#5 2024-03-17 15:13:06

ReilyS
Member
Registered: 2024-03-16
Posts: 12

Re: [SOLVED] Dedicated AMD GPU is not recognized

In the meantime I had tried using a different cable and different entry to the PSU which did make a difference but this only partially solved the problem unfortunately. Using lspci -k  i can now find the dedicated card:

 3:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] (rev ce)
        Subsystem: Tul Corporation / PowerColor Navi 31 [Radeon RX 7900 XT/7900 XTX]
        Kernel modules: amdgpu

This is good but it's saying it's for a 7900 XT/ 7900 XTX. I'm not sure if this is an issue since my card is the 7900 GRE. Also I notice it only says the kerel module is amdgpu but not the kernel driver, even though I did install the drivers myself as well.

During booting I see my card appear exactly once:

 Mar 17 15:35:58 archlinux kernel: amdgpu 0000:03:00.0: amdgpu: Fetched VBIOS from VFCT
Mar 17 15:35:58 archlinux kernel: amdgpu: ATOM BIOS: 113-EXT91423-001
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:03:00.0: amdgpu: CP RS64 enable
Mar 17 15:35:59 archlinux kernel: [drm] VCN(0) encode/decode are enabled in VM mode
Mar 17 15:35:59 archlinux kernel: [drm] VCN(1) encode/decode are enabled in VM mode
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:03:00.0: [drm:jpeg_v4_0_early_init [amdgpu]] JPEG decode is enabled in VM mode
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:03:00.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:03:00.0: amdgpu: MEM ECC is not presented.
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:03:00.0: amdgpu: SRAM ECC is not presented.
Mar 17 15:35:59 archlinux kernel: [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:03:00.0: amdgpu: VRAM: 16368M 0x0000008000000000 - 0x00000083FEFFFFFF (16368M used)
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:03:00.0: amdgpu: GART: 512M 0x00007FFF00000000 - 0x00007FFF1FFFFFFF
Mar 17 15:35:59 archlinux kernel: resource: resource sanity check: requesting [mem 0x000000000
0000000-0xffffffffffffffff], which spans more than PCI Bus 0000:00 [mem 0x000a0000-0x000dffff window]
Mar 17 15:35:59 archlinux kernel: ------------[ cut here ]------------

My dedicated card has 16GB of VRAM the integrated one only 512MB. The only difference between the two I can find is that is says the 16GB are used. After this there's some error message. I've posted the rest of the output here: https://pastebin.com/qg7vsAjy. In any case the next times I see my graphics appearing is here:

 Mar 17 15:35:59 archlinux systemd[1]: Starting Permit User Sessions...
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: vgaarb: deactivate vga console
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: Trusted Memory Zone (TMZ) feature disabled as experimental (default
)
Mar 17 15:35:59 archlinux kernel: [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: VRAM: 512M 0x000000F400000000 - 0x000000F41FFFFFFF (512M used)
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
Mar 17 15:35:59 archlinux kernel: [drm] Detected VRAM RAM=512M, BAR=512M
Mar 17 15:35:59 archlinux kernel: [drm] RAM width 128bits DDR5
Mar 17 15:35:59 archlinux kernel: [drm] amdgpu: 512M of VRAM memory ready
Mar 17 15:35:59 archlinux kernel: [drm] amdgpu: 15650M of GTT memory ready.
Mar 17 15:35:59 archlinux kernel: [drm] GART: num cpu pages 262144, num gpu pages 262144
Mar 17 15:35:59 archlinux kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000F41FC00000).
Mar 17 15:35:59 archlinux kernel: [drm] Loading DMUB firmware via PSP: version=0x05000F00
Mar 17 15:35:59 archlinux kernel: [drm] use_doorbell being set to: [true]
Mar 17 15:35:59 archlinux kernel: [drm] Found VCN firmware Version ENC: 1.30 DEC: 3 VEP: 0 Revision: 4
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: Will use PSP to load VCN firmware
Mar 17 15:35:59 archlinux systemd[1]: Finished Permit User Sessions.

And a little later on:

 ar 17 15:35:59 archlinux kernel: amdgpu: HMM registered 512MB device memory
Mar 17 15:35:59 archlinux kernel: kfd kfd: amdgpu: Allocated 3969056 bytes on gart
Mar 17 15:35:59 archlinux kernel: kfd kfd: amdgpu: Total number of KFD nodes to be created: 1
Mar 17 15:35:59 archlinux kernel: amdgpu: Virtual CRAT table created for GPU
Mar 17 15:35:59 archlinux kernel: amdgpu: Topology: Add dGPU node [0x164e:0x1002]
Mar 17 15:35:59 archlinux kernel: kfd kfd: amdgpu: added device 1002:164e
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: SE 1, SH per SE 1, CU per SH 2, active_cu_number 2
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 11 on hub 0
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 8
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 8
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 8
Mar 17 15:35:59 archlinux kernel: amdgpu 0000:0e:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 8
Mar 17 15:35:59 archlinux kernel: [drm] Initialized amdgpu 3.57.0 20150101 for 0000:0e:00.0 on minor 1
Mar 17 15:35:59 archlinux kernel: fbcon: amdgpudrmfb (fb0) is primary device

It's clearly for some reason only detecting and registering the integrated graphics. Is this because the drivers for my card are missing? Or is there something I'm not seeing.

Offline

#6 2024-03-18 11:02:23

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,956

Re: [SOLVED] Dedicated AMD GPU is not recognized

This is good but it's saying it's for a 7900 XT/ 7900 XTX. I'm not sure if this is an issue since my card is the 7900 GRE

That is normal as the name there is based on the chipset used .
In case you want to be certain , use lspci -knn so you see the pci id of your card and can look it up at https://pci-ids.ucw.cz/ .

Just below the ----cut here--- line the kernel reports a call trace which only happens if something goes really wrong.


Mar 17 15:35:59 archlinux kernel: Hardware name: ASUS System Product Name/TUF GAMING B650-PLUS
 WIFI, BIOS 1811 10/07/2023

Asus released 3 firmware updates after that one, 2 of which included AGESA updates (which very often include low level bugfixes/ improvements ) .

I suggest you update the firmware to the latest version available , 2413 .

After doing that run (as root)

# journalctl -b | curl -F 'file=@-' 0x0.st

it will output a link when finished, post that link .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#7 2024-03-18 13:00:41

ReilyS
Member
Registered: 2024-03-16
Posts: 12

Re: [SOLVED] Dedicated AMD GPU is not recognized

Just below the ----cut here--- line the kernel reports a call trace which only happens if something goes really wrong.

I had posted the additional output of the error in my pastebin link, did you see that?

In the meantime i tried installing Ubuntu with the proprietary drivers of AMD and got the same result. So at least Arch is defintely not the issue. I also tried connecting my ancient 7950 GT in my new system. And to my surpise it did give a display for both PCI slots. I even got it to boot with Ubuntu. So my preliminary conclusion was that my GPU was defective. But now that I read your comment I'm getting more hope. Maybe the outdated firmware can recognize the old GPU but not the new one. So I'm going to reinstall and try this.

Thanks for your replies so far. I'll get back on if this worked or not.

Offline

#8 2024-03-19 02:01:36

ReilyS
Member
Registered: 2024-03-16
Posts: 12

Re: [SOLVED] Dedicated AMD GPU is not recognized

Lone_Wolf wrote:

it will output a link when finished, post that link .

Here's the link: http://0x0.st/Xrav.txt

It took a while before I figured out how to update the firmware but I succeeded. What I notice is that the cut here part is gone and now it registers both devices. Consequently, I now get a display from my GPU directly instead of my motherboard. Unfortunately, the card does not work for gaming as it still defaults to my internal graphics. The fans of my GPU spin briefly during booting but then stop and remain unmoved even during gameplay. Do you have any suggestions to resolve this?

Offline

#9 2024-03-19 08:34:56

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,145

Re: [SOLVED] Dedicated AMD GPU is not recognized

Offline

#10 2024-03-19 09:15:41

Nikolai5
Member
From: North West, England, UK
Registered: 2024-01-27
Posts: 271

Re: [SOLVED] Dedicated AMD GPU is not recognized

If you don't want to mess with PRIME and don't care about an increased battery usage (if it even is a laptop) then you could try disabling the integrated graphics altogether in the BIOS.
Otherwise as the article suggests, you'll need to use that flag to get whatever application you want to run to use your dedicated GPU.

For Steam games specifically you add this to the launch options within the properties window of a game:

DRI_PRIME=1 %command%

Exactly as written there.


Ryzen 7 9850X3D | AMD 7800XT | KDE Plasma

Offline

#11 2024-03-20 18:26:42

ReilyS
Member
Registered: 2024-03-16
Posts: 12

Re: [SOLVED] Dedicated AMD GPU is not recognized

Thanks gents! I was indeed able to get the GPU working by disabling the integrated graphics. I then could play at hundreds of frames per second, so it's finally working. Learned quite a lot in the meantime about arch.

In summary, what I had to do was install the firmware, it seems the version it was using out of the box was too old to recognize my new GPU. Updating the firmware with fwupd did not work. I had to follow the instruction from ASUS. I downloaded their file and then unzipped it. Then formatted the USB I installed linux with through the terminal and then installed the file. Then flashed bios manually as is described on their site. Afterwards, I disabled the integrated graphics and now my GPU is using fine. Also no problems with fans, they work as required.

Yesterday I was already testing it in Helldivers but there I encountered more troubleshooting, fortunately none having to do with the GPU. I'll edit this post as solved now.

Offline

Board footer

Powered by FluxBB