Amdgpu kernel module loading/using instructions

At the moment I’m booting fedora sway edition with nomodeset.
Looks like I have amdgpu kernel module (a lot of stuff at /lib/firmware/amdgpu), but it is not-loaded (“lsmod | grep amd”).
According to some existing posts here, this is expected (for nomodeset-case)

I’ve also tried to add amdgpu into dracut conf, but without success:

$ cat /etc/dracut.conf.d/amdgpu.conf
  add_drivers+=" amdgpu "
  fw_dir+=" /lib/firmware/amdgpu "
  install_items+=" /lib/firmware/amdgpu/* "

Are there any wiki/instruction regarding right installation of amdgpu stuff for fedora?

P.S. tried using GRUB_CMDLINE_LINUX=“rhgb quiet amd_iommu=on iommu=pt psi=1 amdgpu.ppfeaturemask=0xffffffff”, but ended up in a black-screen during boot

Why do you need the nomodeset and all the other kernel options?
I have a ampgpu, RX 7800 XT, and do not need to do anything special for it to just-work™.

What hardware do you have?
Please post the output of inxi -FGxx.

1 Like

Without nomodeset I’m just getting blank screen on boot every time.
I suspect, that I need to set some non-default amd-specific kernell parameters at grub, but don’t know, which ones exactly…

System:
  Host: fedora Kernel: 6.7.11-200.fc39.x86_64 arch: x86_64 bits: 64
    compiler: gcc v: 2.40-14.fc39
  Desktop: Sway v: 1.8.1 dm: SDDM Distro: Fedora Linux 39 (Sway)
Machine:
  Type: Desktop Mobo: ASRock model: B550M Pro4 serial: <superuser required>
    UEFI: American Megatrends LLC. v: P2.60 date: 02/07/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M510
    serial: 86-a7-26-91 charge: 55% (should be ignored) status: discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 5700G with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 562 high: 2994 min/max: 400/4673 cores: 1: 2994 2: 400
    3: 400 4: 400 5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400
    13: 400 14: 400 15: 400 16: 400 bogomips: 121369
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    driver: N/A arch: GCN-5 pcie: speed: 8 GT/s lanes: 16 bus-ID: 06:00.0
    chip-ID: 1002:1638
  Device-2: Logitech Webcam C270 driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-2.1:3 chip-ID: 046d:0825
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 23.2.4
    compositor: Sway v: 1.8.1 driver: N/A display-ID: 1
  Monitor-1: Unknown-1 res: 1024x768 size: N/A
  API: OpenGL v: 4.5 vendor: mesa v: 23.3.6 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: llvmpipe (LLVM 17.0.6 256 bits)
    device-ID: ffffffff:ffffffff
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 06:00.1 chip-ID: 1002:1637
  Device-2: AMD Family 17h/19h HD Audio vendor: ASRock driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 06:00.6 chip-ID: 1022:15e3
  Device-3: Logitech Webcam C270 driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-2.1:3 chip-ID: 046d:0825
  API: ALSA v: k6.7.11-200.fc39.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.4 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASRock driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: f000 bus-ID: 04:00.0 chip-ID: 10ec:8168
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: 9c:6b:00:19:b7:f6
Drives:
  Local Storage: total: 2.27 TiB used: 4.69 GiB (0.2%)
  ID-1: /dev/nvme0n1 vendor: Seagate model: BarraCuda Q5 ZP500CV30001
    size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 serial: 7YA01HZL temp: 34.9 C
  ID-2: /dev/nvme1n1 vendor: Kingston model: SFYRD2000G size: 1.82 TiB
    speed: 63.2 Gb/s lanes: 4 serial: 50026B76866DC275 temp: 37.9 C
Partition:
  ID-1: / size: 464.17 GiB used: 4.4 GiB (0.9%) fs: btrfs dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 277.3 MiB (28.5%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 464.17 GiB used: 4.4 GiB (0.9%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 48.9 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 64 GiB note: est. available: 62.17 GiB used: 2.1 GiB (3.4%)
  Processes: 329 Power: uptime: 9m wakeups: 0 Init: systemd v: 254
    target: graphical (5) default: graphical
  Packages: Compilers: gcc: 13.2.1 Shell: Zsh v: 5.9 running-in: foot
    inxi: 3.3.33

I’m not sure what you should set. Maybe someone else can help?

1 Like

I need to set some other kernel parameters in order to avoid “blank screen” during boot.
At the moment I know only one such parameter - “nomodeset”, but it prevents amdgpu module loading.

Apart from the black screen are there errors in the kernel dmesg output?

This time I tried a few other amdgpu options, got a blank screen issue again (on all my vt-s), then restarted with “nomodeset” and grabbed previous journal. Here it is:

That links does not work I get a 404 error.

Hello @iigon ,
The Linux Kernel command line arguments can be found at The kernel’s command-line parameters — The Linux Kernel documentation. I don’t know if that is where you can find the info you’re looking for but it is a start.

2 Likes

Which parameters did you try?
https://www.kernel.org/doc/html/v4.20/gpu/amdgpu.html

1 Like

From some URL I found and tried the following:

  • amdgpu.dc=0 amdgpu.cik_support=1

But, I’d like to know are there any guide/manual/instruction for how to determine, which options do I really need (for my Ryzen 7 5700G with Cezanne arch: GCN-5 pcie: speed: 8 GT/s lanes: 16 bus-ID: 06:00.0 chip-ID: 1002:1638)

Note: my journal is attached above

Hello @iigon ,
I use a 5600G and haven’t found the need to do anything, it is working fine for me.

1 Like

I have this issue with 5700G at all the wayland-distros (garudasway, garudahyprland, fedorasway) without nomodeset. It’s really annoying …

Link does not work.

1 Like

I’ve been using wayland over xserver for awhile (years). No problems with the 5600G since I built this systm, it has the same Cezanne architecture, so I wonder what’s different for you.

You may want to file an upstream bug if it’s impacting several different distros/configurations.

Thanks

1 Like

Pretty strange… I’ve just added the same stuff as a gist. Could you access it now?

Do you mean - file a bug for linux kernel amdgpu drm driver?

First of all, I’m going to check if there are some BIOS updates available for my MB, then - google for problems with my specific 5700G case, then (as Joe Suggested) - file a bug to linux kernel amdgpu drm driver tracker.
Then (if needed) - try to find low-profile external gpu for my slim case (and even change a case, power supply and buy a regular graphichs card if all the mentioned above does not help).
Of cause, it would be really good if I could find any specific amdgpu parameters for my HW. I strongly feel that the problem is actually not in HW itself, since I’m working fine on x-server with some default drivers (mesa or whatever is there) and can see good 2d screen with 4K (instead of FHD) resolution

yes

You may want to remove these amdgpu.dc=0 amdgpu.ci_support=1 amdgpu.cik_support=1 and check with the 6.8.4 kernel, I think it just went to stable.

You may also want to check the cables as well.

Thanks

1 Like