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

Catalin Marinas catalin.marinas at arm.com
Thu Oct 3 02:42:14 PDT 2024


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 at kernel.org>
> Reviewed-by: Marc Zyngier <maz at kernel.org>
> Signed-off-by: Steven Price <steven.price at arm.com>

Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list