Vulkan+AMD+llama

After a series of updates, Vulcan stopped working on AMD

Kernel 7.2.8-200.fc44.x86_64 and 7.3.0-0.rc5.343.vanilla.fc44.x86_64

mesa-va-drivers-freeworld.x86_64 26.2.3-1.fc44 rpmfusion-free-updates
mesa-vulkan-drivers-freeworld.x86_64 26.2.3-1.fc44 rpmfusion-free-updates

Vulkan Instance Version: 1.4.341

Layers: count = 2

VK_LAYER_MESA_anti_lag (Open-source implementation of the VK_AMD_anti_lag extension.) Vulkan version 1.4.303, layer version 1:
Layer Extensions: count = 0
Devices: count = 2
GPU id = 0 (AMD Radeon 660M (RADV REMBRANDT))
Layer-Device Extensions: count = 1
VK_AMD_anti_lag : extension revision 1

            GPU id = 1 (llvmpipe (LLVM 22.1.8, 256 bits))
            Layer-Device Extensions: count = 1

but

llama-cli --list-devices
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.
Available devices:
ROCm0: AMD Radeon 660M (15404 MiB, 15400 MiB free)
Vulkan0: llvmpipe (LLVM 22.1.8, 256 bits) (30808 MiB, 26370 MiB free)

I haven’t used this bundle for about 3 months, so I can’t say exactly after what update it stopped working.
Is the problem with the amdgpu driver, mesadriver or something else?

You didn’t give all the details about your setup, so difficult to say. I compile and run llama.cpp in a fedora toolbox, and it is working fine.

$ toolbox run -c build-rocm llama-cli --list-devices 
Available devices:
  ROCm0: AMD Radeon 8060S Graphics (126976 MiB, 25067 MiB free)
  Vulkan0: AMD Radeon 8060S Graphics (RADV STRIX_HALO) (127488 MiB, 33323 MiB free)
$ toolbox run -c build-rocm rpm -qa mesa-v\*
mesa-vulkan-drivers-26.2.3-1.fc44.x86_64
$ uname -r 
7.2.8-200.fc44.x86_64
$ toolbox run -c build-rocm llama-cli --version
version: 0.5.0-dev (build 11401, commit a7fb71fab)
built with GNU 16.2.1 for Linux x86_64

What information do you need to provide?
2 different computers with fedora44 with the latest updates and a fresh llama stopped seeing the Vulcan hardware driver and switched to a stub.
Both computers had the same error -
amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.

because of this I have Vulkan0: llvmpipe (LLVM 22.1.8, 256 bits) and not Vulkan0: AMD Radeon 890/680
Same problem but it didn’t help me

Is your llama.cpp from the release tarball? Or did you compile yourself? You hadn’t mentioned the version in the OP. I see that you have tried the latest now.

Do you have other amdgpu stuff working? Does amdgpu_top work? You could try looking at ldd output to rule out a build issue. This is how it looks for me:

$ toolbox run -c build-rocm ldd libggml-vulkan.so 
	linux-vdso.so.1 (0x00007f7ffbcc0000)
	libggml-base.so.0 => /home/user/build/llama.cpp/build/bin/libggml-base.so.0 (0x00007f7ff9128000)
	libvulkan.so.1 => /lib64/libvulkan.so.1 (0x00007f7ffbc21000)
	libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f7ff8e76000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f7ff8d5f000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7ff8d32000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f7ff8b39000)
	libgomp.so.1 => /lib64/libgomp.so.1 (0x00007f7ff8adb000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f7ffbcc2000)

What does vulkaninfo tell you? Maybe you’ll find a clue there.

If it’s helpful I can find some time to attempt to reproduce.

I am in agreement that there is some missing information.
I could try to reinterpret the discussion so far and take my own set of actions and we may get lucky and I’ll do something that is similar enough to be a reproducer and I’ll be able to walk you through my system with higher fidelity

At first I didn’t realise the misformatted info in the top post is from vulkaninfo. I compared with my hardware, it is pretty similar. My suspicion is that the build is borked somehow. The OP hasn’t responded if they built it themselves, or if they are using the release tarball. On my end, I downloaded the latest release tarball (b11524), and it seems to detect my hardware just fine.

$ ./llama-cli --list-devices 
Available devices:
  Vulkan0: AMD Radeon 8060S Graphics (RADV STRIX_HALO) (127488 MiB, 33321 MiB free)

So unless the OP gives more info about their build, it’s pretty difficult to reproduce.

Uh… RDNA…
My issue shouldn’t be the same at all because of this:

With that said, running inxi -Fzxx aside, sometimes Linux may bork itself for no explainable reason at all…

If no solution gets found here the “just reinstall the OS” joke may be your only option.
Just keep a backup of your stuff and a text document for the programs you have to reinstall, because this stuff can just happen.

The same I mean - MESA using LLVMPIPE instead of the Graphics Hardware.
The Vulkan driver is part of the MESA or am I mistaken?

I compile it myself from Git. I suspect the problem is in MESA driver. 2-3 months ago everything worked well. Unfortunately, I didn’t pay attention after which update it broke

Idk why you build them yourself when you are using Fedora, but regardless of that, you really should post the inxi -Fzxx for each laptop to show all its specs.


Thereafter:

It CAN be said like that.
What I learnt from my problem is that when the GPU fails to be used Fedora (KDE) ends up using the CPU to run Wayland in software mode, like DOOM and Quake did back in the day.

In my case it was a mix of “updates messed up the whitelist for the APU I was using” and “many people just not saying the important thing in a concise way immediately”.

In short:
Your Distro isn’t recognizing the GPUs, therefore it should be running in software mode (if what you described before is correct).

inxi -Fzxx
System:
Kernel:7.3.0-0.rc5.343.vanilla.fc44.x86_64arch:x86_64bits: 64
compiler:gccv: 16.2.1
Desktop:KDE Plasmav:6.7.5tk:Qtv:N/Awm:kwin_waylanddm: SDDM
Distro: Fedora Linux 44 (Workstation Edition)
Machine:
Type:Mini-pcSystem:AZWproduct:SER9v:N/Aserial: 
Chassis: type:35serial: 
Mobo:AZWmodel:SER9v:V10serial:  part-nu: 75
Firmware:UEFIvendor: American Megatrends LLC.
v:STX.3xx.SER9.V218.P8C0M0C15.74.Link.SCPCdate: 08/13/2025
Battery:
Device-1:hidpp_battery_0model: Logitech Signature M650 For Business
serial:N/Acharge:95%status: discharging
Device-2:hidpp_battery_1model:Logitech Logi K650 Bserial: N/A
charge:40%status: discharging
CPU:
Info:12-coremodel:AMD Ryzen AI 9 HX 370 w/ Radeon 890Mbits: 64
type:MT MCParch:Zen 5rev:0cache: L1:960 KiBL2:12 MiBL3: 24 MiB
Speed (MHz): avg:1902min/max:605/5158:3289boost:enabledcores:
1:19022:19023:19024:19025:19026:19027:19028:19029: 1902
10:190211:190212:190213:190214:190215:190216:190217: 1902
18:190219:190220:190221:190222:190223:190224: 1902
bogomips: 95816
Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a
ssse3 svm
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] Strix [Radeon 880M / 890M]
driver:amdgpuv:kernelarch:RDNA-3pcie: speed:16 GT/slanes:16ports:
active:DP-1,HDMI-A-1empty: DP-2, DP-3, DP-4, DP-5, DP-6, DP-7, DP-8,
Writeback-1 bus-ID:65:00.0chip-ID:1002:150etemp: 37.0 C
Device-2:Logitech Brio 100driver:snd-usb-audio,uvcvideotype: USB
rev:2.0speed:480 Mb/slanes:1bus-ID:5-1.3:7chip-ID: 046d:094c
Display:waylandserver:``X.org``v:1.21.1.24with:Xwaylandv: 24.1.14
compositor:kwin_waylanddriver: gpu:amdgpud-rect:3840x1080display-ID: 0
Monitor-1:DP-1pos:rightmodel:Philips PHL 243V7res:1920x1080hz: 60
dpi:93diag: 604mm (23.8")
Monitor-2:HDMI-A-1pos:primary,leftmodel: LG (GoldStar) FULL HD
res:1920x1080hz:75dpi:102diag: 551mm (21.7")
API:EGLv:1.5platforms: device:0drv:radeonsidevice:1drv: swrast
gbm: drv:radeonsisurfaceless: drv:radeonsiwayland: drv:radeonsix11:
drv: radeonsi
API:OpenGLv:4.6vendor:amd mesav:26.2.3glx-v: 1.4
direct-render:yesrenderer: AMD Radeon 890M Graphics (radeonsi strix1 ACO
DRM 3.64 7.3.0-0.rc5.343.vanilla.fc44.x86_64) device-ID: 1002:150e
display-ID: :0.0
API:Vulkanv:1.4.341surfaces:N/Adevice:0type: integrated-gpu
driver:mesa radvdevice-ID:1002:150edevice:1type: cpu
driver:mesa llvmpipedevice-ID: 10005:0000
Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
de:kscreen-console,kscreen-doctorgpu:amd-smiwl: wayland-info
x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
Device-1: Advanced Micro Devices [AMD/ATI] Radeon High Definition Audio
driver:snd_hda_intelv:kernelpcie: speed:16 GT/slanes: 16
bus-ID:65:00.1chip-ID: 1002:1640
Device-2: Advanced Micro Devices [AMD] Audio Coprocessor
driver:snd_acp_pciv:kernelpcie: speed:16 GT/slanes:16bus-ID: 65:00.5
chip-ID: 1022:15e2
Device-3: Advanced Micro Devices [AMD] Ryzen HD Audio
driver:snd_hda_intelv:kernelpcie: speed:16 GT/slanes: 16
bus-ID:65:00.6chip-ID: 1022:15e3
Device-4: Linux Foundation POROSVOC
driver:hid-generic,snd-usb-audio,usbhidtype:USBrev:1.1speed: 12 Mb/s
lanes:1bus-ID:1-1:2chip-ID: 1d6b:a4a7
Device-5:Logitech Brio 100driver:snd-usb-audio,uvcvideotype: USB
rev:2.0speed:480 Mb/slanes:1bus-ID:5-1.3:7chip-ID: 046d:094c
Device-6:Logitech Logi Z407driver: hid-generic,snd-usb-audio,usbhid
type:USBrev:1.1speed:12 Mb/slanes:1bus-ID: 5-1.4:8
chip-ID: 046d:0a4c
API:ALSAv:k7.3.0-0.rc5.343.vanilla.fc44.x86_64status: kernel-api
Server-1:JACKv:1.9.22status:offwith:a2jmididstatus: off
Server-2:PipeWirev:1.6.9status:activewith: 1: pipewire-pulse
status:active2:wireplumberstatus:active3:pipewire-alsatype: plugin
4:pw-jacktype: plugin
Network:
Device-1:Intel Wi-Fi 6 AX200driver:iwlwifiv:kernelpcie: speed: 5 GT/s
lanes:1bus-ID:62:00.0chip-ID: 8086:2723
IF:wlp98s0state:downmac: 
Device-2:Realtek RTL8125 2.5GbEdriver:r8169v:kernelpcie:
speed:5 GT/slanes:1port:f000bus-ID:63:00.0chip-ID: 10ec:8125
IF:eno1state:upspeed:1000 Mbpsduplex:fullmac: 
Bluetooth:
Device-1:Intel AX200 Bluetoothdriver:btusbv:0.8type:USBrev: 2.0
speed:12 Mb/slanes:1bus-ID:3-5:3chip-ID: 8087:0029
Report:hciconfigID:hci0rfk-id:0state:upaddress:  bt-v: 5.2
lmp-v:11sub-v: 21c1
Drives:
Local Storage: total:2.73 TiBused: 1.03 TiB (37.9%)
ID-1:/dev/nvme0n1vendor:Crucialmodel:CT1000P3PSSD8size: 931.51 GiB
speed:63.2 Gb/slanes:4serial:  temp: 28.9 C
ID-2:/dev/nvme1n1vendor:Samsungmodel: SSD 990 PRO with Heatsink 2TB
size:1.82 TiBspeed:63.2 Gb/slanes:4serial:  temp: 31.9 C
Partition:
ID-1:/size:1.65 TiBused:1.03 TiB (62.8%)fs:ext4dev: /dev/nvme1n1p3
ID-2:/bootsize:973.4 MiBused:542.3 MiB (55.7%)fs: ext4
dev: /dev/nvme1n1p2
ID-3:/boot/efisize:598.8 MiBused:20.1 MiB (3.4%)fs: vfat
dev: /dev/nvme1n1p1
Swap:
ID-1:swap-1type:zramsize:8 GiBused:0 KiB (0.0%)priority: 100
dev: /dev/zram0
ID-2:swap-2type:partitionsize:147.79 GiBused: 0 KiB (0.0%)
priority:-1dev: /dev/nvme1n1p4
Sensors:
System Temperatures: cpu:39.4 Cmobo:N/Agpu:amdgputemp: 37.0 C
Fan Speeds (rpm): N/A
Info:
Memory: total:32 GiBnote:est.available:30.36 GiBused: 6.9 GiB (22.7%)
Processes:552Power: uptime:24mwakeups:0Init:systemdv: 259
default: graphical
Packages: pm:rpmpkgs:N/Anote:see --rpmpm:flatpakpkgs: 11
Compilers: clang:22.1.8alt:17/18gcc:16.2.1Shell:Bashv: 5.3.9
running-in:konsoleinxi: 3.3.41

This is the result for one machine, thank you.

But please, edit the message putting this test in the </> option (from the edit menu above the message) after selecting all the text.

Just to say something:

If Elik were to run a Live USB of any Fedora using Wayland, Vulkan would and should just get Hardware Accelerated by the iGPUs, mainly because they are older versions.

It’s probable that if fresh installs were to be done the iGPUs would just work (idk why Elik builds them, but unless someone screwed something up upstream, it should just work), but I assume Elik wants to rescue the current installs.

Second machine

inxi -Fzxx 
System: 
  Kernel: 7.2.8-200.fc44.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 16.2.1 
  Console: pty pts/0 DM: SDDM Distro: Fedora Linux 44 (Workstation Edition) 
Machine: 
  Type: Mini-pc System: ASUSTeK product: MINIPC PN53 v: N/A serial: <superuser required> 
  Mobo: ASUSTeK model: PN53 v: Rev 1.xx serial: <superuser required> part-nu: SKU Firmware: UEFI 
    vendor: American Megatrends v: 21000 date: 10/11/2023 
CPU: 
  Info: 6-core model: AMD Ryzen 5 6600H with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3+ 
    rev: 1 cache: L1: 384 KiB L2: 3 MiB L3: 16 MiB 
  Speed (MHz): avg: 1100 min/max: 413/4566 boost: enabled cores: 1: 1100 2: 1100 3: 1100 4: 1100 
    5: 1100 6: 1100 7: 1100 8: 1100 9: 1100 10: 1100 11: 1100 12: 1100 bogomips: 79050 
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
Graphics: 
  Device-1: Advanced Micro Devices [AMD/ATI] Rembrandt [Radeon 680M] vendor: ASUSTeK 
    driver: amdgpu v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: HDMI-A-2 
    empty: DP-1, DP-2, DP-3, DP-4, DP-5, DP-6, DP-7, HDMI-A-1, Writeback-1 bus-ID: e7:00.0 
    chip-ID: 1002:1681 temp: 41.0 C 
  Display: unspecified server: X.org v: 1.21.1.24 with: Xwayland v: 24.1.13 
    compositor: kwin_wayland driver: gpu: amdgpu note: X driver n/a, try sudo/root tty: 194x48 
  Monitor-1: HDMI-A-2 model: Beyond TV res: 3840x2160 dpi: 81 diag: 1387mm (54.6") 
  API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast gbm: drv: radeonsi 
    surfaceless: drv: radeonsi inactive: wayland,x11 
  API: OpenGL v: 4.6 vendor: mesa v: 26.2.3 note: console (EGL sourced) renderer: AMD Radeon 
    660M (radeonsi rembrandt ACO DRM 3.64 7.2.8-200.fc44.x86_64), llvmpipe (LLVM 22.1.8 256 bits) 
  API: Vulkan v: 1.4.341 surfaces: N/A device: 0 type: integrated-gpu driver: mesa radv 
    device-ID: 1002:1681 device: 1 type: cpu driver: mesa llvmpipe device-ID: 10005:0000 
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo de: kscreen-console,kscreen-doctor 
    gpu: amd-smi wl: wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr 
Audio: 
  Device-1: Advanced Micro Devices [AMD/ATI] Radeon High Definition Audio driver: snd_hda_intel 
    v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: e7:00.1 chip-ID: 1002:1640 
  Device-2: Advanced Micro Devices [AMD] Audio Coprocessor vendor: ASUSTeK driver: snd_pci_acp6x 
    v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: e7:00.5 chip-ID: 1022:15e2 
  Device-3: Advanced Micro Devices [AMD] Ryzen HD Audio vendor: ASUSTeK driver: snd_hda_intel 
    v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: e7:00.6 chip-ID: 1022:15e3 
  API: ALSA v: k7.2.8-200.fc44.x86_64 status: kernel-api 
  Server-1: JACK v: 1.9.22 status: off with: a2jmidid status: off 
  Server-2: PipeWire v: 1.6.9 status: off with: 1: pipewire-pulse status: off 2: wireplumber 
    status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin 
Network: 
  Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel pcie: speed: 5 GT/s 
    lanes: 1 port: e000 bus-ID: 03:00.0 chip-ID: 10ec:8125 
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  Device-2: MEDIATEK MT7921 802.11ax PCIe Wireless Network Adapter [Filogic 330] 
    vendor: AzureWave driver: mt7921e v: kernel pcie: speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 
    chip-ID: 14c3:7961 
  IF: wlp4s0 state: down mac: <filter> 
Bluetooth: 
  Device-1: IMC Networks Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1 speed: 480 Mb/s 
    lanes: 1 bus-ID: 5-3:3 chip-ID: 13d3:3563 
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.3 lmp-v: 12 
    sub-v: 2602 
Drives: 
  Local Storage: total: 1.38 TiB used: 834.31 GiB (59.2%) 
  ID-1: /dev/nvme0n1 vendor: Kingston model: SNV2S1000G size: 931.51 GiB speed: 63.2 Gb/s 
    lanes: 4 serial: <filter> temp: 33.9 C 
  ID-2: /dev/nvme1n1 vendor: A-Data model: LEGEND 900 size: 476.94 GiB speed: 63.2 Gb/s lanes: 4 
    serial: <filter> temp: 45.9 C 
Partition: 
  ID-1: / size: 884.8 GiB used: 833.76 GiB (94.2%) fs: ext4 dev: /dev/nvme0n1p3 
  ID-2: /boot size: 973.4 MiB used: 543.8 MiB (55.9%) fs: ext4 dev: /dev/nvme0n1p2 
  ID-3: /boot/efi size: 598.8 MiB used: 20.1 MiB (3.4%) fs: vfat dev: /dev/nvme0n1p1 
Swap: 
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0 
  ID-2: swap-2 type: partition size: 27.94 GiB used: 0 KiB (0.0%) priority: -1 
    dev: /dev/nvme0n1p4 
Sensors: 
  System Temperatures: cpu: 42.4 C mobo: 41.5 C 
  Fan Speeds (rpm): N/A 
Info: 
  Memory: total: 32 GiB note: est. available: 30.09 GiB used: 1.52 GiB (5.1%) 
  Processes: 342 Power: uptime: 0m wakeups: 0 Init: systemd v: 259 default: graphical 
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 11 Compilers: clang: 22.1.8 
    alt: 17/18 gcc: 16.2.1 Shell: Bash v: 5.3.9 running-in: pty pts/0 inxi: 3.3.41
 

inxi -Fzxx
System:
Kernel: 7.3.0-0.rc5.343.vanilla.fc44.x86_64 arch: x86_64 bits: 64
compiler: gcc v: 16.2.1
Desktop: KDE Plasma v: 6.7.5 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
Distro: Fedora Linux 44 (Workstation Edition)
Machine:
Type: Mini-pc System: AZW product: SER9 v: N/A serial:
Chassis: type: 35 serial:
Mobo: AZW model: SER9 v: V10 serial: part-nu: 75
Firmware: UEFI vendor: American Megatrends LLC.
v: STX.3xx.SER9.V218.P8C0M0C15.74.Link.SCPC date: 08/13/2025
Battery:
Device-1: hidpp_battery_0 model: Logitech Signature M650 For Business
serial: N/A charge: 95% status: discharging
Device-2: hidpp_battery_1 model: Logitech Logi K650 B serial: N/A
charge: 40% status: discharging
CPU:
Info: 12-core model: AMD Ryzen AI 9 HX 370 w/ Radeon 890M bits: 64
type: MT MCP arch: Zen 5 rev: 0 cache: L1: 960 KiB L2: 12 MiB L3: 24 MiB
Speed (MHz): avg: 1902 min/max: 605/5158:3289 boost: enabled cores:
1: 1902 2: 1902 3: 1902 4: 1902 5: 1902 6: 1902 7: 1902 8: 1902 9: 1902
10: 1902 11: 1902 12: 1902 13: 1902 14: 1902 15: 1902 16: 1902 17: 1902
18: 1902 19: 1902 20: 1902 21: 1902 22: 1902 23: 1902 24: 1902
bogomips: 95816
Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a
ssse3 svm
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] Strix [Radeon 880M / 890M]
driver: amdgpu v: kernel arch: RDNA-3 pcie: speed: 16 GT/s lanes: 16 ports:
active: DP-1,HDMI-A-1 empty: DP-2, DP-3, DP-4, DP-5, DP-6, DP-7, DP-8,
Writeback-1 bus-ID: 65:00.0 chip-ID: 1002:150e temp: 37.0 C
Device-2: Logitech Brio 100 driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 5-1.3:7 chip-ID: 046d:094c
Display: wayland server: X.org v: 1.21.1.24 with: Xwayland v: 24.1.14
compositor: kwin_wayland driver: gpu: amdgpu d-rect: 3840x1080 display-ID: 0
Monitor-1: DP-1 pos: right model: Philips PHL 243V7 res: 1920x1080 hz: 60
dpi: 93 diag: 604mm (23.8")
Monitor-2: HDMI-A-1 pos: primary,left model: LG (GoldStar) FULL HD
res: 1920x1080 hz: 75 dpi: 102 diag: 551mm (21.7")
API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast
gbm: drv: radeonsi surfaceless: drv: radeonsi wayland: drv: radeonsi x11:
drv: radeonsi
API: OpenGL v: 4.6 vendor: amd mesa v: 26.2.3 glx-v: 1.4
direct-render: yes renderer: AMD Radeon 890M Graphics (radeonsi strix1 ACO
DRM 3.64 7.3.0-0.rc5.343.vanilla.fc44.x86_64) device-ID: 1002:150e
display-ID: :0.0
API: Vulkan v: 1.4.341 surfaces: N/A device: 0 type: integrated-gpu
driver: mesa radv device-ID: 1002:150e device: 1 type: cpu
driver: mesa llvmpipe device-ID: 10005:0000
Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
de: kscreen-console,kscreen-doctor gpu: amd-smi wl: wayland-info
x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
Device-1: Advanced Micro Devices [AMD/ATI] Radeon High Definition Audio
driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
bus-ID: 65:00.1 chip-ID: 1002:1640
Device-2: Advanced Micro Devices [AMD] Audio Coprocessor
driver: snd_acp_pci v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 65:00.5
chip-ID: 1022:15e2
Device-3: Advanced Micro Devices [AMD] Ryzen HD Audio
driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
bus-ID: 65:00.6 chip-ID: 1022:15e3
Device-4: Linux Foundation POROSVOC
driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
lanes: 1 bus-ID: 1-1:2 chip-ID: 1d6b:a4a7
Device-5: Logitech Brio 100 driver: snd-usb-audio,uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 5-1.3:7 chip-ID: 046d:094c
Device-6: Logitech Logi Z407 driver: hid-generic,snd-usb-audio,usbhid
type: USB rev: 1.1 speed: 12 Mb/s lanes: 1 bus-ID: 5-1.4:8
chip-ID: 046d:0a4c
API: ALSA v: k7.3.0-0.rc5.343.vanilla.fc44.x86_64 status: kernel-api
Server-1: JACK v: 1.9.22 status: off with: a2jmidid status: off
Server-2: PipeWire v: 1.6.9 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin
Network:
Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s
lanes: 1 bus-ID: 62:00.0 chip-ID: 8086:2723
IF: wlp98s0 state: down mac:
Device-2: Realtek RTL8125 2.5GbE driver: r8169 v: kernel pcie:
speed: 5 GT/s lanes: 1 port: f000 bus-ID: 63:00.0 chip-ID: 10ec:8125
IF: eno1 state: up speed: 1000 Mbps duplex: full mac:
Bluetooth:
Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
speed: 12 Mb/s lanes: 1 bus-ID: 3-5:3 chip-ID: 8087:0029
Report: hciconfig ID: hci0 rfk-id: 0 state: up address: bt-v: 5.2
lmp-v: 11 sub-v: 21c1
Drives:
Local Storage: total: 2.73 TiB used: 1.03 TiB (37.9%)
ID-1: /dev/nvme0n1 vendor: Crucial model: CT1000P3PSSD8 size: 931.51 GiB
speed: 63.2 Gb/s lanes: 4 serial: temp: 28.9 C
ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 990 PRO with Heatsink 2TB
size: 1.82 TiB speed: 63.2 Gb/s lanes: 4 serial: temp: 31.9 C
Partition:
ID-1: / size: 1.65 TiB used: 1.03 TiB (62.8%) fs: ext4 dev: /dev/nvme1n1p3
ID-2: /boot size: 973.4 MiB used: 542.3 MiB (55.7%) fs: ext4
dev: /dev/nvme1n1p2
ID-3: /boot/efi size: 598.8 MiB used: 20.1 MiB (3.4%) fs: vfat
dev: /dev/nvme1n1p1
Swap:
ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
ID-2: swap-2 type: partition size: 147.79 GiB used: 0 KiB (0.0%)
priority: -1 dev: /dev/nvme1n1p4
Sensors:
System Temperatures: cpu: 39.4 C mobo: N/A gpu: amdgpu temp: 37.0 C
Fan Speeds (rpm): N/A
Info:
Memory: total: 32 GiB note: est. available: 30.36 GiB used: 6.9 GiB (22.7%)
Processes: 552 Power: uptime: 24m wakeups: 0 Init: systemd v: 259
default: graphical
Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 11
Compilers: clang: 22.1.8 alt: 17/18 gcc: 16.2.1 Shell: Bash v: 5.3.9
running-in: konsole inxi: 3.3.41

Anyways I’m gonna untag myself from this conversation because I’ve helped as much as I could.
I don’t have the expertise needed to solve this problem.

Good luck Elik.

Compiling the Vulkan driver from Git Mesa (26.3.0-devel) did not solve the problem.
It works using amdvlk, but using mesa-vulkan-drivers-freeworld and mesa-vulkan-drivers does not work.

RADV/radeonsi: GPU init fails (VK_ERROR_INITIALIZATION_FAILED / AC_QUERY_GPU_INFO_FAIL)
when an amdgpu_query_sw_info() implementation older than libdrm 2.4.132 is used, e.g.
an older libdrm_amdgpu bundled by another vendor (here: the “sysdeps” layer of a ROCm
TheRock build; in general any ROCm/PyTorch wheel) that gets loaded into the process
before the system libdrm

Trigger conditions (all three required):
* Mesa >= 26.2 (the block below does not exist in 25.2 / 25.3 / 26.0 / 26.1;
it appears in 26.2.0)
* libdrm_amdgpu that predates 2.4.132 (amdgpu_sw_info_address_prt_wa_control_bit and
the matching case in amdgpu_query_sw_info() were added in libdrm 2.4.132; the copy
bundled here is 2.4.127)
* AMD GPU with has_smem_with_null_prt_bug
(gfx_level <= GFX12 && != GFX9 && family != CHIP_GFX1156), e.g. RDNA1-4,
Strix Point, Rembrandt - but not Vega (gfx9) and not gfx1156

Two ways to reach it:
(a) system libdrm is >= 2.4.132 and correct, but an older bundled copy is loaded
first and interposes - this report’s reproduction;
(b) the system libdrm itself is < 2.4.132 while Mesa is >= 26.2 - same message,
same failure, no vendor bundle involved.

=== Summary ===

On Strix Point (gfx1150), RADV refuses to create a physical device:

amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed. 
ERROR: setup_loader_term_phys_devs: Call to 'vkEnumeratePhysicalDevices' in ICD 
       /usr/lib64/dri-freeworld/libvulkan_radeon.so failed with error code -3 
ERROR: setup_loader_term_phys_devs: Failed to detect any valid GPUs in the current config 

RADV then exposes no device at all, so any Vulkan application started that way
(e.g. llama.cpp with the ROCm backend loaded) sees no Vulkan GPU.

The system libdrm is fine. The failure happens because Mesa’s unversioned
reference to amdgpu_query_sw_info() is interposed by a *second* libdrm_amdgpu
that another component loaded into the process first: the libdrm bundled in the
ROCm sysdeps tree (/opt/rocm/lib/rocm_sysdeps/lib/librocm_sysdeps_drm_amdgpu.so.1).
That copy predates amdgpu_sw_info_address_prt_wa_control_bit and returns -EINVAL,
and Mesa 26.2.4 turns that into a hard failure of ac_query_gpu_info().

Reproduced on two different AMD GPUs (gfx1150 Strix Point iGPU and gfx1035 Rembrandt
iGPU) and on both machines the shadowing library is the very same one
(/opt/rocm/lib/rocm_sysdeps/lib/librocm_sysdeps_drm_amdgpu.so.1), returning the same
-EINVAL for info=1. It is the libdrm 2.4.127 pinned in the ROCm sysdeps layer (see
below), and that pin is still there in TheRock 7.14.0 - so this is not something a
newer ROCm build fixes by itself. The variable is the software stack, not the hardware
generation (any GPU in the has_smem_with_null_prt_bug range is affected).

=== Environment ===

GPU : 1002:150e “AMD Radeon 890M Graphics (RADV STRIX1)” - Strix Point, gfx1150
Distro : Fedora 44
Kernel : 7.3.0-0.rc5.343.vanilla.fc44.x86_64 (no amdgpu/drm errors in the kernel log)
Mesa : 26.2.4 (radv, driverInfo “Mesa 26.2.4”)
reproduced with both Fedora’s mesa-vulkan-drivers and RPM Fusion’s
mesa-vulkan-drivers-freeworld; ICD paths below are the freeworld ones
libdrm : 2.4.134-1.fc44 (system, works correctly)
ROCm : /opt/rocm from a TheRock build (per-GPU family artifacts), version 7.12.0
(/opt/rocm/.info/version), not rpm-owned - every file checked there
belongs to no Fedora package. The sysdeps layer that comes with it
(/opt/rocm/lib/rocm_sysdeps/lib/, 71 entries, dated 2026-02-10) bundles
its own copies of libdrm, libdrm_amdgpu, libelf, libdw, libexpat, libz,
libzstd, liblzma, libbz2, libnuma, libsqlite3, libpciaccess, libva
(plus Mesa-derived libgallium_drv_video.so / radeonsi_drv_video.so).
Fedora rpm packages rocm-7.1.0-3.fc44.noarch / hipcc-20-13.rocm7.1.1.fc44
are a separate, unrelated installation.

Second machine, same failure - same cause, variant (a):
GPU : 1002:1681 Rembrandt [Radeon 680M] - RADV REMBRANDT, gfx1035
(Mesa reports “AMD Radeon 660M (RADV REMBRANDT)”)
Distro : Fedora 44
Mesa : 26.2.4 (same)
libdrm : 2.4.134-1.fc44 (system; it *does* implement the query, so variant (b)
is ruled out here as well)
ROCm : TheRock 7.14.0 - a newer build than the first machine’s 7.12.0, and yet
the sysdeps layer behaves identically (hook output below), so the bundled
libdrm there is still pre-2.4.132 as well
Evidence : 1) plain vulkaninfo (nothing loads ROCm into the process) enumerates
“AMD Radeon 660M (RADV REMBRANDT)” with no error at all, so the system
libdrm is correct on this machine too; the failure appears only in
processes where the ROCm runtime is loaded first.
2) the same hook.c shim gives an identical result here - identical
library, identical return values, on a different GPU generation:

           $ LD_PRELOAD=$PWD/hook.so llama-cli --list-devices 2>&1 | grep HOOK 
           \[HOOK\] real amdgpu_query_sw_info is in: 
                  /opt/rocm/lib/rocm_sysdeps/lib/librocm_sysdeps_drm_amdgpu.so.1 
           \[HOOK\] amdgpu_query_sw_info(dev=..., info=0) -> 0,   value=0xffff8000 
           \[HOOK\] amdgpu_query_sw_info(dev=..., info=1) -> -22, value=0x0 
           (repeated - the query is re-issued on every gpu_info/winsys attempt, 
            so no attempt can ever succeed) 

         i.e. exactly the same interposition, same interposing library path and 
         same -EINVAL on info=1 as on the first machine. 

How to tell (a) from (b) on any machine: run the attached ./drmprobe2.
A return of 0 with a plausible value (e.g. 0x2e) means the system libdrm is
correct and something else interposes; -EINVAL means the system libdrm itself
predates 2.4.132 and no vendor bundle is needed.

=== Minimal reproduction (no application code, no HIP initialisation) ===

Control - RADV alone works:

$ VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json \\ 
    vulkaninfo --summary 2>&1 | grep deviceName 
    deviceName = AMD Radeon 890M Graphics (RADV STRIX1) 

Now make the ROCm copy of libdrm_amdgpu visible in the global scope first:

$ VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json \\ 
  LD_PRELOAD=/opt/rocm/lib/rocm_sysdeps/lib/librocm_sysdeps_drm_amdgpu.so.1 \\ 
    vulkaninfo --summary 
    amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed. 
    ERROR: \[Loader Message\] Code 0 : setup_loader_term_phys_devs: Call to 
           'vkEnumeratePhysicalDevices' in ICD /usr/lib64/dri-freeworld/libvulkan_radeon.so 
           failed with error code -3 
    ERROR: \[Loader Message\] Code 0 : setup_loader_term_phys_devs: 
           Failed to detect any valid GPUs in the current config 
    (no devices listed) 

The same thing happens organically (no LD_PRELOAD) whenever the process loads the
ROCm runtime before Vulkan, e.g. llama.cpp with its HIP backend:

$ VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json llama-cli --list-devices 
    amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed. 
    Available devices: 
      ROCm0: AMD Radeon 890M Graphics (15542 MiB, 15101 MiB free) 
    (no Vulkan0) 

Proof of which libdrm implementation RADV actually binds to - an LD_PRELOAD shim
that forwards amdgpu_query_sw_info() to the real symbol and reports it with
dladdr() (source attached: hook.c):

$ VK_ICD_FILENAMES=... LD_PRELOAD=/tmp/opencode/hook.so llama-cli --list-devices 
    \[HOOK\] real amdgpu_query_sw_info is in: 
           /opt/rocm/lib/rocm_sysdeps/lib/librocm_sysdeps_drm_amdgpu.so.1 
    \[HOOK\] amdgpu_query_sw_info(dev=..., info=0) -> 0,   value=0xffff8000 
    \[HOOK\] amdgpu_query_sw_info(dev=..., info=1) -> -22, value=0x0 

i.e. info=1 (amdgpu_sw_info_address_prt_wa_control_bit) returns -EINVAL (22),
because the called function is ROCm’s copy, not the system libdrm.

=== Why Mesa fails hard ===

Mesa asks for that value only on GPUs affected by the “SMEM with NULL PRT” bug
(gfx_level <= GFX12, != GFX9, family != GFX1156 - gfx1150/Strix Point qualifies).

mesa-26.2.4, src/amd/common/ac_gpu_info.c, lines 1789-1799:

if (info->compiler_info.has_smem_with_null_prt_bug) { 
   /\* Query the PRT control bit that determines whether a VA is in the 
    \* "LOW" or "HIGH" address space. This is needed to implement the SMEM 
    \* with NULL PRT workaround. 
    \*/ 
   r = ac_drm_query_sw_info(dev, amdgpu_sw_info_address_prt_wa_control_bit, &info->address_prt_wa_control_bit); 
   if (r) { 
      fprintf(stderr, "amdgpu: amdgpu_query_sw_info(amdgpu_sw_info_address_prt_wa_control_bit) failed.\\n"); 
      return AC_QUERY_GPU_INFO_FAIL;      /\* <-- kills the winsys -> vkEnumeratePhysicalDevices = -3 \*/ 
   } 
} 

Compare libdrm’s own documentation (amdgpu.h), which explicitly treats this query
as advisory:

/\*\* Query the PRT control bit when the half VA range is reserved for 
 \* PRT when the device is initialized. This depends on the GFX version. 
 \* A return value of \~0 should be ignored. 
 \*/ 
amdgpu_sw_info_address_prt_wa_control_bit = 1, 

=== The two implementations differ ===

system libdrm (/usr/lib64/libdrm_amdgpu.so.1, libdrm-2.4.134-1.fc44) - implements
the new enum and returns success:

$ ./drmprobe2                      # attached 
amdgpu_device_initialize = 0 
query_sw_info(prt_wa_control_bit) = 0  value=0x2e      (bit 46, valid) 

amdgpu_query_sw_info: 
  test %esi,%esi ; je <case 0> 
  cmp  $0x1,%esi ; jne <return -EINVAL> 
  mov  0x4f0(%rdi),%eax ; mov %eax,(%rdx) ; xor %eax,%eax ; ret 

ROCm sysdeps copy (/opt/rocm/lib/rocm_sysdeps/lib/librocm_sysdeps_drm_amdgpu.so.1) -
knows only address32_hi, so any other enum value is -EINVAL:

amdgpu_query_sw_info: 
  test %esi,%esi ; jne <return -EINVAL> 
  ... 

The symbol in the ROCm copy is versioned amdgpu_query_sw_info@@AMDROCM_SYSDEPS_1.0
and its SONAME is librocm_sysdeps_drm_amdgpu.so.1, but that does not prevent
interposition: RADV’s reference is unversioned, so the dynamic linker resolves it
to the first definition in the global scope - ROCm’s copy, which was loaded earlier
via libggml-hip.so → libamdhip64.so → libhsa-runtime64.so.

=== Where the interposing libdrm comes from ===

The /opt/rocm tree here is a TheRock build (version 7.12.0), installed as per-GPU
artifacts and owned by no package. TheRock ships a “sysdeps” layer of private
dependencies, and that layer contains its own libdrm:

/opt/rocm/lib/rocm_sysdeps/lib/librocm_sysdeps_drm_amdgpu.so.1   (SONAME 
    librocm_sysdeps_drm_amdgpu.so.1, DT_NEEDED librocm_sysdeps_drm.so.2) 
/opt/rocm/lib/rocm_sysdeps/lib/librocm_sysdeps_drm.so.2 
... 71 entries in total, including private libelf/libdw/libexpat/libz/libzstd/ 
    liblzma/libbz2/libnuma/libsqlite3/libpciaccess/libva and Mesa-derived 
    libgallium_drv_video.so / radeonsi_drv_video.so 

That libdrm is old, and the version is pinned right there in the sysdeps tree:

$ grep -H -i '^Version' /opt/rocm/lib/rocm_sysdeps/lib/pkgconfig/libdrm\*.pc 
    .../libdrm_amdgpu.pc:Version: 2.4.127 
    .../libdrm.pc:Version: 2.4.127 
(the system .pc for comparison: 2.4.134) 

2.4.127 predates the “PRT control bit” API, which was added in libdrm 2.4.132.
Independently confirmed by the exported symbol set:

symbol set diff against the system libdrm_amdgpu (2.4.134), amdgpu\_\* only: 
  < amdgpu_va_manager_query_sw_info     (introduced in libdrm 2.4.132) 
  < amdgpu_va_manager_init2 
(92 exported symbols in the system copy, 91 in the sysdeps copy) 

which matches its runtime behaviour exactly: info=0 -> 0, info=1 -> -EINVAL. 

This is a stale pin, not something that came in with one specific build: the
TheRock 7.12.0 machine and the TheRock 7.14.0 machine (i.e. two different ROCm
versions, installed for two different GPUs) fail identically, and the sysdeps .pc
makes the bundled version easy to check in advance:

grep -i '^Version' /opt/rocm/lib/rocm_sysdeps/lib/pkgconfig/libdrm_amdgpu.pc 
(>= 2.4.132 = fixed, 2.4.127 = still broken) 

Why the renamed SONAME does not help: every exported symbol in the sysdeps
libraries carries a *default* symbol version, i.e. it satisfies an unversioned
reference from any other library:

librocm_sysdeps_drm_amdgpu.so.1 : @@AMDROCM_SYSDEPS_1.0 
librocm_sysdeps_drm.so.2        : @@AMDROCM_SYSDEPS_1.0 
librocm_sysdeps_elf.so.1        : @@AMDROCM_SYSDEPS_1.0_ELFUTILS_1.0 ... 1.7 
librocm_sysdeps_va.so.2         : @@AMDROCM_SYSDEPS_1.0, @@VA_API_0.33.0 
(and likewise zstd/expat/z/... : @@AMDROCM_SYSDEPS_1.0) 

These libraries are pulled into the process as plain DT_NEEDED dependencies, not
dlopen’d:

$ ldd /opt/rocm/lib/libhsa-runtime64.so.1 | grep rocm_sysdeps 
    librocm_sysdeps_elf.so.1        => /opt/rocm/lib/rocm_sysdeps/lib/... 
    librocm_sysdeps_drm.so.2        => /opt/rocm/lib/rocm_sysdeps/lib/... 
    librocm_sysdeps_drm_amdgpu.so.1 => /opt/rocm/lib/rocm_sysdeps/lib/... 
    librocm_sysdeps_numa.so.1       => ... 
    librocm_sysdeps_z.so.1 / zstd / liblzma / bz2 => ... 

(libamdhip64.so has the same set, so any ROCm/HIP user gets them into the 
 global scope before the Vulkan loader dlopens the ICD) 

So the hazard is not specific to libdrm_amdgpu: any of these 71 libraries can
interpose on its system counterpart the same way. It is just that for libdrm the
consequence happens to be fatal, because Mesa 26.2 turns a missing advisory query
into a hard failure.

Note the specificity of the trigger: preloading only the non-amdgpu
librocm_sysdeps_drm.so.2 does *not* break RADV (device enumerated normally) - it is
the libdrm_amdgpu copy that matters.

Both affected machines use such TheRock builds (one for gfx1150, one for gfx1035).
The sysdeps layer is common to the per-GPU artifacts, which is why both machines
show the very same interposing library path and the very same return values.

=== Why the other observations follow ===

* vulkaninfo / a plain Vulkan test program work: they do not load ROCm, so RADV
binds to the system libdrm (verified with any instance-extension/apiVersion/
pNext combination - not an instance-configuration issue).
* AMDVLK works: it does not use this libdrm VA-manager/PRT API.
* The kernel log is clean: failure is entirely in userspace, before any ioctl.
* Rebuilding Mesa from git does not help: any Mesa calls the same API, and the
mismatched library wins by load order.
* Mesa 26.2.4 treats the failure as fatal for input (only) from the “wrong” libdrm.

=== Workarounds (verified) ===

* Force the system libdrm into the process first - RADV device appears:

  $ VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json \\ 
    LD_PRELOAD=/usr/lib64/libdrm_amdgpu.so.1 llama-cli --list-devices 
    Available devices: 
      ROCm0: AMD Radeon 890M Graphics (15542 MiB, 15321 MiB free) 
      Vulkan0: AMD Radeon 890M Graphics (RADV STRIX1) (16054 MiB, 5112 MiB free) 

* Using AMDVLK for the Vulkan workload (no libdrm dependency for this API).
* Not loading the ROCm backend in the same process.

Note this affects any process mixing a ROCm runtime with RADV. Which bundled copy
is “old” has to be checked per component, not assumed by its version string: the
libdrm inside Ollama’s ROCm bundle is named libdrm_amdgpu.so.1.133.0 but does
implement the query (verified: it returns 0, so it is built from libdrm >= 2.4.132
and is *not* a trigger), while the ROCm sysdeps copy is. A one-liner classification
of every copy found on the system:

for f in $(find / -name 'libdrm_amdgpu\*.so\*' 2>/dev/null); do 
  printf '%-70s ' "$f" 
  LD_PRELOAD="$f" ./drmprobe2 2>/dev/null | sed -n 's/.\*prt_wa_control_bit) = //p' 
done 

=== Suggested fixes ===

  1. ROCm / TheRock (the actual source here): the sysdeps layer must not interpose on
    system libraries. Renaming the SONAME is not enough, because every symbol is
    exported with a *default* version (@@AMDROCM_SYSDEPS_1.0), which satisfies
    unversioned references from unrelated libraries. Options:

    • update the bundled libdrm in sysdeps to >= 2.4.132 (it is pinned at 2.4.127
      in TheRock 7.12.0/7.14.0; this fixes the symptom, but leaves the
      interposition hazard for the other 70 libraries);
    • or stop exporting these symbols globally: link the sysdeps libraries with a
      version script that makes everything local except a rocm_-prefixed set, and
      free the unprefixed names; or
    • or load them with dlopen(…, RTLD_LOCAL|RTLD_DEEPBIND) instead of listing
      them as DT_NEEDED of libhsa-runtime64/libamdhip64.
      Venue: upstream ROCm/TheRock (GitHub - ROCm/TheRock: The HIP Environment and ROCm Kit - A lightweight open source build system for HIP and ROCm · GitHub). Not something Fedora can
      fix: the tree is not rpm-owned (and Fedora’s own rocm packages are a separate
      installation here).
  2. Mesa (RADV): do not abort physical device creation when this advisory query
    fails. libdrm documents the value as “should be ignored”; Mesa could degrade
    gracefully (treat the PRT workaround bit as unavailable / disable the NULL PRT
    workaround) instead of returning AC_QUERY_GPU_INFO_FAIL, or at least only fail
    when sparse residency is actually requested. This is the part Fedora can act on.

  3. Loader-side hardening (Vulkan-Loader / distro build): dlopen ICDs with
    RTLD_DEEPBIND so an ICD prefers its own libdrm over an earlier copy from an
    unrelated vendor library.

Upstream venues: Making sure you're not a bot! (radv/amdgpu),
GitHub - ROCm/TheRock: The HIP Environment and ROCm Kit - A lightweight open source build system for HIP and ROCm · GitHub and GitHub - ROCm/legacy-rocm-build: AMD ROCm™ Software - GitHub Home · GitHub (sysdeps layer exporting
unprefixed, default-versioned symbols into the global scope).