Skip to content

PCI/MSI: Avoid PCI level masking during normal operation if requested

Thomas Gleixner linux-arm-kernel lkml 1 version Applied

Status from this message: The following commit has been merged into the irq/drivers branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 11 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2irqchip/msi-lib: Honor the MSI_FLAG_PCI_MSI_MASK_PARENT flagdrivers/irqchip/irq-msi-lib.c+14 -09 replies
2/2PCI/MSI: Remove the conditional parent [un]mask logicdrivers/pci/msi/irqdomain.c+0 -201 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBjorn HelgaasMarc Zyngier
SeriesA-b T-b
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch 0/2] PCI/MSI: Avoid PCI level masking during normal operation if requested

This is a follow up to Marc's attempt on this:

     https://lore.kernel.org/lkml/[email protected]

Now that the PCI/MSI side has irq_startup/shutdown() callbacks, which do the [un]masking at the PCI level, let the MSI parent domains which insist on being in charge of masking do so for normal operations.

That avoids going out to the PCI endpoint in the case that an interrupt has to be masked on arrival of an interrupt in software (lazy) disabled state.

That's achieved by overwriting the irq_[un]mask() callbacks in the irq/MSI library.

As a consequence the conditional mask/unmask logic in the regular irq_[un]mask() callbacks of the PCI/MSI domain is not longer required.

Thanks,

tglx

---
 irqchip/irq-msi-lib.c |   14 ++++++++++++++
 pci/msi/irqdomain.c   |   20 --------------------
 2 files changed, 14 insertions(+), 20 deletions(-)