Skip to content

genirq, PCI/MSI: mask without flushing

Keith Busch linux-nvme linux-pci lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 5 repliesIn review
  2. v22 patches 0 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- Just the commit log to use the preferred "MSI-X"

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2genirq: Add disable_irq_noflush()include/linux/interrupt.h include/linux/irq.h kernel/irq/chip.c +2 more+57 -00 replies
2/2PCI/MSI: Implement irq_mask_noflush() for MSI-Xdrivers/irqchip/irq-msi-lib.c drivers/pci/msi/irqdomain.c drivers/pci/msi/msi.h+15 -25 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] genirq, PCI/MSI: mask without flushing

From: Keith Busch <[email protected]>

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.

RFC with the nvme usage:
https://lore.kernel.org/linux-nvme/[email protected]/

Changes since v2:
- Just the commit log to use the preferred "MSI-X"
Changes since v1:
- Keep the channel offline check guarding the flush read in pci_msix_mask() (Sashiko)

v1: https://lore.kernel.org/all/[email protected]/

Keith Busch (2):
genirq: Add disable_irq_noflush()
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         | 10 ++++++++--
 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, 72 insertions(+), 2 deletions(-)
Signature · 1 line
2.52.0