[PATCH v9] dma-buf: Add ioctls to allow userspace to flush

2016-03-15 Thread Chris Wilson
On Mon, Mar 14, 2016 at 05:21:10PM -0300, Tiago Vignatti wrote: > On 03/05/2016 06:34 AM, Daniel Vetter wrote: > >On Mon, Feb 29, 2016 at 03:02:09PM +, Chris Wilson wrote: > >>On Mon, Feb 29, 2016 at 03:54:19PM +0100, Daniel Vetter wrote: > >>>On Thu, Feb 25, 2016 at 06:01:22PM +, Chris

[PATCH v9] dma-buf: Add ioctls to allow userspace to flush

2016-03-14 Thread Tiago Vignatti
On 03/05/2016 06:34 AM, Daniel Vetter wrote: > On Mon, Feb 29, 2016 at 03:02:09PM +, Chris Wilson wrote: >> On Mon, Feb 29, 2016 at 03:54:19PM +0100, Daniel Vetter wrote: >>> On Thu, Feb 25, 2016 at 06:01:22PM +, Chris Wilson wrote: On Thu, Feb 11, 2016 at 08:04:51PM -0200, Tiago

[PATCH v9] dma-buf: Add ioctls to allow userspace to flush

2016-03-05 Thread Daniel Vetter
On Mon, Feb 29, 2016 at 03:02:09PM +, Chris Wilson wrote: > On Mon, Feb 29, 2016 at 03:54:19PM +0100, Daniel Vetter wrote: > > On Thu, Feb 25, 2016 at 06:01:22PM +, Chris Wilson wrote: > > > On Thu, Feb 11, 2016 at 08:04:51PM -0200, Tiago Vignatti wrote: > > > > +static long

[PATCH v9] dma-buf: Add ioctls to allow userspace to flush

2016-02-29 Thread Daniel Vetter
On Thu, Feb 25, 2016 at 06:01:22PM +, Chris Wilson wrote: > On Thu, Feb 11, 2016 at 08:04:51PM -0200, Tiago Vignatti wrote: > > +static long dma_buf_ioctl(struct file *file, > > + unsigned int cmd, unsigned long arg) > > +{ > > + struct dma_buf *dmabuf; > > + struct

[PATCH v9] dma-buf: Add ioctls to allow userspace to flush

2016-02-29 Thread Chris Wilson
On Mon, Feb 29, 2016 at 03:54:19PM +0100, Daniel Vetter wrote: > On Thu, Feb 25, 2016 at 06:01:22PM +, Chris Wilson wrote: > > On Thu, Feb 11, 2016 at 08:04:51PM -0200, Tiago Vignatti wrote: > > > +static long dma_buf_ioctl(struct file *file, > > > + unsigned int cmd,

[PATCH v9] dma-buf: Add ioctls to allow userspace to flush

2016-02-25 Thread Chris Wilson
On Thu, Feb 11, 2016 at 08:04:51PM -0200, Tiago Vignatti wrote: > +static long dma_buf_ioctl(struct file *file, > + unsigned int cmd, unsigned long arg) > +{ > + struct dma_buf *dmabuf; > + struct dma_buf_sync sync; > + enum dma_data_direction direction; > + > +

[PATCH v9] dma-buf: Add ioctls to allow userspace to flush

2016-02-12 Thread Daniel Vetter
On Fri, Feb 12, 2016 at 03:50:02PM +0100, David Herrmann wrote: > Hi > > On Thu, Feb 11, 2016 at 11:04 PM, Tiago Vignatti > wrote: > > From: Daniel Vetter > > > > The userspace might need some sort of cache coherency management e.g. when > > CPU > > and GPU domains are being accessed through

[PATCH v9] dma-buf: Add ioctls to allow userspace to flush

2016-02-12 Thread David Herrmann
Hi On Thu, Feb 11, 2016 at 11:04 PM, Tiago Vignatti wrote: > From: Daniel Vetter > > The userspace might need some sort of cache coherency management e.g. when CPU > and GPU domains are being accessed through dma-buf at the same time. To > circumvent this problem there are begin/end coherency

[PATCH v9] dma-buf: Add ioctls to allow userspace to flush

2016-02-11 Thread Tiago Vignatti
From: Daniel Vetter The userspace might need some sort of cache coherency management e.g. when CPU and GPU domains are being accessed through dma-buf at the same time. To circumvent this problem there are begin/end coherency markers, that forward directly to existing