Re: [REGRESSION] iommu/amd: "Fix premature break in init_iommu_one()" causes early boot hang
Joerg Roedel <[email protected]>
| Newsgroups | dev.linux.lists.iommu,dev.linux.lists.regressions,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Adding Vasant. On Fri, Aug 21, 2026 at 11:11:07PM +0200, Andreas Juch wrote: > Hello, > > I noticed that one of my NixOS sytems failed to boot with kernel 6.18.40. > The > older 6.18.39 booted fine. A full git bisect of v6.18.39..v6.18.40 > identified > the following commit as the first bad commit: > > Â dc266f6c4e2628576ab33042b6b2a12480220026 > Â iommu/amd: Fix premature break in init_iommu_one() > > The visible symptom is a black screen immediately after systemd-boot. The > machine also remains unreachable over SSH and leaves no persistent journal > entry > for the failed boot. A reset or power cycle is required. > > I reverted that single commit, built the kernel again and the machine > booted, so > I'm quite sure that I found the right commit. > > System information: > > ASRockRack B550D4-4L > BIOS P1.10 (06/28/2021) > > I'm no expert at all, but my research found that the following information > might > be relevant: > > Â journalctl -W -b -k --no-pager | rg -i 'AMD-Vi|AMD IOMMU|IOMMU|IVRS|IVHD' > Â Aug 21 22:24:17 kernel: ACPI: IVRS 0x00000000BB062000 0000D0 (v02 AMDÂ Â > AmdTable 00000001 AMDÂ 00000001) > Â Aug 21 22:24:17 kernel: ACPI: Reserving IVRS table memory at [mem > 0xbb062000-0xbb0620cf] > Â Aug 21 22:24:17 kernel: AMD-Vi: Using global IVHD EFR:0x0, EFR2:0x0 > Â Aug 21 22:24:17 kernel: iommu: Default domain type: Translated > Â Aug 21 22:24:17 kernel: iommu: DMA domain TLB invalidation policy: lazy > mode > Â Aug 21 22:24:17 kernel: pci 0000:00:01.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:00:01.2: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:00:02.0: Adding to iommu group 1 > Â Aug 21 22:24:17 kernel: pci 0000:00:03.0: Adding to iommu group 2 > Â Aug 21 22:24:17 kernel: pci 0000:00:04.0: Adding to iommu group 3 > Â Aug 21 22:24:17 kernel: pci 0000:00:05.0: Adding to iommu group 4 > Â Aug 21 22:24:17 kernel: pci 0000:00:07.0: Adding to iommu group 5 > Â Aug 21 22:24:17 kernel: pci 0000:00:07.1: Adding to iommu group 6 > Â Aug 21 22:24:17 kernel: pci 0000:00:08.0: Adding to iommu group 7 > Â Aug 21 22:24:17 kernel: pci 0000:00:08.1: Adding to iommu group 8 > Â Aug 21 22:24:17 kernel: pci 0000:00:14.0: Adding to iommu group 9 > Â Aug 21 22:24:17 kernel: pci 0000:00:14.3: Adding to iommu group 9 > Â Aug 21 22:24:17 kernel: pci 0000:00:18.0: Adding to iommu group 10 > Â Aug 21 22:24:17 kernel: pci 0000:00:18.1: Adding to iommu group 10 > Â Aug 21 22:24:17 kernel: pci 0000:00:18.2: Adding to iommu group 10 > Â Aug 21 22:24:17 kernel: pci 0000:00:18.3: Adding to iommu group 10 > Â Aug 21 22:24:17 kernel: pci 0000:00:18.4: Adding to iommu group 10 > Â Aug 21 22:24:17 kernel: pci 0000:00:18.5: Adding to iommu group 10 > Â Aug 21 22:24:17 kernel: pci 0000:00:18.6: Adding to iommu group 10 > Â Aug 21 22:24:17 kernel: pci 0000:00:18.7: Adding to iommu group 10 > Â Aug 21 22:24:17 kernel: pci 0000:02:00.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:02:00.1: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:02:00.2: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:20:00.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:20:01.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:20:02.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:20:03.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:20:04.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:20:08.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:20:09.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:21:00.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:22:00.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:23:00.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:24:00.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:25:00.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:29:00.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:2a:00.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:2b:00.0: Adding to iommu group 0 > Â Aug 21 22:24:17 kernel: pci 0000:2c:00.0: Adding to iommu group 11 > Â Aug 21 22:24:17 kernel: pci 0000:2d:00.0: Adding to iommu group 12 > Â Aug 21 22:24:17 kernel: pci 0000:2d:00.1: Adding to iommu group 13 > Â Aug 21 22:24:17 kernel: pci 0000:2d:00.3: Adding to iommu group 14 > Â Aug 21 22:24:17 kernel: pci 0000:2d:00.4: Adding to iommu group 15 > Â Aug 21 22:24:17 kernel: AMD-Vi: Extended features (0x58f77e022294881, > 0x0): PreF GA GA_vAPIC > Â Aug 21 22:24:17 kernel: AMD-Vi: Interrupt remapping enabled > > And the output of the decoded IVRS table, captured by `acpidump -n IVRS -b`: > > Â 00000000Â 49 56 52 53 d0 00 00 00Â 02 e2 41 4d 44 20 20 00 |IVRS......AMDÂ > .| > Â 00000010Â 41 6d 64 54 61 62 6c 65Â 01 00 00 00 41 4d 44 20 > |AmdTable....AMD | > Â 00000020Â 01 00 00 00 41 30 20 00Â 00 00 00 00 00 00 00 00 |....A0 > .........| > Â 00000030Â 10 b0 48 00 02 00 40 00Â 00 00 50 fd 00 00 00 00 > |[email protected].....| > Â 00000040Â 00 00 00 00 2e 8f 04 80Â 03 08 00 00 04 fe ff 00 > |................| > Â 00000050Â 43 00 ff 00 00 a5 00 00Â 04 ff ff 00 00 00 00 00 > |C...............| > Â 00000060Â 48 00 00 00 00 a0 00 02Â 48 00 00 d7 0d a0 00 01 > |H.......H.......| > Â 00000070Â 48 00 00 00 0e 01 00 01Â 11 b0 58 00 02 00 40 00 > |H.........X...@.| > Â 00000080Â 00 00 50 fd 00 00 00 00Â 00 00 00 00 00 02 04 00 > |..P.............| > Â 00000090Â 5a 4a 29 22 ef 77 8f 05Â 00 00 00 00 00 00 00 00 > |ZJ)".w..........| > Â 000000a0Â 03 08 00 00 04 fe ff 00Â 43 00 ff 00 00 a5 00 00 > |........C.......| > Â 000000b0Â 04 ff ff 00 00 00 00 00Â 48 00 00 00 00 a0 00 02 > |........H.......| > Â 000000c0Â 48 00 00 d7 0d a0 00 01Â 48 00 00 00 0e 01 00 01 > |H.......H.......| > Â 000000d0 > > The relevant part (after decoding with `iasl -d ivrs.dat`): > > Â [090h 0144 008h]Â Â Â Â Â Â Â Â Â Â EFR Image : 058F77EF22294A5A > > I'll provide any required details and test patches! > > Thanks for your work, it's very appreciated! > > Andreas >