[PATCH v2 11/16] irqchip/gic-v5: Enable direct injection in ITS
Fuad Tabba
fuad.tabba at linux.dev
Tue Nov 3 06:47:43 PST 2026
On Mon, 02 Nov 2026 19:44:49 +0000, Sascha Bischoff
<sascha.bischoff at arm.com> wrote:
[...]
> Co-authored-by: Timothy Hayes <timothy.hayes at arm.com>
> Signed-off-by: Sascha Bischoff <sascha.bischoff at arm.com>
This should be Co-developed-by:, followed by Timothy's Signed-off-by:.
[...]
> diff --git a/drivers/irqchip/irq-gic-v5-its.c b/drivers/irqchip/irq-gic-v5-its.c
[...]
> +static int gicv5_its_set_vcpu_affinity(struct irq_data *d, void *int_data)
[...]
> +invalidate:
> + /* Make the change ITS-visible */
> + dsb(st);
> + ret = gicv5_its_itt_cache_inv(its, dev_id, event_id);
> + if (!ret && !data) {
> + /*
> + * Invalidation sends events using the old translation to the
> + * IRS, but does not wait for them to be processed.
> + */
> + gicv5_irs_syncr();
> + }
gicv5_irs_syncr() returns void, so a timed-out sync looks like success
here. Could it return the poll's result into ret, so the if (ret) path
keeps the flag for a retry? (Sashiko [1])
This relies on your host series' patches 3 and 4. Without them the
sync sleeps under desc->lock, and this invalidation races the host's.
Should the cover mention the dependency?
Thanks!
/fuad
[1] https://lore.kernel.org/all/sashiko-outbox-194164@kernel.org/
More information about the linux-arm-kernel
mailing list