Re: [PATCH v4 2/6] dma-iommu: fix arch_sync_dma for map

2021-08-13 Thread Christoph Hellwig
I have a really hard time reading following the patch. Can you split folding__iommu_dma_map_swiotlb into iommu_dma_map_page into a second cleanup patch? ___ iommu mailing list iommu@lists.linux-foundation.org

[PATCH v4 2/6] dma-iommu: fix arch_sync_dma for map

2021-08-13 Thread David Stevens
From: David Stevens When calling arch_sync_dma, we need to pass it the memory that's actually being used for dma. When using swiotlb bounce buffers, this is the bounce buffer. Fold __iommu_dma_map_swiotlb into iommu_dma_map_page so it can sync the right phys_addr_t. Now that iommu_dma_map_sg