* [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
2026-11-25 11:46 ` Lukas Wunner
0 siblings, 2 replies; 4+ 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] 4+ 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
2026-11-25 11:46 ` Lukas Wunner
1 sibling, 0 replies; 4+ 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] 4+ 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
@ 2026-11-25 11:46 ` Lukas Wunner
2026-11-26 5:10 ` ChunAn Wu
1 sibling, 1 reply; 4+ messages in thread
From: Lukas Wunner @ 2026-11-25 11:46 UTC (permalink / raw)
To: ChunAn Wu; +Cc: bhelgaas, linux-pci
On Wed, Nov 25, 2026 at 10:00:13AM +0800, ChunAn Wu wrote:
> 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.
So is bit 20 in the Uncorrectable Error Severity register of the PLDA
bridge clear, i.e. set to 0?
Are you using a kernel which contains commit 79c168e2aa95 ("PCI/AER: Skip
error recovery on false alarms")?
Is this reported through Firmware First error reporting? Could you provide
dmesg output?
> 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.
The issue appears to be confined to this particular Dell server, which
suggests that a DMI quirk may be appropriate, instead of disabling ANFE
wholesale. The same PLDA bridge probably works fine on other systems.
On the other hand, if the bridge generates the UR errors for every access
to an inaccessible device on its secondary side, this might become quite
noisy and then indeed silencing the errors might be the right call.
I lack enough information to make an informed decision, hence my questions
above.
Thanks,
Lukas
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] PCI/AER: Keep ANFE masked on PLDA PCIe-to-PCI bridge
2026-11-25 11:46 ` Lukas Wunner
@ 2026-11-26 5:10 ` ChunAn Wu
0 siblings, 0 replies; 4+ messages in thread
From: ChunAn Wu @ 2026-11-26 5:10 UTC (permalink / raw)
To: Lukas Wunner; +Cc: bhelgaas, linux-pci
Hi Lukas
Thank you for your review
> > 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.
>
> So is bit 20 in the Uncorrectable Error Severity register of the PLDA
> bridge clear, i.e. set to 0?
Yes. aer_uncor_severity is 0x000ef031
> Are you using a kernel which contains commit 79c168e2aa95 ("PCI/AER: Skip
> error recovery on false alarms")?
Yes, the kernel I have tested contains the commit, but still got failed result.
> Is this reported through Firmware First error reporting? Could you provide
> dmesg output?
Yes. The firmware reports it through GHES; the OS also owns AER per
_OSC. Relevant excerpt (timestamps trimmed, device addresses kept):
GHES: APEI firmware first mode is enabled by APEI bit and WHEA _OSC.
pci 0001:c1:00.0: [1556:be00] type 01 class 0x060400 PCIe to PCI/PCI-X bridge
{1}[Hardware Error]: Hardware error from APEI Generic Hardware Error Source: 7
{1}[Hardware Error]: Error 0, type: fatal
{1}[Hardware Error]: fru_text: PCIe UR
{1}[Hardware Error]: port_type: 7, PCIe to PCI/PCI-X bridge
{1}[Hardware Error]: device_id: 0001:c1:00.0
{1}[Hardware Error]: aer_cor_status: 0x00002000, aer_cor_mask: 0x000011c1
{1}[Hardware Error]: aer_uncor_status: 0x00100000, aer_uncor_mask: 0x00010000
{1}[Hardware Error]: aer_uncor_severity: 0x000ef031
pci 0001:c1:00.0: [20] UnsupReq | Receiver | Transaction Layer (First)
pci 0001:c2:00.0: AER: can't recover (no error_detected callback)
pci 0001:c0:05.2: AER: Root Port link has been reset (0)
pci 0001:c0:05.2: AER: device recovery failed
> > 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.
>
> The issue appears to be confined to this particular Dell server, which
> suggests that a DMI quirk may be appropriate, instead of disabling ANFE
> wholesale. The same PLDA bridge probably works fine on other systems.
>
> On the other hand, if the bridge generates the UR errors for every access
> to an inaccessible device on its secondary side, this might become quite
> noisy and then indeed silencing the errors might be the right call.
>
Counters from the failing kernel
Only one UR was counted, as fatal, because the firmware-first record was
labelled fatal. The Root Port is reset right after, so I can't tell
whether the bridge raises more errors for later absent devices.
Since this comes from the platform firmware and I only have this one
system, I agree a DMI quirk is the better scope. I'll send a v2.
BR
An
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-26 5:10 UTC | newest]
Thread overview: 4+ 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
2026-11-25 11:46 ` Lukas Wunner
2026-11-26 5:10 ` ChunAn Wu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.