iommu/intel: Add a gfp parameter to alloc_pgtable_page()
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 23 Jan 2023 20:35:59 +0000 (16:35 -0400)
committerJoerg Roedel <jroedel@suse.de>
Wed, 25 Jan 2023 10:52:05 +0000 (11:52 +0100)
commit2552d3a2292aa9bc14e84afe846027e9bd98eb78
treecc5ec92853e7465203fe5e16d0a6af2fd5d852ab
parente787a38e31e57c35682d363e71891956d804f7e3
iommu/intel: Add a gfp parameter to alloc_pgtable_page()

This is eventually called by iommufd through intel_iommu_map_pages() and
it should not be forced to atomic. Push the GFP_ATOMIC to all callers.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/6-v3-76b587fe28df+6e3-iommu_map_gfp_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c
drivers/iommu/intel/iommu.h
drivers/iommu/intel/pasid.c