Re: [PATCH v2 2/4] dma-iommu: fix arch_sync_dma for map with swiotlb

2021-08-02 Thread Will Deacon
On Mon, Aug 02, 2021 at 02:40:59PM +0100, Will Deacon wrote: > On Fri, Jul 09, 2021 at 12:35:00PM +0900, 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 i

Re: [PATCH v2 2/4] dma-iommu: fix arch_sync_dma for map with swiotlb

2021-08-02 Thread Will Deacon
On Fri, Jul 09, 2021 at 12:35:00PM +0900, 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_swio

[PATCH v2 2/4] dma-iommu: fix arch_sync_dma for map with swiotlb

2021-07-08 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. This al