public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] irqchip/gic-v5: Tidy up LPI allocation
@ 2026-05-06  9:36 Sascha Bischoff
  2026-05-06  9:37 ` [PATCH v2 1/3] irqchip/gic-v5: Move LPI allocation into the LPI domain Sascha Bischoff
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sascha Bischoff @ 2026-05-06  9:36 UTC (permalink / raw)
  To: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
  Cc: nd, Lorenzo Pieralisi, Marc Zyngier, Thomas Gleixner

LPIs are owned by the LPI domain, but the ITS MSI and IPI domains
currently allocate and free them directly. This exposes the parent's
allocation policy to child domains and requires the children to release
resources that belong to the parent.

Move LPI allocation and teardown into the LPI domain and remove the
exported wrappers that allowed external callers to manage LPIs
directly. Then update the LPI, IPI and ITS MSI domains to use range
allocation and teardown instead of enforcing one-by-one operation.

Thanks,
Sascha

---
Changes since v1:
* Re-wrote commit messages for patches 1 & 2 to be in keeping with the
  expected style.
* Cleaned up loops in patch 2 to use unsigned int and minimise usage
  of `virq + i` (using `virq++` instead). Thanks, Thomas.
* Added Reviewed-by tags.
* Added a Fixes tag to patch 2 as it does fix an existing bug.

v1: https://lore.kernel.org/all/20260430153352.3654325-1-sascha.bischoff@arm.com/

Sascha Bischoff (3):
  irqchip/gic-v5: Move LPI allocation into the LPI domain
  irqchip/gic-v5: Support range allocation for LPIs
  irqchip/gic-v5: Allocate ITS parent LPIs as a range

 drivers/irqchip/irq-gic-v5-its.c   | 34 +++--------
 drivers/irqchip/irq-gic-v5.c       | 98 ++++++++++++++++--------------
 include/linux/irqchip/arm-gic-v5.h |  3 -
 3 files changed, 60 insertions(+), 75 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2026-05-06  9:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-06  9:36 [PATCH v2 0/3] irqchip/gic-v5: Tidy up LPI allocation Sascha Bischoff
2026-05-06  9:37 ` [PATCH v2 1/3] irqchip/gic-v5: Move LPI allocation into the LPI domain Sascha Bischoff
2026-05-06  9:37 ` [PATCH v2 2/3] irqchip/gic-v5: Support range allocation for LPIs Sascha Bischoff
2026-05-06  9:37 ` [PATCH v2 3/3] irqchip/gic-v5: Allocate ITS parent LPIs as a range Sascha Bischoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox