]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/riscv: Update to use iommu_alloc_pages_node_lg2()
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 8 Apr 2025 16:54:06 +0000 (13:54 -0300)
committerJoerg Roedel <jroedel@suse.de>
Thu, 17 Apr 2025 14:22:48 +0000 (16:22 +0200)
commit9dda3f01ddf056ec023c89e43354fa3caabd8fb9
treeae7a3a5f23a0bd58fb00feecc1cf8206a52b210b
parent5faa04c4edd462cc4ded939cea6f5a995f2ad0ec
iommu/riscv: Update to use iommu_alloc_pages_node_lg2()

One part of RISCV already has a computed size, however the queue
allocation must be aligned to 4k. The other objects are 4k by spec.

Reviewed-by: Tomasz Jeznach <tjeznach@rivosinc.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/18-v4-c8663abbb606+3f7-iommu_pages_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/riscv/iommu.c