Skip to contentSkip to conversation

Regression with "iommu/vt-d: Move scalable mode ATS enablement to probe path"

DISCUSSION Jarkko Nikula 1 participant 1 message Apr 11, 2025

lore
Share & tools
lore
#0 lore raw

Hi

v6.15-rc1 stopped booting on a Lunar Lake and Panther Lake based test machines when "intel_iommu=on" is set on the kernel command line.

I narrowed regression down to the commit 5518f239aff1 ("iommu/vt-d: Move scalable mode ATS enablement to probe path"). Trace below at that commit.

Previous commit 607ba1bb0961 ("iommu/vt-d: Check if SVA is supported when attaching the SVA domain") boots fine and also v6.15-rc1 when setting "intel_iommu=off".

[    6.005272] pci 0000:00:1f.0: Adding to iommu group 17
[    6.010476] pci 0000:00:1f.3: Adding to iommu group 17
[    6.015684] pci 0000:00:1f.4: Adding to iommu group 17
[    6.020888] pci 0000:00:1f.5: Adding to iommu group 17
[    6.026091] pci 0000:00:1f.6: Adding to iommu group 17
[    6.031318] pci 0000:7f:00.0: Adding to iommu group 18
[    6.040492] Kernel panic - not syncing: DMAR hardware is malfunctioning
[    6.040492] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.14.0-rc3+ #175
[    6.040492] Call Trace:
[    6.040492]  <TASK>
[    6.040492]  dump_stack_lvl+0x6f/0xb0
[    6.040492]  dump_stack+0x10/0x16
[    6.040492]  panic+0x10a/0x2b7
[    6.040492]  iommu_enable_translation.cold+0xc/0xc
[    6.040492]  intel_iommu_init+0xe39/0xec0
[    6.040492]  ? trace_hardirqs_on+0x1e/0xd0
[    6.040492]  ? __pfx_pci_iommu_init+0x10/0x10
[    6.040492]  pci_iommu_init+0xd/0x40
[    6.040492]  do_one_initcall+0x5b/0x390
[    6.040492]  kernel_init_freeable+0x26d/0x2b0
[    6.040492]  ? __pfx_kernel_init+0x10/0x10
[    6.040492]  kernel_init+0x15/0x120
[    6.040492]  ret_from_fork+0x35/0x60
[    6.040492]  ? __pfx_kernel_init+0x10/0x10
[    6.040492]  ret_from_fork_asm+0x1a/0x30
[    6.040492] RIP: 1f0f:0x0
[    6.040492] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
[    6.040492] RSP: 0000:0000000000000000 EFLAGS: 841f0f2e66 ORIG_RAX: 1f0f2e6600000000
[    6.040492] RAX: 0000000000000000 RBX: 1f0f2e6600000000 RCX: 2e66000000000084
[    6.040492] RDX: 0000000000841f0f RSI: 000000841f0f2e66 RDI: 00841f0f2e660000
[    6.040492] RBP: 00841f0f2e660000 R08: 00841f0f2e660000 R09: 000000841f0f2e66
[    6.040492] R10: 0000000000841f0f R11: 2e66000000000084 R12: 000000841f0f2e66
[    6.040492] R13: 0000000000841f0f R14: 2e66000000000084 R15: 1f0f2e6600000000
[    6.040492]  </TASK>
[    6.040492] ---[ end Kernel panic - not syncing: DMAR hardware is malfunctioning ]---