Re: [PATCH v2 0/2] PCI/DOE: Speed up mailbox polling

From: David Matlack

Date: Fri Dec 04 2026 - 18:42:54 EST


On Tue Nov 3, 2026 at 1:27 PM PST, Bjorn Helgaas wrote:
> I wish we had a way to use interrupts instead of polling, but it
> doesn't seem like we have a way to share MSI/MSI-X vectors between
> PCI core code like this and the eventual driver. Added Thomas in case
> he has any brilliant ideas about that.

I thought about this a bit, and I don't know if interrupts would buy
much for the enumeration case:

- The DOE interrupt is signaled for Data Object Ready and DOE Error,
but not when DOE Busy clears (PCIe r6.2, sec 6.30.3, per
pci_doe_send_req()). So pci_doe_abort() would still have to poll.

- During enumeration there's no driver yet, so the PCI core would have
to allocate and enable MSI/MSI-X vectors itself just for the DOE
exchanges, and then tear them down before the driver probes. That
setup and teardown may cost about as much as the ~110 us discovery
exchanges it would replace (pure speculation on my part).

- Polling with a short busy-poll before sleeping already notices a
response within a few microseconds of it being ready, which is about
the same as the latency of taking an interrupt and waking up the
waiting task.

Interrupts would help with exchanges that take much longer, where
polling burns more CPU. But I think that's a separate problem from this
series.