Skip to content
Commit bb0e3919 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

dma-mapping: fix vmap and mmap of noncontiougs allocations



Commit b5c58b2f ("dma-mapping: direct calls for dma-iommu") switched
to use direct calls to dma-iommu, but missed the dma_vmap_noncontiguous,
dma_vunmap_noncontiguous and dma_mmap_noncontiguous behavior keyed off the
presence of the alloc_noncontiguous method.

Fix this by removing the now unused alloc_noncontiguous and
free_noncontiguous methods and moving the vmapping and mmaping of the
noncontiguous allocations into the iommu code, as it is the only provider
of actually noncontiguous allocations.

Fixes: b5c58b2f ("dma-mapping: direct calls for dma-iommu")
Reported-by: default avatarXi Ruoyao <xry111@xry111.site>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarLeon Romanovsky <leon@kernel.org>
Tested-by: default avatarXi Ruoyao <xry111@xry111.site>
parent 88264981
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment