iommu/amd: Use iommu_alloc_pages_node_sz() for the IRT
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 8 Apr 2025 16:54:10 +0000 (13:54 -0300)
committerJoerg Roedel <jroedel@suse.de>
Thu, 17 Apr 2025 14:22:53 +0000 (16:22 +0200)
commitc3b42b6ffaed8e0b042224920085c3ae8db89d2a
tree6683894bb40c4b17db25d9c0b8158e28f4b2d7d7
parent5087f663c21e8ac2af7bd178a9b8da50ff7752ac
iommu/amd: Use iommu_alloc_pages_node_sz() for the IRT

Use the actual size of the irq_table allocation, limiting to 128 due to
the HW alignment needs.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/22-v4-c8663abbb606+3f7-iommu_pages_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/iommu.c