[PATCH] drm/cma: Use dma_mmap_writecombine() to mmap buffer

2014-04-03 Thread Laurent Pinchart
Hi Dave, Could you please take this patch in your tree ? On Sunday 02 March 2014 20:09:48 Laurent Pinchart wrote: > The GEM CMA helpers uses a custom mmap implementation based on > remap_pfn_range(). While this works when the buffer DMA and physical > addresses are identical, it fails to take IOM

[PATCH] drm/cma: Use dma_mmap_writecombine() to mmap buffer

2014-03-07 Thread Philipp Zabel
On Sun, Mar 2, 2014 at 8:09 PM, Laurent Pinchart wrote: > The GEM CMA helpers uses a custom mmap implementation based on > remap_pfn_range(). While this works when the buffer DMA and physical > addresses are identical, it fails to take IOMMU into account and tries > to mmap the buffer to userspace

[PATCH] drm/cma: Use dma_mmap_writecombine() to mmap buffer

2014-03-02 Thread Laurent Pinchart
The GEM CMA helpers uses a custom mmap implementation based on remap_pfn_range(). While this works when the buffer DMA and physical addresses are identical, it fails to take IOMMU into account and tries to mmap the buffer to userspace using the DMA virtual address instead of the physical address. T