Re: [PATCH v3 1/5] dma-iommu: fix sync_sg with swiotlb

2021-08-11 Thread Robin Murphy
On 2021-08-11 06:57, Christoph Hellwig wrote: On Wed, Aug 11, 2021 at 11:42:43AM +0900, David Stevens wrote: From: David Stevens The is_swiotlb_buffer function takes the physical address of the swiotlb buffer, not the physical address of the original buffer. The sglist contains the physical

Re: [PATCH v3 1/5] dma-iommu: fix sync_sg with swiotlb

2021-08-10 Thread Christoph Hellwig
On Wed, Aug 11, 2021 at 11:42:43AM +0900, David Stevens wrote: > From: David Stevens > > The is_swiotlb_buffer function takes the physical address of the swiotlb > buffer, not the physical address of the original buffer. The sglist > contains the physical addresses of the original buffer, so for

[PATCH v3 1/5] dma-iommu: fix sync_sg with swiotlb

2021-08-10 Thread David Stevens
From: David Stevens The is_swiotlb_buffer function takes the physical address of the swiotlb buffer, not the physical address of the original buffer. The sglist contains the physical addresses of the original buffer, so for the sync_sg functions to work properly when a bounce buffer might have