Re: [PATCH v6 2/7] dma-iommu: fix arch_sync_dma for map

2021-08-19 Thread Robin Murphy
On 2021-08-17 02:38, David Stevens wrote: 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. Move arch_sync_dma into the __iommu_dma_map_swiotlb helper, so it can use

[PATCH v6 2/7] dma-iommu: fix arch_sync_dma for map

2021-08-16 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. Move arch_sync_dma into the __iommu_dma_map_swiotlb helper, so it can use the bounce buffer address if necessary. Now