aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/intel/pasid.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2025-04-08 16:54:09 +0000
committerJoerg Roedel <[email protected]>2025-04-17 14:22:51 +0000
commit5087f663c21e8ac2af7bd178a9b8da50ff7752ac (patch)
treeb650d88caa4eb5788a5d411f9c4fb0d771bbd5b2 /drivers/iommu/intel/pasid.c
parentiommu/pages: Remove iommu_alloc_page/pages() (diff)
downloadkernel-5087f663c21e8ac2af7bd178a9b8da50ff7752ac.tar.gz
kernel-5087f663c21e8ac2af7bd178a9b8da50ff7752ac.zip
iommu/pages: Remove iommu_alloc_page_node()
Use iommu_alloc_pages_node_sz() instead. AMD and Intel are both using 4K pages for these structures since those drivers only work on 4K PAGE_SIZE. riscv is also spec'd to use SZ_4K. Reviewed-by: Lu Baolu <[email protected]> Tested-by: Alejandro Jimenez <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/iommu/intel/pasid.c')
-rw-r--r--drivers/iommu/intel/pasid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iommu/intel/pasid.c b/drivers/iommu/intel/pasid.c
index b616aaad03ba..728da85a9100 100644
--- a/drivers/iommu/intel/pasid.c
+++ b/drivers/iommu/intel/pasid.c
@@ -147,7 +147,8 @@ retry:
if (!entries) {
u64 tmp;
- entries = iommu_alloc_page_node(info->iommu->node, GFP_ATOMIC);
+ entries = iommu_alloc_pages_node_sz(info->iommu->node,
+ GFP_ATOMIC, SZ_4K);
if (!entries)
return NULL;