[PATCH 2/2] ARM: DMA: Use vm_pgoff for IOMMU mmap

2015-04-20 Thread Daniel Kurtz
Hi Ørjan, On Thu, Apr 16, 2015 at 10:41 PM, Ørjan Eide wrote: > arm_iommu_mmap_attrs() ignores the page offset in vma->vm_pgoff that was > specified in the mmap call. Any user of dma_mmap_* will get an > unexpected result when the device uses the IOMMU DMA ops. > > Some DRM driver that use

[PATCH 2/2] ARM: DMA: Use vm_pgoff for IOMMU mmap

2015-04-16 Thread Ørjan Eide
arm_iommu_mmap_attrs() ignores the page offset in vma->vm_pgoff that was specified in the mmap call. Any user of dma_mmap_* will get an unexpected result when the device uses the IOMMU DMA ops. Some DRM driver that use dma_mmap_* seems to depend on it ignoring vma->vm_pgoff. Both the Samsung