Re: [PATCH v2 3/5] irqchip/gic-v3-its: Align sub-page ITTs to 256 bytes

From: Zenghui Yu

Date: Mon Nov 23 2026 - 07:41:23 EST


On 2026/11/17 3:29, Fuad Tabba wrote:
> Commit e36d4165f0796 ("irqchip/gic-v3-its: Rely on genpool alignment")
> dropped the ALIGN() of the ITT address in MAPD, on the premise that the
> ITT pool returns 256-byte aligned blocks. However, the pool's minimum
> allocation order is get_order(ITS_ITT_ALIGN), which is 0, so its
> granule is a single byte. An ITT whose size is not a multiple of 256
> leaves the next device's ITT misaligned. MAPD drops the low bits of its
> address, so that device's ITEs land on the previous device's ITT.
> QEMU's emulated ITS has 12-byte ITEs, so two devices with 32 vectors
> each are enough to hit it.
>
> Create the pool with a granule of ITS_ITT_ALIGN.
>
> Fixes: e36d4165f0796 ("irqchip/gic-v3-its: Rely on genpool alignment")
> Reviewed-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>
> Signed-off-by: Fuad Tabba <fuad.tabba@xxxxxxxxx>
> ---
> drivers/irqchip/irq-gic-v3-its.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Zenghui Yu <yuzenghui@xxxxxxxxxx>