Re: [PATCH v4 04/13] irqchip/gic-v5: Serialise ITS invalidation commands
From: Fuad Tabba
Date: Wed Dec 02 2026 - 06:25:54 EST
Hi Sascha,
On Wed, 25 Nov 2026 14:40:26 +0000, Sascha Bischoff
<sascha.bischoff@xxxxxxx> 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@xxxxxxxxxx>
> Signed-off-by: Sascha Bischoff <sascha.bischoff@xxxxxxx>
Reviewed-by: Fuad Tabba <fuad.tabba@xxxxxxxxx>
Cheers,
/fuad