[RFC] dma-buf: Implement test module

2014-07-11 Thread Sam Ravnborg
On Thu, Jul 10, 2014 at 11:55:26AM +0200, Thierry Reding wrote: > On Wed, Mar 26, 2014 at 09:32:47AM +0100, Thierry Reding wrote: > > On Tue, Mar 25, 2014 at 07:01:10PM +0100, Sam Ravnborg wrote: > > > > > > > > There are two things that don't work too well with this. First this > > > > causes

[RFC] dma-buf: Implement test module

2014-07-10 Thread Thierry Reding
On Wed, Mar 26, 2014 at 09:32:47AM +0100, Thierry Reding wrote: > On Tue, Mar 25, 2014 at 07:01:10PM +0100, Sam Ravnborg wrote: > > > > > > There are two things that don't work too well with this. First this > > > causes the build to break if the build machine doesn't have the new > > > public

[RFC] dma-buf: Implement test module

2014-03-26 Thread Thierry Reding
On Tue, Mar 25, 2014 at 07:01:10PM +0100, Sam Ravnborg wrote: > > > > There are two things that don't work too well with this. First this > > causes the build to break if the build machine doesn't have the new > > public header (include/uapi/linux/dma-buf.h) installed yet. So the only > > way to

[RFC] dma-buf: Implement test module

2014-03-25 Thread Sam Ravnborg
> > There are two things that don't work too well with this. First this > causes the build to break if the build machine doesn't have the new > public header (include/uapi/linux/dma-buf.h) installed yet. So the only > way to make this work would be by building the kernel once with SAMPLES >

[RFC] dma-buf: Implement test module

2014-03-25 Thread Thierry Reding
On Thu, Dec 12, 2013 at 06:02:58PM -0800, Greg Kroah-Hartman wrote: > On Thu, Dec 12, 2013 at 03:42:12PM +0100, Thierry Reding wrote: > > On Thu, Dec 12, 2013 at 03:36:29PM +0100, Thierry Reding wrote: > > > This is a simple test module that can be used to allocate, export and > > > delete DMA-BUF

[RFC] dma-buf: Implement test module

2013-12-14 Thread Daniel Vetter
On Sat, Dec 14, 2013 at 01:16:21PM +0100, Thierry Reding wrote: > On Thu, Dec 12, 2013 at 06:04:13PM -0800, Greg Kroah-Hartman wrote: > > On Thu, Dec 12, 2013 at 03:36:29PM +0100, Thierry Reding wrote: > > > This is a simple test module that can be used to allocate, export and > > > delete DMA-BUF

[RFC] dma-buf: Implement test module

2013-12-14 Thread Daniel Vetter
On Sat, Dec 14, 2013 at 1:37 PM, Thierry Reding wrote: > On Thu, Dec 12, 2013 at 11:30:23PM +0100, Daniel Vetter wrote: >> On Thu, Dec 12, 2013 at 8:34 PM, Thomas Hellstrom >> wrote: >> > On 12/12/2013 03:36 PM, Thierry Reding wrote: >> >> >> >> This is a simple test module that can be used to

[RFC] dma-buf: Implement test module

2013-12-14 Thread Thomas Hellstrom
On 12/14/2013 02:02 PM, Rob Clark wrote: > On Sat, Dec 14, 2013 at 7:47 AM, Thomas Hellstrom > wrote: >> On 12/14/2013 01:37 PM, Thierry Reding wrote: >>> On Thu, Dec 12, 2013 at 11:30:23PM +0100, Daniel Vetter wrote: On Thu, Dec 12, 2013 at 8:34 PM, Thomas Hellstrom >>> vmware.com>

[RFC] dma-buf: Implement test module

2013-12-14 Thread Thomas Hellstrom
On 12/14/2013 01:37 PM, Thierry Reding wrote: > On Thu, Dec 12, 2013 at 11:30:23PM +0100, Daniel Vetter wrote: >> On Thu, Dec 12, 2013 at 8:34 PM, Thomas Hellstrom >> wrote: >>> On 12/12/2013 03:36 PM, Thierry Reding wrote: This is a simple test module that can be used to allocate, export

[RFC] dma-buf: Implement test module

2013-12-14 Thread Thierry Reding
On Thu, Dec 12, 2013 at 08:34:28PM +0100, Thomas Hellstrom wrote: > On 12/12/2013 03:36 PM, Thierry Reding wrote: > >This is a simple test module that can be used to allocate, export and > >delete DMA-BUF objects. It can be used to test DMA-BUF sharing in > >systems that lack a real second driver.

[RFC] dma-buf: Implement test module

2013-12-14 Thread Thierry Reding
On Thu, Dec 12, 2013 at 11:30:23PM +0100, Daniel Vetter wrote: > On Thu, Dec 12, 2013 at 8:34 PM, Thomas Hellstrom > wrote: > > On 12/12/2013 03:36 PM, Thierry Reding wrote: > >> > >> This is a simple test module that can be used to allocate, export and > >> delete DMA-BUF objects. It can be

[RFC] dma-buf: Implement test module

2013-12-14 Thread Thierry Reding
On Thu, Dec 12, 2013 at 06:02:58PM -0800, Greg Kroah-Hartman wrote: > On Thu, Dec 12, 2013 at 03:42:12PM +0100, Thierry Reding wrote: > > On Thu, Dec 12, 2013 at 03:36:29PM +0100, Thierry Reding wrote: > > > This is a simple test module that can be used to allocate, export and > > > delete DMA-BUF

[RFC] dma-buf: Implement test module

2013-12-14 Thread Thierry Reding
On Thu, Dec 12, 2013 at 06:04:13PM -0800, Greg Kroah-Hartman wrote: > On Thu, Dec 12, 2013 at 03:36:29PM +0100, Thierry Reding wrote: > > This is a simple test module that can be used to allocate, export and > > delete DMA-BUF objects. It can be used to test DMA-BUF sharing in > > systems that

[RFC] dma-buf: Implement test module

2013-12-14 Thread Greg Kroah-Hartman
On Sat, Dec 14, 2013 at 01:16:21PM +0100, Thierry Reding wrote: > On Thu, Dec 12, 2013 at 06:04:13PM -0800, Greg Kroah-Hartman wrote: > > On Thu, Dec 12, 2013 at 03:36:29PM +0100, Thierry Reding wrote: > > > This is a simple test module that can be used to allocate, export and > > > delete DMA-BUF

[RFC] dma-buf: Implement test module

2013-12-14 Thread Rob Clark
On Sat, Dec 14, 2013 at 7:47 AM, Thomas Hellstrom wrote: > On 12/14/2013 01:37 PM, Thierry Reding wrote: >> >> On Thu, Dec 12, 2013 at 11:30:23PM +0100, Daniel Vetter wrote: >>> >>> On Thu, Dec 12, 2013 at 8:34 PM, Thomas Hellstrom >>> wrote: On 12/12/2013 03:36 PM, Thierry Reding

[RFC] dma-buf: Implement test module

2013-12-12 Thread Daniel Vetter
On Thu, Dec 12, 2013 at 8:34 PM, Thomas Hellstrom wrote: > On 12/12/2013 03:36 PM, Thierry Reding wrote: >> >> This is a simple test module that can be used to allocate, export and >> delete DMA-BUF objects. It can be used to test DMA-BUF sharing in >> systems that lack a real second driver. >>

[RFC] dma-buf: Implement test module

2013-12-12 Thread Thomas Hellstrom
On 12/12/2013 03:36 PM, Thierry Reding wrote: > This is a simple test module that can be used to allocate, export and > delete DMA-BUF objects. It can be used to test DMA-BUF sharing in > systems that lack a real second driver. > > Looks nice. I wonder whether this could be extended to create a

[RFC] dma-buf: Implement test module

2013-12-12 Thread Greg Kroah-Hartman
On Thu, Dec 12, 2013 at 03:36:29PM +0100, Thierry Reding wrote: > This is a simple test module that can be used to allocate, export and > delete DMA-BUF objects. It can be used to test DMA-BUF sharing in > systems that lack a real second driver. > > Signed-off-by: Thierry Reding > --- >

[RFC] dma-buf: Implement test module

2013-12-12 Thread Greg Kroah-Hartman
On Thu, Dec 12, 2013 at 03:42:12PM +0100, Thierry Reding wrote: > On Thu, Dec 12, 2013 at 03:36:29PM +0100, Thierry Reding wrote: > > This is a simple test module that can be used to allocate, export and > > delete DMA-BUF objects. It can be used to test DMA-BUF sharing in > > systems that lack a

[RFC] dma-buf: Implement test module

2013-12-12 Thread Thierry Reding
On Thu, Dec 12, 2013 at 03:53:05PM +0100, Daniel Vetter wrote: > On Thu, Dec 12, 2013 at 03:36:29PM +0100, Thierry Reding wrote: [...] > > diff --git a/drivers/base/dma-buf-test.c b/drivers/base/dma-buf-test.c [...] > > +struct dmabuf_create { > > + __u32 flags; > > + __u32 size; > > +}; > > +

[RFC] dma-buf: Implement test module

2013-12-12 Thread Daniel Vetter
On Thu, Dec 12, 2013 at 03:36:29PM +0100, Thierry Reding wrote: > This is a simple test module that can be used to allocate, export and > delete DMA-BUF objects. It can be used to test DMA-BUF sharing in > systems that lack a real second driver. > > Signed-off-by: Thierry Reding > --- >

[RFC] dma-buf: Implement test module

2013-12-12 Thread Thierry Reding
On Thu, Dec 12, 2013 at 03:36:29PM +0100, Thierry Reding wrote: > This is a simple test module that can be used to allocate, export and > delete DMA-BUF objects. It can be used to test DMA-BUF sharing in > systems that lack a real second driver. > > Signed-off-by: Thierry Reding > --- >

[RFC] dma-buf: Implement test module

2013-12-12 Thread Thierry Reding
This is a simple test module that can be used to allocate, export and delete DMA-BUF objects. It can be used to test DMA-BUF sharing in systems that lack a real second driver. Signed-off-by: Thierry Reding --- drivers/base/Kconfig| 4 + drivers/base/Makefile | 1 +