Re: [PATCH v2 1/4] dma-iommu: fix sync_sg with swiotlb

2021-08-04 Thread David Stevens
On Mon, Aug 2, 2021 at 10:30 PM Will Deacon wrote: > > On Fri, Jul 09, 2021 at 12:34:59PM +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 >

Re: [PATCH v2 1/4] dma-iommu: fix sync_sg with swiotlb

2021-08-02 Thread Will Deacon
On Fri, Jul 09, 2021 at 12:34:59PM +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 v2 1/4] dma-iommu: fix sync_sg with swiotlb

2021-07-08 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