Re: [Linaro-mm-sig] [PATCHv6 00/13] Integration of videobuf2 with dmabuf

2012-06-04 Thread Rebecca Schultz Zavin
I have a system where the data is planar, but the kernel drivers expect to get one allocation with offsets for the planes. I can't figure out how to do that with the current dma_buf implementation. I thought I could pass the same dma_buf several times and use the data_offset field of the

Re: [Linaro-mm-sig] [PATCHv6 00/13] Integration of videobuf2 with dmabuf

2012-06-04 Thread Rebecca Schultz Zavin
On Tue, Jun 5, 2012 at 3:34 AM, Rebecca Schultz Zavin rebe...@android.com wrote: I have a system where the data is planar, but the kernel drivers expect to get one allocation with offsets for the planes.  I can't figure out how to do that with the current dma_buf implementation.  I thought I

Re: [Linaro-mm-sig] [PATCHv6 00/13] Integration of videobuf2 with dmabuf

2012-06-04 Thread Rebecca Schultz Zavin
Also the data_offset field (and bytes_used field) only get copied from the v4l2_buffer into the vb2_buffer struct if the buffer is an output buffer. Rebecca On Mon, Jun 4, 2012 at 1:46 PM, Rebecca Schultz Zavin rebe...@android.com wrote: I'm trying to do it in my drivier, but I'm not sure how

Re: [Linaro-mm-sig] [PATCHv6 00/13] Integration of videobuf2 with dmabuf

2012-06-04 Thread Rebecca Schultz Zavin
into the same buffer, to use dma_buf. Looks like I need to dig a bit deeper. Thanks, Rebecca On Mon, Jun 4, 2012 at 2:58 PM, Hans Verkuil hverk...@xs4all.nl wrote: Hi Rebecca, On Mon June 4 2012 21:34:23 Rebecca Schultz Zavin wrote: I have a system where the data is planar, but the kernel

Re: [PATCH] dma-buf: mmap support

2012-04-23 Thread Rebecca Schultz Zavin
 that need to manually fake coherency. Cc: Rob Clark rob.cl...@linaro.org Cc: Rebecca Schultz Zavin rebe...@android.com Signed-Off-by: Daniel Vetter daniel.vet...@ffwll.ch ---  Documentation/dma-buf-sharing.txt |   98 ++---  drivers/base/dma-buf.c

Re: [Linaro-mm-sig] [PATCH] [RFC] dma-buf: mmap support

2012-03-21 Thread Rebecca Schultz Zavin
On Wed, Mar 21, 2012 at 8:45 AM, Rob Clark rob.cl...@linaro.org wrote: On Tue, Mar 20, 2012 at 3:53 PM, Daniel Vetter daniel.vet...@ffwll.ch wrote: Let's have some competition here for dma_buf mmap support ;-) Compared to Rob Clarke's RFC I've ditched the prepare/finish hooks and

Re: [Linaro-mm-sig] [PATCH] [RFC] dma-buf: mmap support

2012-03-21 Thread Rebecca Schultz Zavin
On Wed, Mar 21, 2012 at 3:25 PM, Daniel Vetter dan...@ffwll.ch wrote: On Wed, Mar 21, 2012 at 10:46:14AM -0700, Rebecca Schultz Zavin wrote: I want to make sure I understand how this would work.  I've been planning on making cache maintenance implicit, and most of the corresponding userspace