]> git.ipfire.org Git - thirdparty/linux.git/commit
irqchip/gic-v3-its: Rely on genpool alignment
authorSteven Price <steven.price@arm.com>
Wed, 2 Oct 2024 14:16:30 +0000 (15:16 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 2 Oct 2024 16:00:41 +0000 (18:00 +0200)
commite36d4165f0796536b338521ef714551be0feb706
tree975d39f1e3195591d3c1c7256c94f962b0da79a3
parentb08e2f42e86b5848add254da45b56fc672e2bced
irqchip/gic-v3-its: Rely on genpool alignment

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().

Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Will Deacon <will@kernel.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/all/20241002141630.433502-3-steven.price@arm.com
drivers/irqchip/irq-gic-v3-its.c