Re: [PATCH v3 0/6] PCI/DPC: Decide DPC ownership with host_bridge->native_dpc

From: Lukas Wunner

Date: Wed Nov 25 2026 - 06:26:46 EST


On Tue, Nov 24, 2026 at 06:08:38PM -0600, Bjorn Helgaas wrote:
> On Tue, Nov 24, 2026 at 10:16:31AM +0100, Lukas Wunner wrote:
> > Actually... come to think of it, you had this question about whether
> > ratelimiting knobs should be exposed at all if there is no AER-capable
> > Root Port or RCEC. I think this could be implemented simply by not
> > allocating aer_info in pci_aer_init() and jumping directly to the
> > "enable" label. (Because I think we still want to continue enabling
> > Error Messages in case the user or the platform sets the System Error
> > bits in the Root Control register.)
> >
> > That would implicitly hide all statistics and ratelimiting files
> > and may be a cleaner approach to overcome sashiko's objection that
> > Root Port statistics are exposed on AER-incapable Root Ports with
> > patch [7/7] of my series. It would also save a little bit of memory
> > if we don't unnecessarily allocate aer_info.
> >
> > Do you agree? If so I can prepare a patch.
>
> I folded in the fix above for now, but will be happy to replace with
> the approach you propose.

Hm, I thought about this some more and realized that at least on x86,
the kernel may receive PCI System Errors through pci_serr_error() in
arch/86/kernel/nmi.c.

A quick web search finds numerous recent reports of messages such as:

NMI: PCI system error (SERR) for reason a0 on CPU 0.
Dazed and confused, but trying to continue

It would be possible to add plumbing such that pci_serr_error()
funnels such errors to the AER driver, which would search for the
error-reporting device and emit more useful messages. The NMI
message causes a lot of head-scratching among users.

With such plumbing added, the ratelimiting knobs and statistics in sysfs
would actually be useful despite lack of an AER-capable Root Port or RCEC,
which suggests that hiding them may be the wrong thing to do. So maybe
we should leave it as it is for now?

The "reason" in the NMI message is sometimes a1 or b1 in reports found on
the web. It's unclear to me if the "reason" and "CPU" provide a clue
where the error-reporting device is located.

Support for this type of NMI was added in 2011 by commit 1c7b74d46fed
("x86, NMI: Add NMI symbol constants and rename memory parity to
PCI SERR").

Thanks,

Lukas