Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH] PCI/AER: Keep ANFE masked on PLDA PCIe-to-PCI bridge
@ 2026-11-25  2:00 ChunAn Wu
  2026-11-25  2:03 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: ChunAn Wu @ 2026-11-25  2:00 UTC (permalink / raw)
  To: bhelgaas, lukas; +Cc: linux-pci, stable

Since commit eddba19b8b5f ("PCI/AER: Support Advisory Non-Fatal
Errors"), pci_aer_init() unmasks Advisory Non-Fatal Errors (ANFE) on
devices with native AER.

On a Dell server, a BMC VGA sits behind a PLDA PCIe-to-PCI
bridge.  When enumeration reads an absent device on the bridge's secondary
bus, the bridge returns a UR completion and, with ANFE unmasked, also
signals the error.  Platform firmware reports it as a fatal error even
though the hardware severity is non-fatal.  The kernel then resets the
Root Port, the bridge loses its configuration, recovery fails and the VGA
becomes inaccessible, so the console goes black.  Kernels before v7.3 are
not affected.

Set no_aer_anfe for this bridge with an early fixup, as done for the Apple
T2 Secure Enclave in commit 7209846a169f ("PCI/AER: Keep ANFE masked on
Apple T2 Secure Enclave"), so that pci_aer_init() leaves ANFE masked.

Fixes: eddba19b8b5f ("PCI/AER: Support Advisory Non-Fatal Errors")
Cc: stable@vger.kernel.org
Signed-off-by: ChunAn Wu <an.wu@canonical.com>
---
 drivers/pci/quirks.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 4a02fc80755d..511eb65f9872 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -2610,6 +2610,15 @@ static void quirk_no_aer_anfe(struct pci_dev *dev)
 }
 DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_APPLE, 0x1802, quirk_no_aer_anfe);
 
+/*
+ * The PLDA PCIe-to-PCI bridge in front of some server BMC VGA devices
+ * reports an Advisory Non-Fatal Error when enumeration reads an absent
+ * device on its secondary bus.  Platform firmware escalates that to a fatal
+ * error, the Root Port is reset, and the devices behind the bridge become
+ * inaccessible.
+ */
+DECLARE_PCI_FIXUP_EARLY(0x1556, 0xbe00, quirk_no_aer_anfe);
+
 /*
  * Under some circumstances, AER is not linked with extended capabilities.
  * Force it to be linked by setting the corresponding control bit in the
-- 
2.34.1


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

* Re: [PATCH] PCI/AER: Keep ANFE masked on PLDA PCIe-to-PCI bridge
  2026-11-25  2:00 [PATCH] PCI/AER: Keep ANFE masked on PLDA PCIe-to-PCI bridge ChunAn Wu
@ 2026-11-25  2:03 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-25  2:03 UTC (permalink / raw)
  To: ChunAn Wu; +Cc: linux-pci

> Since commit eddba19b8b5f ("PCI/AER: Support Advisory Non-Fatal
> Errors"), pci_aer_init() unmasks Advisory Non-Fatal Errors (ANFE) on
> devices with native AER.
> 
> On a Dell server, a BMC VGA sits behind a PLDA PCIe-to-PCI
> bridge.  When enumeration reads an absent device on the bridge's secondary
> bus, the bridge returns a UR completion and, with ANFE unmasked, also
> signals the error.  Platform firmware reports it as a fatal error even
> though the hardware severity is non-fatal.  The kernel then resets the
> Root Port, the bridge loses its configuration, recovery fails and the VGA
> becomes inaccessible, so the console goes black.  Kernels before v7.3 are
> not affected.
> 
> Set no_aer_anfe for this bridge with an early fixup, as done for the Apple
> T2 Secure Enclave in commit 7209846a169f ("PCI/AER: Keep ANFE masked on
> Apple T2 Secure Enclave"), so that pci_aer_init() leaves ANFE masked.
> 
> Fixes: eddba19b8b5f ("PCI/AER: Support Advisory Non-Fatal Errors")
> Cc: stable@vger.kernel.org
> Signed-off-by: ChunAn Wu <an.wu@canonical.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125020013.639193-1-an.wu@canonical.com?part=1

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

end of thread, other threads:[~2026-11-25  2:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25  2:00 [PATCH] PCI/AER: Keep ANFE masked on PLDA PCIe-to-PCI bridge ChunAn Wu
2026-11-25  2:03 ` sashiko-bot

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