]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
irqchip/gic-v3-its: Limit number of per-device MSIs to the range the ITS supports
authorMarc Zyngier <maz@kernel.org>
Fri, 6 Feb 2026 15:48:16 +0000 (15:48 +0000)
committerThomas Gleixner <tglx@kernel.org>
Tue, 17 Feb 2026 10:00:43 +0000 (11:00 +0100)
commitce9e40a9a5e5cff0b1b0d2fa582b3d71a8ce68e8
treefc1ba4a56b0865482565fc4a41564546c2932dd8
parent1072020685f4b81f6efad3b412cdae0bd62bb043
irqchip/gic-v3-its: Limit number of per-device MSIs to the range the ITS supports

The ITS driver blindly assumes that EventIDs are in abundant supply, to the
point where it never checks how many the hardware actually supports.

It turns out that some pretty esoteric integrations make it so that only a
few bits are available, all the way down to a single bit.

Enforce the advertised limitation at the point of allocating the device
structure, and hope that the endpoint driver can deal with such limitation.

Fixes: 84a6a2e7fc18d ("irqchip: GICv3: ITS: device allocation and configuration")
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Zenghui Yu <zenghui.yu@linux.dev>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260206154816.3582887-1-maz@kernel.org
drivers/irqchip/irq-gic-v3-its.c
include/linux/irqchip/arm-gic-v3.h