[PATCH v3 14/14] irqchip/gic-v5: Invalidate the L1 DTE when allocating an L2 device table

Sascha Bischoff sascha.bischoff at arm.com
Wed Nov 25 06:06:02 PST 2026



On 19/11/2026 12:32, Fuad Tabba wrote:
> On Thu, 19 Nov 2026 10:13:31 +0000, Lorenzo Pieralisi
> <lpieralisi at kernel.org> wrote:
> [...]
>>> diff --git a/drivers/irqchip/irq-gic-v5-its.c b/drivers/irqchip/irq-gic-v5-its.c
> [...]
>>> +static int gicv5_its_device_l1_cache_inv(struct gicv5_its_chip_data *its,
>>> +                                         u32 device_id)
>>> +{
>>> +        return __gicv5_its_device_cache_inv(its, device_id, 0, true);
>>
>> I would highlight why event_id_bits is set to 0 (actually it is irrelevant,
>> let's explicitly say so).
> 
> With L1 set, the effective value of ITS_INV_DEVICER.EVENTID_BITS is
> the maximum in ITS_IDR2.EVENTID_BITS, whatever was written.

Yup, that's what my new comment now says :)

> 
> nit: this helper has a single caller, so could you call
> __gicv5_its_device_cache_inv() directly from
> gicv5_its_alloc_l2_devtab() and put Lorenzo's comment on that call?

Done.

> 
> Reviewed-by: Fuad Tabba <fuad.tabba at linux.dev>
> 
> Cheers,
> /fuad

Thanks,
Sascha



More information about the linux-arm-kernel mailing list