aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/intel/pasid.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2025-04-08 16:53:54 +0000
committerJoerg Roedel <[email protected]>2025-04-17 14:22:36 +0000
commit3e8e986ce8a0d5fcf5479212d0c1ece4626c4a27 (patch)
treebdf8dfd9d80026a7ef42b3edc5c4d01beeff1503 /drivers/iommu/intel/pasid.c
parentiommu/pages: Remove the order argument to iommu_free_pages() (diff)
downloadkernel-3e8e986ce8a0d5fcf5479212d0c1ece4626c4a27.tar.gz
kernel-3e8e986ce8a0d5fcf5479212d0c1ece4626c4a27.zip
iommu/pages: Remove iommu_free_page()
Use iommu_free_pages() instead. Reviewed-by: Lu Baolu <[email protected]> Reviewed-by: Mostafa Saleh <[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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/intel/pasid.c b/drivers/iommu/intel/pasid.c
index 58a13366b41c..b616aaad03ba 100644
--- a/drivers/iommu/intel/pasid.c
+++ b/drivers/iommu/intel/pasid.c
@@ -96,7 +96,7 @@ void intel_pasid_free_table(struct device *dev)
max_pde = pasid_table->max_pasid >> PASID_PDE_SHIFT;
for (i = 0; i < max_pde; i++) {
table = get_pasid_table_from_pde(&dir[i]);
- iommu_free_page(table);
+ iommu_free_pages(table);
}
iommu_free_pages(pasid_table->table);
@@ -160,7 +160,7 @@ retry:
tmp = 0ULL;
if (!try_cmpxchg64(&dir[dir_index].val, &tmp,
(u64)virt_to_phys(entries) | PASID_PTE_PRESENT)) {
- iommu_free_page(entries);
+ iommu_free_pages(entries);
goto retry;
}
if (!ecap_coherent(info->iommu->ecap)) {