[PATCHv4 0/3] genirq, PCI/MSI: mask without flushing
Keith Busch
kbusch at meta.com
Wed Dec 2 13:16:08 PST 2026
From: Keith Busch <kbusch at kernel.org>
This adds a new irq api, disable_irq_noflush(), backed by an optional
irq_chip irq_mask_noflush() callback, and implemented for PCI MSI-X. It
writes the mask without reading back, and is for callers where an extra
interrupt after returning is harmless compared to the added latency of
flushing the masking write to the device.
There are no users in this series; the hybrid irq/polling work from nvme
is expected to use it when switching between MSI-X interrupts and
polling, so these are posted separately as prep patches that are
hopefully generally useful.
Previous version:
https://lore.kernel.org/lkml/20261106173448.34794-1-kbusch@meta.com/
Changes since v3:
- Split the MSI-X flush into pci_msix_write_vector_ctrl_and_flush()
so pci_msix_mask() and pci_msix_mask_noflush() differ only in the
write helper they use (Thomas)
Keith Busch (3):
genirq: Add disable_irq_noflush()
PCI/MSI: Add pci_msix_write_vector_ctrl_and_flush()
PCI/MSI: Implement irq_mask_noflush() for MSI-X
drivers/irqchip/irq-msi-lib.c | 1 +
drivers/pci/msi/irqdomain.c | 6 ++++++
drivers/pci/msi/msi.h | 21 ++++++++++++++++-----
include/linux/interrupt.h | 1 +
include/linux/irq.h | 3 +++
kernel/irq/chip.c | 31 +++++++++++++++++++++++++++++++
kernel/irq/internals.h | 1 +
kernel/irq/manage.c | 21 +++++++++++++++++++++
8 files changed, 80 insertions(+), 5 deletions(-)
--
2.52.1
More information about the Linux-nvme
mailing list