Re: [RESEND PATCH v2 v4.1-rc8 0/2] drm: prime: Allow exported dma-bufs to be mapped

2015-06-19 Thread Benjamin Gaignard
I'm far of being an expert in cache coherency but, from past experiences, I have notice that ION cache management give good performances and is simple to understand. ION mark as "dirty" the mapped pages in wm_fault function and check this flag while mapping the buffer in kernel space. If the flag

Re: [RESEND PATCH v2 v4.1-rc8 0/2] drm: prime: Allow exported dma-bufs to be mapped

2015-06-19 Thread Daniel Vetter
On Fri, Jun 19, 2015 at 02:52:27PM +0100, Daniel Thompson wrote: > This patch set started out as a single patch with a trivial bit of > boilerplate to add dmabuf mmap support to the msm driver. However Rob > Clark pointed out that, rather than keep one of the tricks I had used, it > would be better

[RESEND PATCH v2 v4.1-rc8 0/2] drm: prime: Allow exported dma-bufs to be mapped

2015-06-19 Thread Daniel Thompson
This patch set started out as a single patch with a trivial bit of boilerplate to add dmabuf mmap support to the msm driver. However Rob Clark pointed out that, rather than keep one of the tricks I had used, it would be better to change the helpers resulting in this series. I've tested this both w