Re: [PATCH v2 2/2] irqchip/gic-v3-its: Rely on genpool alignment

From: Catalin Marinas
Date: Thu Oct 03 2024 - 05:42:22 EST


On Wed, Oct 02, 2024 at 03:16:30PM +0100, Steven Price wrote:
> its_create_device() over-allocated by ITS_ITT_ALIGN - 1 bytes to ensure
> that an aligned area was available within the allocation. The new
> genpool allocator has its min_alloc_order set to
> get_order(ITS_ITT_ALIGN) so all allocations from it should be
> appropriately aligned.
>
> Remove the over-allocation from its_create_device() and alignment from
> its_build_mapd_cmd().
>
> Tested-by: Will Deacon <will@xxxxxxxxxx>
> Reviewed-by: Marc Zyngier <maz@xxxxxxxxxx>
> Signed-off-by: Steven Price <steven.price@xxxxxxx>

Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>