[PATCH v4 04/13] irqchip/gic-v5: Serialise ITS invalidation commands
Fuad Tabba
fuad.tabba at linux.dev
Wed Dec 2 03:25:04 PST 2026
Hi Sascha,
On Wed, 25 Nov 2026 14:40:26 +0000, Sascha Bischoff
<sascha.bischoff at arm.com> wrote:
> The ITS uses the shared DIDR and EIDR registers to select the DeviceID
> and EventID to invalidate. Event invalidations for different IRQs can
> overlap, as can an event invalidation and a device invalidation. The
> per-IRQ descriptor lock does not serialise these commands, so
> concurrent writes can cause an invalidation to use the DeviceID or
> EventID set by another concurrent invalidation.
>
> Serialise the command register writes and STATUSR.IDLE polls for both
> invalidation paths with a per-ITS raw spinlock. Use atomic polling
> while holding the lock.
>
> Fixes: 57d72196dfc8 ("irqchip/gic-v5: Add GICv5 ITS support")
> Reported-by: Sashiko AI <sashiko-bot at kernel.org>
> Signed-off-by: Sascha Bischoff <sascha.bischoff at arm.com>
Reviewed-by: Fuad Tabba <fuad.tabba at linux.dev>
Cheers,
/fuad
More information about the linux-arm-kernel
mailing list