iommu: Add a gfp parameter to iommu_map_sg()
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 23 Jan 2023 20:35:56 +0000 (16:35 -0400)
committerJoerg Roedel <jroedel@suse.de>
Wed, 25 Jan 2023 10:52:03 +0000 (11:52 +0100)
commitf2b2c051be6262edc3c6fce50d3d4f01b59ba228
tree552a2c1b0dccec56882a0c367dff9874a946c0f5
parent4dc6376af596d9b2a46fa9baf94c9f2fa5a3d246
iommu: Add a gfp parameter to iommu_map_sg()

Follow the pattern for iommu_map() and remove iommu_map_sg_atomic().

This allows __iommu_dma_alloc_noncontiguous() to use a GFP_KERNEL
allocation here, based on the provided gfp flags.

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