iommu: Add a gfp parameter to iommu_map()
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 23 Jan 2023 20:35:54 +0000 (16:35 -0400)
committerJoerg Roedel <jroedel@suse.de>
Wed, 25 Jan 2023 10:52:00 +0000 (11:52 +0100)
commit1369459b2e219a6f4c861404c4f195cd81dcbb40
tree6fcaf0e9691616113f7f10521e5d151ac8090f29
parentb7bfaa761d760e72a969d116517eaa12e404c262
iommu: Add a gfp parameter to iommu_map()

The internal mechanisms support this, but instead of exposting the gfp to
the caller it wrappers it into iommu_map() and iommu_map_atomic()

Fix this instead of adding more variants for GFP_KERNEL_ACCOUNT.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/1-v3-76b587fe28df+6e3-iommu_map_gfp_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
16 files changed:
arch/arm/mm/dma-mapping.c
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c
drivers/gpu/drm/tegra/drm.c
drivers/gpu/host1x/cdma.c
drivers/infiniband/hw/usnic/usnic_uiom.c
drivers/iommu/dma-iommu.c
drivers/iommu/iommu.c
drivers/iommu/iommufd/pages.c
drivers/media/platform/qcom/venus/firmware.c
drivers/net/ipa/ipa_mem.c
drivers/net/wireless/ath/ath10k/snoc.c
drivers/net/wireless/ath/ath11k/ahb.c
drivers/remoteproc/remoteproc_core.c
drivers/vfio/vfio_iommu_type1.c
drivers/vhost/vdpa.c
include/linux/iommu.h