dma-iommu: refactor iommu_dma_alloc_remap
authorChristoph Hellwig <hch@lst.de>
Thu, 28 Jan 2021 13:44:15 +0000 (14:44 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 Mar 2021 09:02:32 +0000 (10:02 +0100)
commit8230ce9a4e206fa1be17d66245f87cae2935d7d2
tree79e038706bed4f9f199e173e78f95aedf3ad671b
parent7d5b5738d1514e9dd8ed452660e2a4d25beb9483
dma-iommu: refactor iommu_dma_alloc_remap

Split out a new helper that only allocates a sg_table worth of
memory without mapping it into contiguous kernel address space.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Tested-by: Ricardo Ribalda <ribalda@chromium.org>
drivers/iommu/dma-iommu.c