Re: [PATCH v6 7/7] dma-iommu: account for min_align_mask

2021-08-19 Thread David Stevens
On Thu, Aug 19, 2021 at 6:03 PM Robin Murphy wrote: > > On 2021-08-17 02:38, David Stevens wrote: > > From: David Stevens > > > > For devices which set min_align_mask, swiotlb preserves the offset of > > the original physical address within that mask. Since __iommu_dma_map > > accounts for

Re: [PATCH v6 7/7] dma-iommu: account for min_align_mask

2021-08-19 Thread Robin Murphy
On 2021-08-17 02:38, David Stevens wrote: From: David Stevens For devices which set min_align_mask, swiotlb preserves the offset of the original physical address within that mask. Since __iommu_dma_map accounts for non-aligned addresses, passing a non-aligned swiotlb address with the swiotlb

[PATCH v6 7/7] dma-iommu: account for min_align_mask

2021-08-16 Thread David Stevens
From: David Stevens For devices which set min_align_mask, swiotlb preserves the offset of the original physical address within that mask. Since __iommu_dma_map accounts for non-aligned addresses, passing a non-aligned swiotlb address with the swiotlb aligned size results in the offset being