Re: [PATCH v3] irqchip/gic-v3-its: Size the collection table for all possible CPUs

From: Jinjie Ruan

Date: Thu Nov 19 2026 - 02:53:41 EST




在 2026/11/19 1:20, Marc Zyngier 写道:
> On Wed, 18 Nov 2026 16:44:11 +0000,
> Zenghui Yu <zenghui.yu@xxxxxxxxx> wrote:
>>
>> On 11/18/26 10:51 AM, Jinjie Ruan wrote:
>>> The collection table is currently sized at a single ITS page size,
>>> and the driver's allocation policy is to allocate a single collection
>>> per CPU. On systems with more CPUs that the ITS can fit in a single
>>> page, no LPI can be routed to the CPUs that don't have an allocated
>>> collection, and the system grinds to a halt.
>>
>> The issue on the reported hardware ("384-CPU HiSilicon HIP12 system", as
>> described in v1) is fixed by allocating 2 pages for the flat collection
>> table. That is fine.
>>
>>>
>>> Change the allocation policy to allow two-level tables, similarly to
>>> the other tables.
>>
>> But I'm afraid that the two-level CT is still not supported: nothing in the
>> driver allocates the level-2 CTs.
>
> Hmmm. You're are absolutely right.
>
> It should only be a matter of plugging its_alloc_table_entry() in
> its_alloc_collections() and getting the error handling right (which
> is, I reckon, the hardest part).
>

OK,I Will fix this issue and the AI review issue.

> Thanks,
>
> M.
>