Skip to content

irqchip/genirq/msi: Use irq_domain_alloc_irqs()

Johan Hovold asahi linux-arm-kernel lkml 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2irqchip: Use irq_domain_alloc_irqs()drivers/irqchip/irq-apple-aic.c drivers/irqchip/irq-armada-370-xp.c drivers/irqchip/irq-bcm2836.c +3 more+14 -210 replies
2/2genirq/irqdomain/msi: Add irq_domain_alloc_irqs_affinity() wrapperinclude/linux/irqdomain.h kernel/irq/msi.c+18 -33 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] irqchip/genirq/msi: Use irq_domain_alloc_irqs()

When reworking the irqdomain locking I noticed that we had quite a few users of the __irq_domain_alloc_irqs() interface which was initially only intended for some legacy x86 use cases.

This first patch updates the irqchip driver so that the irq_domain_alloc_irqs() wrapper is instead used consistently.

The second patch adds a matching irq_domain_alloc_irqs_affinity() helper which can be used when an affinity hint needs to be provided and updates the sole user.

With this update to gpiolib:

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

the only remaining users of the full interface (with preallocated descriptors) are the two original calls in x86/io_apic and the later added one for IPI.

Johan

Johan Hovold (2):
irqchip: Use irq_domain_alloc_irqs() genirq/irqdomain/msi: Add irq_domain_alloc_irqs_affinity() wrapper

 drivers/irqchip/irq-apple-aic.c     |  5 ++---
 drivers/irqchip/irq-armada-370-xp.c |  4 ++--
 drivers/irqchip/irq-bcm2836.c       |  6 ++----
 drivers/irqchip/irq-gic-v3.c        |  5 ++---
 drivers/irqchip/irq-gic-v4.c        | 10 ++++------
 drivers/irqchip/irq-gic.c           |  5 ++---
 include/linux/irqdomain.h           | 15 +++++++++++++++
 kernel/irq/msi.c                    |  6 +++---
 8 files changed, 32 insertions(+), 24 deletions(-)
Signature · 1 line
2.37.4