Two updates on this report.

1) The intel_iommu=off workaround is now verified with the discrete card
actually installed (earlier I could only show that the DMAR faults stop).
Same kernel 7.3.4+deb13-amd64, same BIOS, card reinstalled, monitor on the
AMD output:

  amdgpu 0000:03:00.0: VRAM: 8176M 0x0000008000000000 - 0x00000081FEFFFFFF 
(8176M used)
  amdgpu 0000:03:00.0: SMU is initialized successfully!
  [drm] Initialized amdgpu 3.64.0 for 0000:03:00.0 on minor 1
  fbcon: amdgpudrmfb (fb0) is primary device

  dmesg | grep -c "fault reason"   ->  0

So on this machine the only thing standing between 7.3.4-1~bpo13+1 and a
working RX 5500 XT is the Intel IOMMU page-table code; with remapping off the
card initialises normally and becomes the primary display. The only remaining
amdgpu message is a benign one:

  amdgpu 0000:03:00.0: [drm] Failed to setup vendor infoframe on connector 
HDMI-A-3: -22

2) Separate issue, found while this one was failing, and it is an amdgpu bug
rather than an IOMMU one. When hw_init fails the way described in this report,
the probe error unwind 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

It looks like amdgpu_fence_driver_hw_fini() puts IRQs for rings whose IRQ was
never acquired on the partially-completed init path. I reported that upstream
to [email protected] and the AMD DRM maintainers; noting it here so
the log noise is not mistaken for part of this regression.

-- 
Aigeus
GitHub: EgolOS <[email protected]>

Reply via email to