Re: [PATCH 06/19] dma-iommu: fix and refactor iommu_dma_mmap

2019-02-11 Thread Christoph Hellwig
On Tue, Feb 05, 2019 at 03:02:23PM +, Robin Murphy wrote: > On 14/01/2019 09:41, Christoph Hellwig wrote: >> The current iommu_dma_mmap code does not properly handle memory from the >> page allocator that hasn't been remapped, which can happen in the rare >> case of allocations for a coherent

Re: [PATCH 06/19] dma-iommu: fix and refactor iommu_dma_mmap

2019-02-05 Thread Robin Murphy
On 14/01/2019 09:41, Christoph Hellwig wrote: The current iommu_dma_mmap code does not properly handle memory from the page allocator that hasn't been remapped, which can happen in the rare case of allocations for a coherent device that aren't allowed to block. Fix this by replacing

[PATCH 06/19] dma-iommu: fix and refactor iommu_dma_mmap

2019-01-14 Thread Christoph Hellwig
The current iommu_dma_mmap code does not properly handle memory from the page allocator that hasn't been remapped, which can happen in the rare case of allocations for a coherent device that aren't allowed to block. Fix this by replacing iommu_dma_mmap with a slightly tweaked copy of