Linux PCI subsystem development
 help / color / mirror / Atom feed
* [REGRESSION] v7.3: boot hang in PCI enumeration on AMD EPYC Rome, with pcie_ports=native (ANFE unmask on 1022:148a?)
@ 2026-12-01  1:26 Thomas Belway
  2026-12-01 11:02 ` Lukas Wunner
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Belway @ 2026-12-01  1:26 UTC (permalink / raw)
  To: linux-pci; +Cc: Lukas Wunner, Bjorn Helgaas, regressions

Hello there,

This is my first regression report so please let me know if it needs 
improvement.

Since v7.3, an AMD EPYC Rome server hangs during the PCI bus scan when 
booted with pcie_ports=native. v7.2 boots fine with the same command 
line, and v7.3 boots fine without pcie_ports=native. I suspect commit 
eddba19b8b5f ("PCI/AER: Support Advisory Non-Fatal Errors"), but I have 
not bisected or reverted it to confirm.

Hardware: ASRock Rack ROMED8-2T, AMD EPYC 7542 (Zen 2 / Rome), BIOS 
P4.30, BMC 3.08. (I tested the previous version I was on and upgraded to 
latest thinking it may be a firmware bug). Kernels: Fedora 44 builds of 
7.3.4, 7.3.5 and 7.3.6 (7.3.6-200.fc44) hang. 7.2.9-200.fc44 boots with 
no issue.

The firmware does not grant AER to the OS, so with pcie_ports=native the 
kernel forces it:

- acpi PNP0A08:00: _OSC: platform does not support [AER LTR DPC]
- acpi PNP0A08:00: _OSC: OS forcing control ("pcie_ports=native") of 
[AER DPC]
- acpi PNP0A08:00: OS native features: SHPCHotplug+ PCIeHotplug+ PME+ 
AER+ DPC+ LTR-

It freezes/locks after the grub boot selection, hanging indicating 
booting the kernel. With earlycon on the serial port, 7.3.6 stops 
partway through enumerating root bus c0. There is no panic, and the 
machine has to be power-cycled:
- [   12.234523] pci 0000:c0:03.4: PCI bridge to [bus c8]
- [   12.245193] pci 0000:c9:00.0: [1022:148a] type 00 class 0x130000 
PCIe Endpoint
- [   12.260117] pci 0000:c9:00.0: enabling Extended Tags

7.2.9 on the same machine, same command line, continues with:
- [    4.636283] pci 0000:c9:00.0: enabling Extended Tags
- [    4.641431] pci 0000:c9:00.2: [1022:1498] type 00 class 0x108000 
PCIe Endpoint
- [    4.649277] pci 0000:c9:00.2: BAR 2 [mem 0xb3600000-0xb367ffff]

7.3.6 without pcie_ports=native ("AER- DPC-") gets past c9:00.2 and 
boots normally.

1022:148a is the Starship/Matisse "PCIe Dummy Function". It advertises RBER
and has AER with Advisory Non-Fatal masked (lspci under 7.2.9):
- c9:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, 
Inc. [AMD] Starship/Matisse PCIe Dummy Function [1022:148a]
   DevCap: ... ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ 
SlotPowerLimit 0W TEE-IO-
     Capabilities: [150 v2] Advanced Error Reporting
       CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- 
AdvNonFatalErr+ CorrIntErr- HeaderOF-

I used Claude to assist me looking at a potential root cause and I am 
copy-pasting directly from it for here:
"In v7.3, pci_aer_init() clears PCI_ERR_COR_ADV_NFAT when
pcie_aer_is_native(dev) and the device has PCI_EXP_DEVCAP_RBER, and
pcie_aer_is_native() is true here only because of pcie_ports=native. The
hang falls between the "enabling Extended Tags" line for c9:00.0 and the
header of c9:00.2, which is consistent with something in
pci_init_capabilities() for c9:00.0. It is also consistent with the earlier
report for the Apple T2 (106b:1802), which led to quirk_no_aer_anfe().
Serial output may lag slightly, and dropping pcie_ports=native also turns
off the other native AER/DPC paths, so this points at the ANFE unmask but
does not prove it.

Root bus c0 on this box also has an Intel Arc A770 (behind 8086:4fa0/4fa4)
and four Phison E18 NVMe on a bifurcated x16 slot. Both are scanned before
c9:00.0 without trouble.

I can test patches, for example an EARLY quirk setting no_aer_anfe for
1022:148a, or a revert of eddba19b8b5f on top of 7.3.y. Full serial
excerpts of the three boots and the lspci output are available on request.

#regzbot introduced: v7.2..v7.3"

Thank you for your time,

Thomas Belway



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [REGRESSION] v7.3: boot hang in PCI enumeration on AMD EPYC Rome, with pcie_ports=native (ANFE unmask on 1022:148a?)
  2026-12-01  1:26 [REGRESSION] v7.3: boot hang in PCI enumeration on AMD EPYC Rome, with pcie_ports=native (ANFE unmask on 1022:148a?) Thomas Belway
@ 2026-12-01 11:02 ` Lukas Wunner
  2026-12-01 17:45   ` Thomas Belway
  0 siblings, 1 reply; 4+ messages in thread
From: Lukas Wunner @ 2026-12-01 11:02 UTC (permalink / raw)
  To: Thomas Belway; +Cc: linux-pci, Bjorn Helgaas, regressions

On Tue, Dec 01, 2026 at 01:26:50AM +0000, Thomas Belway wrote:
> This is my first regression report so please let me know if it needs 
> improvement.

Thanks for the report, you're doing great.  I apologize for the breakage.

> The firmware does not grant AER to the OS, so with pcie_ports=native the 
> kernel forces it:

Is there a BIOS knob that turns on native AER, or what's the reason why
"pcie_ports=native" must be used?  It would be interesting to know if
the same issue occurs with native AER if it's granted to the OS.

> I can test patches, for example an EARLY quirk setting no_aer_anfe for
> 1022:148a, or a revert of eddba19b8b5f on top of 7.3.y. Full serial
> excerpts of the three boots and the lspci output are available on request.

Below is a patch to set no_aer_anfe for 1022:148a.  Does it help?

It's unclear to me if this is a general problem with the PCIe Dummy Device
on AMD Rome or whether it's specific to the BIOS.  In the latter case,
a DMI quirk might be more appropriate.

-- >8 --

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 1aa87a3ef9ed..fedfef06ab1b 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -2584,6 +2584,7 @@ static void quirk_no_aer_anfe(struct pci_dev *dev)
 	dev->no_aer_anfe = 1;
 }
 DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_APPLE, 0x1802, quirk_no_aer_anfe);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_AMD, 0x148a, quirk_no_aer_anfe);
 
 /*
  * Under some circumstances, AER is not linked with extended capabilities.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [REGRESSION] v7.3: boot hang in PCI enumeration on AMD EPYC Rome, with pcie_ports=native (ANFE unmask on 1022:148a?)
  2026-12-01 11:02 ` Lukas Wunner
@ 2026-12-01 17:45   ` Thomas Belway
  2026-12-01 18:01     ` Lukas Wunner
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Belway @ 2026-12-01 17:45 UTC (permalink / raw)
  To: Lukas Wunner; +Cc: linux-pci, Bjorn Helgaas, regressions

Hello there,

Wow, thanks for the reply! Not only did I test the patch to prove it
doesn't solve the problem, proving your theory becaues it went past
c9:00.0 but hangs at the next function c9:00.2... But I found that the
AER reporting option was under the NBIO tree - so I missed it when I
configured this bios. Setting this, the issue no longer occurs. So the
reason I set visibilty with the pcie_ports=native was solely because I
missed the bios option (or it was released in a bios update and I hadn't
checked since those updates).

With OS First, stock 7.3.6 and no pcie_ports=native:

- acpi PNP0A08:00: _OSC: platform does not support [LTR DPC]
- acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug SHPCHotplug PME
AER PCIeCapability]
- acpi PNP0A08:00: OS native features: SHPCHotplug+ PCIeHotplug+ PME+
AER+ DPC- LTR-
- pci 0000:c9:00.0: [1022:148a] type 00 class 0x130000 PCIe Endpoint
- pci 0000:c9:00.0: enabling Extended Tags
- pci 0000:c9:00.2: [1022:1498] type 00 class 0x108000 PCIe Endpoint
...

It boots normally. The ANFE unmask did happen: c9:00.0, c9:00.2 and the
other AMD functions now show AdvNonFatalErr- in CEMsk, and no AEr errors
have been logged.

So thank you for pointing out the issue ended up being PEBKAC haha.

Thanks,

Tom


-------- Original Message --------
On Tuesday, 12/01/26 at 06:02 Lukas Wunner <lukas@wunner.de> wrote:
On Tue, Dec 01, 2026 at 01:26:50AM +0000, Thomas Belway wrote:
> This is my first regression report so please let me know if it needs
> improvement.

Thanks for the report, you're doing great.  I apologize for the breakage.

> The firmware does not grant AER to the OS, so with pcie_ports=native the
> kernel forces it:

Is there a BIOS knob that turns on native AER, or what's the reason why
"pcie_ports=native" must be used?  It would be interesting to know if
the same issue occurs with native AER if it's granted to the OS.

> I can test patches, for example an EARLY quirk setting no_aer_anfe for
> 1022:148a, or a revert of eddba19b8b5f on top of 7.3.y. Full serial
> excerpts of the three boots and the lspci output are available on request.

Below is a patch to set no_aer_anfe for 1022:148a.  Does it help?

It's unclear to me if this is a general problem with the PCIe Dummy Device
on AMD Rome or whether it's specific to the BIOS.  In the latter case,
a DMI quirk might be more appropriate.

-- >8 --

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 1aa87a3ef9ed..fedfef06ab1b 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -2584,6 +2584,7 @@ static void quirk_no_aer_anfe(struct pci_dev *dev)
 	dev->no_aer_anfe = 1;
 }
 DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_APPLE, 0x1802, quirk_no_aer_anfe);
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_AMD, 0x148a, quirk_no_aer_anfe);

 /*
  * Under some circumstances, AER is not linked with extended capabilities.


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [REGRESSION] v7.3: boot hang in PCI enumeration on AMD EPYC Rome, with pcie_ports=native (ANFE unmask on 1022:148a?)
  2026-12-01 17:45   ` Thomas Belway
@ 2026-12-01 18:01     ` Lukas Wunner
  0 siblings, 0 replies; 4+ messages in thread
From: Lukas Wunner @ 2026-12-01 18:01 UTC (permalink / raw)
  To: Thomas Belway; +Cc: linux-pci, Bjorn Helgaas, regressions

On Tue, Dec 01, 2026 at 05:45:42PM +0000, Thomas Belway wrote:
> Wow, thanks for the reply! Not only did I test the patch to prove it
> doesn't solve the problem, proving your theory becaues it went past
> c9:00.0 but hangs at the next function c9:00.2... But I found that the
> AER reporting option was under the NBIO tree - so I missed it when I
> configured this bios. Setting this, the issue no longer occurs.

Thanks a lot, good to hear that the problem is resolved!
Let us know if you do come across other issues.

#regzbot invalid: Resolved by enabling native AER in BIOS

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-01 18:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  1:26 [REGRESSION] v7.3: boot hang in PCI enumeration on AMD EPYC Rome, with pcie_ports=native (ANFE unmask on 1022:148a?) Thomas Belway
2026-12-01 11:02 ` Lukas Wunner
2026-12-01 17:45   ` Thomas Belway
2026-12-01 18:01     ` Lukas Wunner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox