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

From: Lukas Wunner

Date: Tue Nov 24 2026 - 04:16:36 EST


On Tue, Nov 24, 2026 at 10:04:31AM +0100, Lukas Wunner wrote:
> On Fri, Nov 20, 2026 at 12:18:41PM -0600, Bjorn Helgaas wrote:
> > On Thu, Nov 19, 2026 at 10:28:36AM +0100, Lukas Wunner wrote:
> > > https://lore.kernel.org/r/cover.1794997749.git.lukas@xxxxxxxxx
[...]
> One more thing: sashiko flagged two valid issues in patch [7/7] of my
> above-linked-series (which is now the top-most commit on pci/aer).
> I've provided a fixup patch for both findings at the bottom of my reply
> to sashiko:
>
> https://lore.kernel.org/r/av4j5j9-In1uWC8T@xxxxxxxxx/
>
> Could you fold this into the commit? Alternatively, I'd be happy to
> submit these as two separate patches if that is preferred, with a
> proper commit message to explain each change.

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.

Thanks,

Lukas