[PATCH 4/6] dma-iommu: refactor iommu_dma_alloc_remap

2021-03-01 Thread Christoph Hellwig
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 Reviewed-by: Tomasz Figa Tested-by: Ricardo Ribalda --- drivers/iommu/dma-iommu.c | 67 --- 1 file

[PATCH 4/6] dma-iommu: refactor iommu_dma_alloc_remap

2021-01-28 Thread Christoph Hellwig
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 --- drivers/iommu/dma-iommu.c | 66 +-- 1 file changed, 35 insertions(+), 31 deletions(-) diff --gi