(Posting to amd-gfx as well; that copy is still in the list moderation queue, so sending directly in case it is useful sooner.)
Linux version 7.3.4+deb13-amd64 ([email protected]) #1 SMP PREEMPT_DYNAMIC Debian 7.3.4-1~bpo13+1 (2026-11-15) Hardware name: Gigabyte Technology Co., Ltd. H97-HD3/H97-HD3, BIOS F9c 03/03/2016 Card: AMD Radeon RX 5500 XT (Navi 14, 1002:7340) at 0000:03:00.0 On this machine hw_init failed partway: the PSP could not load the SMU microcode. The trigger is reported separately (Debian bug #1155044, and the Intel VT-d page-table regression at https://lore.kernel.org/all/HYhMd0Klo0XE_yiVY7XmsgyKKFDwKHfKRy22KrycLcYd0V_ykA4xdbBMJXkA07YX3os6qK-NhMIVi6ITo-CkNIIF0e-GcI0UwwZmdDhAJ0I=@protonmail.com/); this mail is only about what the driver does while unwinding from that failure. When the probe error path unwinds, the driver emits 34 WARNs: WARNING: drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c:670 at amdgpu_irq_put+0xaa/0xc0 [amdgpu], CPU#4: (udev-worker)/208 RIP: 0010:amdgpu_irq_put+0xaa/0xc0 [amdgpu] Call Trace: <TASK> amdgpu_fence_driver_hw_fini+0xfe/0x140 [amdgpu] amdgpu_device_fini_hw+0xc2/0x456 [amdgpu] amdgpu_driver_load_kms.cold+0x22/0x44 [amdgpu] amdgpu_pci_probe+0x1f3/0x4d0 [amdgpu] local_pci_probe+0x41/0x90 pci_call_probe+0x5b/0x1a0 pci_device_probe+0xd4/0x160 really_probe+0xde/0x380 The sequence that leads here is: amdgpu 0000:03:00.0: failed to load ucode SMC(0x34) amdgpu 0000:03:00.0: psp gfx command LOAD_IP_FW(0x6) failed and response status is (0x0) amdgpu 0000:03:00.0: PSP load smu failed! [drm:psp_v11_0_ring_destroy [amdgpu]] *ERROR* Fail to stop psp ring amdgpu 0000:03:00.0: PSP firmware loading failed amdgpu 0000:03:00.0: hw_init of IP block <psp> failed -22 amdgpu 0000:03:00.0: Fatal error during GPU init Question: is the WARN_ON at amdgpu_irq.c:670 meant to fire on this unwind path? amdgpu_fence_driver_hw_fini() runs from amdgpu_device_fini_hw() after a partially completed hw_init, and from the trace it looks like it is putting IRQs for rings whose IRQ was never acquired. If that is expected, the WARN_ON buries the actual init error under 34 backtraces; if it is not, the unwind needs a guard for the not-yet-initialised case. For completeness: with the VT-d trigger worked around on this box the card initialises normally (7.3.4+deb13-amd64, "SMU is initialized successfully", [drm] Initialized amdgpu 3.64.0, fbcon amdgpudrmfb primary), so this only shows up on the failure path. Happy to test a fix, and I can provide the full log. -- Aigeus GitHub: EgolOS <[email protected]>
