aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2025-05-05 07:01:40 +0000
committerMarek Szyprowski <[email protected]>2025-05-06 06:36:53 +0000
commit5c87cffe2d3853cfae61e9373ee98a0409839178 (patch)
tree1eb57c151b2e99c6320a5786e9c81d481b3a13da /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentdma-mapping: move the PCI P2PDMA mapping helpers to pci-p2pdma.h (diff)
downloadkernel-5c87cffe2d3853cfae61e9373ee98a0409839178.tar.gz
kernel-5c87cffe2d3853cfae61e9373ee98a0409839178.zip
iommu: generalize the batched sync after map interface
For the upcoming IOVA-based DMA API we want to batch the ops->iotlb_sync_map() call after mapping multiple IOVAs from dma-iommu without having a scatterlist. Improve the API. Add a wrapper for the map_sync as iommu_sync_map() so that callers don't need to poke into the methods directly. Formalize __iommu_map() into iommu_map_nosync() which requires the caller to call iommu_sync_map() after all maps are completed. Refactor the existing sanity checks from all the different layers into iommu_map_nosync(). Signed-off-by: Christoph Hellwig <[email protected]> Acked-by: Will Deacon <[email protected]> Tested-by: Jens Axboe <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Luis Chamberlain <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Marek Szyprowski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions