🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
2 messages
2 total messages Started by Aigeus Mon, 23 Nov 2026 19:10
Bug#1155044: src:linux: amdgpu fails to initialise on Haswell (DMAR fault reason 0x0c) in 7.3.4-1~bpo13+1
#5819
Author: Aigeus
Date: Mon, 23 Nov 2026 19:10
74 lines
4992 bytes
Package: src:linux
Version: 7.3.4-1~bpo13+1
Severity: important
Tags: upstream

On 7.3.4-1~bpo13+1 an AMD Radeon RX 5500 XT (Navi 14, PCI ID 1002:7340) fails
to initialise on an Intel Haswell desktop (Gigabyte H97-HD3, Core i7-4790K,
BIOS F9c 03/03/2016). The kernel log shows Intel DMAR faults with reason 0x0c
("non-zero reserved fields in PTE") for DMA reads issued by the GPU itself,
and the amdgpu PSP then cannot load the SMU microcode:

  DMAR: [DMA Read NO_PASID] Request device [0000:03:00.0] fault addr 0xff368000
        [fault reason 0x0c] non-zero reserved fields in PTE
  amdgpu 0000:03:00.0: failed to load ucode SMC(0x34)
  amdgpu 0000:03:00.0: PSP load smu failed!
  amdgpu 0000:03:00.0: hw_init of IP block <psp> failed -22
  amdgpu 0000:03:00.0: Fatal error during GPU init

Same machine, same BIOS, same firmware package, same kernel command line
(both kernels boot with "ro quiet splash"; no IOMMU option on either):

  Linux version 6.12.118+deb13-amd64 ... #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1
      0 DMAR faults, "amdgpu: SMU is initialized successfully!",
      "[drm] Initialized amdgpu 3.61.0 for 0000:03:00.0 on minor 1"
  Linux version 7.3.4+deb13-amd64 ... #1 SMP PREEMPT_DYNAMIC Debian 7.3.4-1~bpo13+1
      36 DMAR fault lines across the failing boots, "Fatal error during GPU init"

Config delta between the two kernels shipped in the same suite (IOMMU symbols
only; verbatim diff of /boot/config-*):

  5d4
  < CONFIG_IOMMU_IO_PGTABLE=y
  19a19,23
  > CONFIG_IOMMU_PT=y
  > CONFIG_IOMMU_PT_AMDV1=y
  > CONFIG_IOMMU_PT_VTDSS=y
  > # CONFIG_IOMMU_PT_RISCV64 is not set
  > CONFIG_IOMMU_PT_X86_64=y

So 7.3.4 is the first kernel on this machine built with the generic IOMMU
page-table code. That is consistent with an open upstream regression tracked
by regzbot (a98db518dde2..c376a3456d8b, within v6.12-rc3..v6.13-rc1, still
unresolved as of 2026-11-23):

https://lore.kernel.org/all/HYhMd0Klo0XE_yiVY7XmsgyKKFDwKHfKRy22KrycLcYd0V_ykA4xdbBMJXkA07YX3os6qK-NhMIVi6ITo-CkNIIF0e-GcI0UwwZmdDhAJ0I=@protonmail.com/

That thread covers VFIO GPU passthrough; this report adds the in-kernel amdgpu
case, which fails without any VM involved.

Workaround: add intel_iommu=off to the kernel command line. Verified on this
machine after reboot: /proc/cmdline shows the option, dmesg shows
"DMAR: IOMMU disabled" and the fault count is 0. This disables DMA remapping
for every device, so it is a workaround, not a fix. iommu.passthrough=1 has
not been tested yet.

Note for Linux Mint Debian Edition users: /etc/default/grub is overridden by
/etc/default/grub.d/50_lmde.cfg, so the option must be added through an
/etc/default/grub.d/99-*.cfg drop-in, otherwise update-grub silently ignores
it.

Impact on this machine: the discrete GPU is unusable after the kernel upgrade,
and the log points at amdgpu rather than at the IOMMU, so the cause is not
obvious from the failure message alone. How widely this applies depends on the
VT-d implementation and on whether the new page-table code is enabled in a
given build; I cannot say from a single machine.

Evidence available on request: full /var/log/kern.log for the failing and the
working boot, both /boot/config-* files, lspci -nnk output, and lsinitramfs
listing showing /usr/lib/firmware/amdgpu/navi14_smc.bin present in both
initrds (firmware-amd-graphics 20260916-1~bpo13+1).

-- 
Aigeus
GitHub: EgolOS <79418083+EgolOS@users.noreply.github.com>
Bug#1155044: workaround verified with the card reinstalled; plus a separate amdgpu WARN on the failure path
#5826
Author: Aigeus
Date: Mon, 23 Nov 2026 19:40
43 lines
3601 bytes
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 amd-gfx@lists.freedesktop.org and the AMD DRM maintainers; noting it here so
the log noise is not mistaken for part of this regression.

-- 
Aigeus
GitHub: EgolOS <79418083+EgolOS@users.noreply.github.com>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads