All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv4 0/3] genirq, PCI/MSI: mask without flushing
@ 2026-12-02 21:16 Keith Busch
  2026-12-02 21:16 ` [PATCHv4 1/3] genirq: Add disable_irq_noflush() Keith Busch
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Keith Busch @ 2026-12-02 21:16 UTC (permalink / raw)
  To: tglx, bhelgaas
  Cc: maz, lrizzo, hch, changfengnan, namjain, linux-kernel, linux-pci,
	linux-nvme, Keith Busch

From: Keith Busch <kbusch@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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-02 21:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 21:16 [PATCHv4 0/3] genirq, PCI/MSI: mask without flushing Keith Busch
2026-12-02 21:16 ` [PATCHv4 1/3] genirq: Add disable_irq_noflush() Keith Busch
2026-12-02 21:27   ` sashiko-bot
2026-12-02 21:16 ` [PATCHv4 2/3] PCI/MSI: Add pci_msix_write_vector_ctrl_and_flush() Keith Busch
2026-12-02 21:25   ` sashiko-bot
2026-12-02 21:16 ` [PATCHv4 3/3] PCI/MSI: Implement irq_mask_noflush() for MSI-X Keith Busch

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.