diff options
| author | Leon Romanovsky <[email protected]> | 2025-05-05 07:01:44 +0000 |
|---|---|---|
| committer | Marek Szyprowski <[email protected]> | 2025-05-06 06:36:53 +0000 |
| commit | 433a76207dcf5facc0183acb790f6e8398585258 (patch) | |
| tree | 54753813f201b592314cabf19ac74316162d9c13 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | iommu/dma: Factor out a iommu_dma_map_swiotlb helper (diff) | |
| download | kernel-433a76207dcf5facc0183acb790f6e8398585258.tar.gz kernel-433a76207dcf5facc0183acb790f6e8398585258.zip | |
dma-mapping: Implement link/unlink ranges API
Introduce new DMA APIs to perform DMA linkage of buffers
in layers higher than DMA.
In proposed API, the callers will perform the following steps.
In map path:
if (dma_can_use_iova(...))
dma_iova_alloc()
for (page in range)
dma_iova_link_next(...)
dma_iova_sync(...)
else
/* Fallback to legacy map pages */
for (all pages)
dma_map_page(...)
In unmap path:
if (dma_can_use_iova(...))
dma_iova_destroy()
else
for (all pages)
dma_unmap_page(...)
Reviewed-by: Christoph Hellwig <[email protected]>
Tested-by: Jens Axboe <[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_ucode.c')
0 files changed, 0 insertions, 0 deletions
