[PATCH 06/12] v4l: vb2-dma-contig: add vmap/kmap for dmabuf exporting

2012-05-23 Thread Tomasz Stanislawski
This patch adds support for vmap and kmap callbacks for DMABUF exporter. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/media/video/videobuf2-dma

[PATCH 04/12] v4l: vb2-dma-contig: add setup of sglist for MMAP buffers

2012-05-23 Thread Tomasz Stanislawski
This patch adds the setup of sglist list for MMAP buffers. It is needed for buffer exporting via DMABUF mechanism. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 70 +++- 1 file changed, 68 insertions

[PATCH 09/12] v4l: s5p-mfc: support for dmabuf exporting

2012-05-23 Thread Tomasz Stanislawski
This patch enhances s5p-mfc with support for DMABUF exporting via VIDIOC_EXPBUF ioctl. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park CC: Kamil Debski --- drivers/media/video/s5p-mfc/s5p_mfc_dec.c | 13 + drivers/media/video/s5p-mfc/s5p_mfc_enc.c | 13

[PATCH 01/12] v4l: vb2-dma-contig: let mmap method to use dma_mmap_coherent call

2012-05-23 Thread Tomasz Stanislawski
From: Marek Szyprowski Let mmap method to use dma_mmap_coherent call. This patch depends on DMA mapping redesign patches because the usage of dma_mmap_coherent breaks dma-contig allocator for architectures other than ARM and AVR. Signed-off-by: Marek Szyprowski --- drivers/media/video/videobu

[PATCH 12/12] v4l: vb2-dma-contig: Move allocation of dbuf attachment to attach cb

2012-05-23 Thread Tomasz Stanislawski
The allocation of dma_buf_attachment is moved to attach callback. The initialization is left in map callback. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 39 ++-- 1 file changed, 26 insertions(+), 13

[PATCH 10/12] v4l: vb2: remove vb2_mmap_pfn_range function

2012-05-23 Thread Tomasz Stanislawski
This patch removes vb2_mmap_pfn_range from videobuf2 helpers. The function is no longer used in vb2 code. Suggested-by: Laurent Pinchart Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-memops.c | 40 include

[PATCH 03/12] v4l: vb2: add buffer exporting via dmabuf

2012-05-23 Thread Tomasz Stanislawski
This patch adds extension to videobuf2-core. It allow to export a mmap buffer as a file descriptor. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-core.c | 67 ++ include/media/videobuf2-core.h |2

[PATCH 07/12] v4l: s5p-fimc: support for dmabuf exporting

2012-05-23 Thread Tomasz Stanislawski
This patch enhances s5p-fimc with support for DMABUF exporting via VIDIOC_EXPBUF ioctl. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-fimc/fimc-capture.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/media/video/s5p-fimc

[PATCH 00/12] Support for dmabuf exporting for videobuf2

2012-05-23 Thread Tomasz Stanislawski
on 3.4-rc1 plus the following patchsets: Marek Szyprowski (1): v4l: vb2-dma-contig: let mmap method to use dma_mmap_coherent call Tomasz Stanislawski (11): v4l: add buffer exporting via dmabuf v4l: vb2: add buffer exporting via dmabuf v4l: vb2-dma-contig: add setup of sglist for MMAP buffers

[PATCHv6 01/13] v4l: Add DMABUF as a memory type

2012-05-23 Thread Tomasz Stanislawski
From: Sumit Semwal Adds DMABUF memory type to v4l framework. Also adds the related file descriptor in v4l2_plane and v4l2_buffer. Signed-off-by: Tomasz Stanislawski [original work in the PoC for buffer sharing] Signed-off-by: Sumit Semwal Signed-off-by: Sumit Semwal Acked-by: Laurent

[PATCHv6 02/13] Documentation: media: description of DMABUF importing in V4L2

2012-05-23 Thread Tomasz Stanislawski
This patch adds description and usage examples for importing DMABUF file descriptor in V4L2. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park CC: linux-...@vger.kernel.org --- Documentation/DocBook/media/v4l/compat.xml |4 + Documentation/DocBook/media/v4l/io.xml

[PATCHv6 03/13] v4l: vb2: add support for shared buffer (dma_buf)

2012-05-23 Thread Tomasz Stanislawski
sample allocator of dma-buf shared buffer is given at [1]] [1]: Rob Clark's DRM: https://github.com/robclark/kernel-omap4/commits/drmplane-dmabuf Signed-off-by: Tomasz Stanislawski [original work in the PoC for buffer sharing] Signed-off-by: Sumit Semwal Signed-off-by: Sumit Semwal

[PATCHv6 12/13] v4l: s5p-tv: mixer: support for dmabuf importing

2012-05-23 Thread Tomasz Stanislawski
This patch enhances s5p-tv with support for DMABUF importing via V4L2_MEMORY_DMABUF memory type. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/Kconfig |1 + drivers/media/video/s5p-tv/mixer_video.c |2 +- 2 files changed, 2

[PATCHv6 10/13] v4l: vb2-dma-contig: add prepare/finish to dma-contig allocator

2012-05-23 Thread Tomasz Stanislawski
From: Marek Szyprowski Add prepare/finish callbacks to vb2-dma-contig allocator. Signed-off-by: Marek Szyprowski --- drivers/media/video/videobuf2-dma-contig.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/

[PATCHv6 13/13] v4l: s5p-fimc: support for dmabuf importing

2012-05-23 Thread Tomasz Stanislawski
This patch enhances s5p-fimc with support for DMABUF importing via V4L2_MEMORY_DMABUF memory type. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park Acked-by: Sylwester Nawrocki --- drivers/media/video/s5p-fimc/Kconfig|1 + drivers/media/video/s5p-fimc/fimc-capture.c

[PATCHv6 07/13] v4l: vb2-dma-contig: Reorder functions

2012-05-23 Thread Tomasz Stanislawski
From: Laurent Pinchart Group functions by buffer type. Signed-off-by: Laurent Pinchart --- drivers/media/video/videobuf2-dma-contig.c | 92 1 file changed, 54 insertions(+), 38 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/media

[PATCHv6 08/13] v4l: vb2-dma-contig: add support for scatterlist in userptr mode

2012-05-23 Thread Tomasz Stanislawski
Seung-Woo Kim . Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park Acked-by: Laurent Pinchart --- drivers/media/video/videobuf2-dma-contig.c | 268 ++-- 1 file changed, 252 insertions(+), 16 deletions(-) diff --git a/drivers/media/video/videobuf2-dma

[PATCHv6 11/13] v4l: vb2-dma-contig: add support for dma_buf importing

2012-05-23 Thread Tomasz Stanislawski
] Signed-off-by: Tomasz Stanislawski [integration with refactored dma-contig allocator] Acked-by: Laurent Pinchart --- drivers/media/video/videobuf2-dma-contig.c | 119 +++- 1 file changed, 117 insertions(+), 2 deletions(-) diff --git a/drivers/media/video

[PATCHv6 09/13] v4l: vb2: add prepare/finish callbacks to allocators

2012-05-23 Thread Tomasz Stanislawski
From: Marek Szyprowski This patch adds support for prepare/finish callbacks in VB2 allocators. These callback are used for buffer flushing. Signed-off-by: Marek Szyprowski Acked-by: Laurent Pinchart --- drivers/media/video/videobuf2-core.c | 11 +++ include/media/videobuf2-core.h

[PATCHv6 06/13] v4l: vb2-dma-contig: Remove unneeded allocation context structure

2012-05-23 Thread Tomasz Stanislawski
vb2-dma-contig returns a vb2_dc_conf structure instance as the vb2 allocation context. That structure only stores a pointer to the physical device. Remove it and use the device pointer directly as the allocation context. Signed-off-by: Tomasz Stanislawski Acked-by: Laurent Pinchart --- drivers

[PATCHv6 05/13] v4l: vb2-dma-contig: Shorten vb2_dma_contig prefix to vb2_dc

2012-05-23 Thread Tomasz Stanislawski
From: Laurent Pinchart Signed-off-by: Laurent Pinchart --- drivers/media/video/videobuf2-dma-contig.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/media/video/videobuf2-dma-contig.c ind

[PATCHv6 04/13] v4l: vb: remove warnings about MEMORY_DMABUF

2012-05-23 Thread Tomasz Stanislawski
From: Sumit Semwal Adding DMABUF memory type causes videobuf to complain about not using it in some switch cases. This patch removes these warnings. Signed-off-by: Sumit Semwal Acked-by: Laurent Pinchart --- drivers/media/video/videobuf-core.c |4 1 file changed, 4 insertions(+) dif

[PATCHv6 00/13] Integration of videobuf2 with dmabuf

2012-05-23 Thread Tomasz Stanislawski
ort for shared buffer (dma_buf) v4l: vb: remove warnings about MEMORY_DMABUF v4l: vb2-dma-contig: add support for dma_buf importing Tomasz Stanislawski (5): Documentation: media: description of DMABUF importing in V4L2 v4l: vb2-dma-contig: Remove unneeded allocation context structure v4

Re: [PATCH] dma-buf: add get_dma_buf()

2012-05-22 Thread Tomasz Stanislawski
On 05/22/2012 04:32 PM, Daniel Vetter wrote: > On Tue, May 22, 2012 at 03:47:12PM +0200, Tomasz Stanislawski wrote: >> Hi, >> I think I discovered an interesting issue with dma_buf. >> I found out that dma_buf_fd does not increase reference >> count for dma_buf::fi

Re: [PATCH] dma-buf: add get_dma_buf()

2012-05-22 Thread Tomasz Stanislawski
reference count at dma_buf_fd I prefer solution (b) because it prevents symmetry between dma_buf_fd and close. I mean that dma_buf_fd increases reference count, close decreases it. What is your opinion about the issue? Regards, Tomasz Stanislawski On 03/16/2012 05:04 PM, Rob Clark wrote: &

Re: [RFC 05/13] v4l: vb2-dma-contig: add support for DMABUF exporting

2012-05-22 Thread Tomasz Stanislawski
of dma_buf pointer. The new dma_buf would be created and exported at every export event. The dma_buf_put would be called in vb2_expbuf just after successful dma_buf_fd. Do you have any ideas how I could deal with resource leakage/dangling problems without creating a new dma_buf instance at every expo

Re: [PATCH v3] scatterlist: add sg_alloc_table_from_pages function

2012-05-21 Thread Tomasz Stanislawski
Hi Andrew, Thank you for your review, Please refer to the comments below. On 05/18/2012 01:56 AM, Andrew Morton wrote: > On Tue, 08 May 2012 11:50:33 +0200 > Tomasz Stanislawski wrote: > >> This patch adds a new constructor for an sg table. The table is constructed >> fr

Re: [PATCHv5 08/13] v4l: vb2-dma-contig: add support for scatterlist in userptr mode

2012-05-09 Thread Tomasz Stanislawski
arguments that causes the failure? I mean pages array + size (I assume that offset is zero for your test). Having the arguments we could reproduce that bug. Regards, Tomasz Stanislawski On 05/09/2012 08:46 AM, Subash Patel wrote: > Hello Tomasz, Laurent, > > I have printed some log

[PATCH v3] scatterlist: add sg_alloc_table_from_pages function

2012-05-08 Thread Tomasz Stanislawski
st in userptr mode' and hints from Laurent Pinchart. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- include/linux/scatterlist.h |4 +++ lib/scatterlist.c | 64 +++ 2 files changed, 68 insertions(+), 0 deletions(-) di

Re: [PATCHv5 08/13] v4l: vb2-dma-contig: add support for scatterlist in userptr mode

2012-05-07 Thread Tomasz Stanislawski
Hi Subash, Could you provide a detailed description of a test case that causes a failure of vb2_dc_pages_to_sgt? Regards, Tomasz Stanislawski -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordo

[PATCH v2] scatterlist: add sg_alloc_table_from_pages function

2012-04-24 Thread Tomasz Stanislawski
st in userptr mode' and hints from Laurent Pinchart. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- include/linux/scatterlist.h |4 +++ lib/scatterlist.c | 63 +++ 2 files changed, 67 insertions(+), 0 deletions(-) di

[PATCHv5 01/13] v4l: Add DMABUF as a memory type

2012-04-20 Thread Tomasz Stanislawski
From: Sumit Semwal Adds DMABUF memory type to v4l framework. Also adds the related file descriptor in v4l2_plane and v4l2_buffer. Signed-off-by: Tomasz Stanislawski [original work in the PoC for buffer sharing] Signed-off-by: Sumit Semwal Signed-off-by: Sumit Semwal Acked-by: Laurent

[PATCHv5 00/13] Integration of videobuf2 with dmabuf

2012-04-20 Thread Tomasz Stanislawski
dd prepare/finish callbacks to allocators v4l: vb2-dma-contig: add prepare/finish to dma-contig allocator Sumit Semwal (4): v4l: Add DMABUF as a memory type v4l: vb2: add support for shared buffer (dma_buf) v4l: vb: remove warnings about MEMORY_DMABUF v4l: vb2-dma-contig: add support for dma_buf

[PATCHv5 09/13] v4l: vb2: add prepare/finish callbacks to allocators

2012-04-20 Thread Tomasz Stanislawski
From: Marek Szyprowski This patch adds support for prepare/finish callbacks in VB2 allocators. These callback are used for buffer flushing. Signed-off-by: Marek Szyprowski Acked-by: Laurent Pinchart --- drivers/media/video/videobuf2-core.c | 11 +++ include/media/videobuf2-core.h

[PATCHv5 04/13] v4l: vb: remove warnings about MEMORY_DMABUF

2012-04-20 Thread Tomasz Stanislawski
From: Sumit Semwal Adding DMABUF memory type causes videobuf to complain about not using it in some switch cases. This patch removes these warnings. Signed-off-by: Sumit Semwal Acked-by: Laurent Pinchart --- drivers/media/video/videobuf-core.c |4 1 files changed, 4 insertions(+), 0

[PATCHv5 10/13] v4l: vb2-dma-contig: add prepare/finish to dma-contig allocator

2012-04-20 Thread Tomasz Stanislawski
From: Marek Szyprowski Add prepare/finish callbacks to vb2-dma-contig allocator. Signed-off-by: Marek Szyprowski --- drivers/media/video/videobuf2-dma-contig.c | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-con

[PATCHv5 03/13] v4l: vb2: add support for shared buffer (dma_buf)

2012-04-20 Thread Tomasz Stanislawski
sample allocator of dma-buf shared buffer is given at [1]] [1]: Rob Clark's DRM: https://github.com/robclark/kernel-omap4/commits/drmplane-dmabuf Signed-off-by: Tomasz Stanislawski [original work in the PoC for buffer sharing] Signed-off-by: Sumit Semwal Signed-off-by: Sumit Semwal

[PATCHv5 06/13] v4l: vb2-dma-contig: Remove unneeded allocation context structure

2012-04-20 Thread Tomasz Stanislawski
vb2-dma-contig returns a vb2_dc_conf structure instance as the vb2 allocation context. That structure only stores a pointer to the physical device. Remove it and use the device pointer directly as the allocation context. Signed-off-by: Tomasz Stanislawski Acked-by: Laurent Pinchart --- drivers

[PATCHv5 02/13] Documentation: media: description of DMABUF importing in V4L2

2012-04-20 Thread Tomasz Stanislawski
This patch adds description and usage examples for importing DMABUF file descriptor in V4L2. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- Documentation/DocBook/media/v4l/compat.xml |4 + Documentation/DocBook/media/v4l/io.xml | 179

[PATCHv5 11/13] v4l: vb2-dma-contig: add support for dma_buf importing

2012-04-20 Thread Tomasz Stanislawski
] Signed-off-by: Tomasz Stanislawski [integration with refactored dma-contig allocator] Acked-by: Laurent Pinchart --- drivers/media/video/videobuf2-dma-contig.c | 113 1 files changed, 113 insertions(+), 0 deletions(-) diff --git a/drivers/media/video

[PATCHv5 08/13] v4l: vb2-dma-contig: add support for scatterlist in userptr mode

2012-04-20 Thread Tomasz Stanislawski
] Signed-off-by: Tomasz Stanislawski [add sglist subroutines/code refactoring] Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 279 ++-- 1 files changed, 262 insertions(+), 17 deletions(-) diff --git a/drivers/media/video/videobuf2-dma

[PATCHv5 07/13] v4l: vb2-dma-contig: Reorder functions

2012-04-20 Thread Tomasz Stanislawski
From: Laurent Pinchart Group functions by buffer type. Signed-off-by: Laurent Pinchart --- drivers/media/video/videobuf2-dma-contig.c | 92 --- 1 files changed, 54 insertions(+), 38 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/media

[PATCHv5 13/13] v4l: s5p-fimc: support for dmabuf importing

2012-04-20 Thread Tomasz Stanislawski
This patch enhances s5p-fimc with support for DMABUF importing via V4L2_MEMORY_DMABUF memory type. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park Acked-by: Sylwester Nawrocki --- drivers/media/video/Kconfig |1 + drivers/media/video/s5p-fimc/fimc-capture.c

[PATCHv5 05/13] v4l: vb2-dma-contig: Shorten vb2_dma_contig prefix to vb2_dc

2012-04-20 Thread Tomasz Stanislawski
From: Laurent Pinchart Signed-off-by: Laurent Pinchart --- drivers/media/video/videobuf2-dma-contig.c | 36 ++-- 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/media/video/videobuf2-dma-contig.c in

[PATCHv5 12/13] v4l: s5p-tv: mixer: support for dmabuf importing

2012-04-20 Thread Tomasz Stanislawski
This patch enhances s5p-tv with support for DMABUF importing via V4L2_MEMORY_DMABUF memory type. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/Kconfig |1 + drivers/media/video/s5p-tv/mixer_video.c |2 +- 2 files changed, 2

[PATCHv5 01/13] v4l: Add DMABUF as a memory type

2012-04-20 Thread Tomasz Stanislawski
From: Sumit Semwal Adds DMABUF memory type to v4l framework. Also adds the related file descriptor in v4l2_plane and v4l2_buffer. Signed-off-by: Tomasz Stanislawski [original work in the PoC for buffer sharing] Signed-off-by: Sumit Semwal Signed-off-by: Sumit Semwal Acked-by: Laurent

[PATCHv5 00/13] Integration of videobuf2 with dmabuf

2012-04-20 Thread Tomasz Stanislawski
dd prepare/finish callbacks to allocators v4l: vb2-dma-contig: add prepare/finish to dma-contig allocator Sumit Semwal (4): v4l: Add DMABUF as a memory type v4l: vb2: add support for shared buffer (dma_buf) v4l: vb: remove warnings about MEMORY_DMABUF v4l: vb2-dma-contig: add support for dma_buf

Re: [PATCH v4 02/14] Documentation: media: description of DMABUF importing in V4L2

2012-04-20 Thread Tomasz Stanislawski
Hi Remi, On 04/20/2012 12:56 PM, Rémi Denis-Courmont wrote: > On Fri, 20 Apr 2012 10:41:37 +0200, Tomasz Stanislawski > wrote: >>> Am I understanding wrong or are you saying that you want to drop > userptr >>> from V4L2 API in long-term? If so, why? >>

Re: [PATCH v4 08/14] v4l: vb2-dma-contig: add support for scatterlist in userptr mode

2012-04-20 Thread Tomasz Stanislawski
Hi Laurent, On 04/17/2012 02:43 AM, Laurent Pinchart wrote: > Hi Tomasz, > > Thanks for the patch. > > On Friday 13 April 2012 17:47:50 Tomasz Stanislawski wrote: >> From: Andrzej Pietrasiewicz >> >> This patch introduces usage of dma_map_sg to map memory b

Re: [PATCH v4 02/14] Documentation: media: description of DMABUF importing in V4L2

2012-04-20 Thread Tomasz Stanislawski
Hi Mauro, On 04/19/2012 10:37 PM, Mauro Carvalho Chehab wrote: > Em 19-04-2012 11:32, Tomasz Stanislawski escreveu: > >> Hi Laurent, >> >> One may find similar sentences in MMAP, USERPTR and DMABUF. >> Maybe the common parts like description of STREAMON/OFF, >

Re: [PATCH v4 02/14] Documentation: media: description of DMABUF importing in V4L2

2012-04-19 Thread Tomasz Stanislawski
On 04/17/2012 01:25 AM, Laurent Pinchart wrote: > Hi Tomasz, > > Thanks for the patch. > > On Friday 13 April 2012 17:47:44 Tomasz Stanislawski wrote: >> This patch adds description and usage examples for importing >> DMABUF file descriptor in V4L2. >> >

Re: [PATCH v4 11/14] v4l: vb2-dma-contig: add support for dma_buf importing

2012-04-19 Thread Tomasz Stanislawski
Hi Laurent, On 04/17/2012 02:57 AM, Laurent Pinchart wrote: > Hi Tomasz, > > Thanks for the patch. > > On Friday 13 April 2012 17:47:53 Tomasz Stanislawski wrote: >> From: Sumit Semwal >> >> This patch makes changes for adding dma-contig as a dma_

Re: [RFC 05/13] v4l: vb2-dma-contig: add support for DMABUF exporting

2012-04-19 Thread Tomasz Stanislawski
Hi Laurent, Thank you for your review. Please refer to the comments below. On 04/17/2012 04:08 PM, Laurent Pinchart wrote: > Hi Tomasz, > > Thanks for the patch. > > On Tuesday 10 April 2012 15:10:39 Tomasz Stanislawski wrote: >> This patch adds support for exporting a dm

[PATCH] scatterlist: add sg_alloc_table_by_pages function

2012-04-18 Thread Tomasz Stanislawski
' and hints from Laurent Pinchart. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- include/linux/scatterlist.h |4 +++ lib/scatterlist.c | 63 +++ 2 files changed, 67 insertions(+), 0 deletions(-) diff --git a/inc

[PATCHv2 5/8] v4l: s5p-tv: hdmi: fix mode synchronization

2012-04-16 Thread Tomasz Stanislawski
-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/hdmi_drv.c | 20 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/media/video/s5p-tv/hdmi_drv.c b/drivers/media/video/s5p-tv/hdmi_drv.c index eefb903..20cb6ee 100644

[PATCHv2 3/8] v4l: s5p-tv: hdmiphy: add support for per-platform variants

2012-04-16 Thread Tomasz Stanislawski
Adds selection of HDMIPHY configuration tables basing on both preset and platform variant. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/hdmiphy_drv.c | 225 +- 1 files changed, 188 insertions(+), 37 deletions

[PATCHv2 4/8] v4l: s5p-tv: hdmi: parametrize DV timings

2012-04-16 Thread Tomasz Stanislawski
This patch fixes timings configuration in HDMI register. It adds support for numerous new presets including interlaces ones. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/hdmi_drv.c | 460 ++-- drivers/media/video

[PATCHv2 7/8] s5p-tv: Fix section mismatch warning in mixer_video.c

2012-04-16 Thread Tomasz Stanislawski
From: Sachin Kamat The function __devinit mxr_probe() references a function __devexit mxr_release_video(). Since mxr_release_video() is referenced outside the exit section, the following compilation warning is generated which is fixed here: WARNING: drivers/media/video/s5p-tv/s5p-mixer.o(.devin

[PATCHv2 1/8] media: s5p-tv: fix plane size calculation

2012-04-16 Thread Tomasz Stanislawski
From: Marek Szyprowski Fix plane size calculation. Signed-off-by: Marek Szyprowski --- drivers/media/video/s5p-tv/mixer_video.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/s5p-tv/mixer_video.c b/drivers/media/video/s5p-tv/mixer_video.c index f

[PATCHv2 6/8] v4l: s5p-tv: mixer: fix handling of interlaced modes

2012-04-16 Thread Tomasz Stanislawski
The next frame was fetched by Mixer at every VSYNC event. This caused tearing when Mixer's output in interlaced mode. This patch fixes this bug by fetching new frame every second VSYNC when working in interlaced mode. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin

[PATCHv2 8/8] media/video/s5p-tv: mark const init data with __initconst instead of __initdata

2012-04-16 Thread Tomasz Stanislawski
ables is marked read only and so cannot contain non-const variables. Signed-off-by: Uwe Kleine-König Cc: Kyungmin Park Cc: Tomasz Stanislawski Cc: Mauro Carvalho Chehab Cc: linux-arm-ker...@lists.infradead.org Cc: linux-media@vger.kernel.org --- drivers/media/video/s5p-tv/mixer_drv.c |2

[PATCHv2 2/8] v4l: s5p-tv: mixer: fix compilation warning

2012-04-16 Thread Tomasz Stanislawski
This patch fixes compilation warning in debug message. The warning is caused by incorrect 'unsigned' to 'unsigned long' conversion in dev_dbg. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/mixer_video.c |2 +- 1 files c

[PATCHv2 0/8] Update to S5P-TV drivers

2012-04-16 Thread Tomasz Stanislawski
modes only from valid platforms Marek Szyprowski (1): media: s5p-tv: fix plane size calculation Sachin Kamat (1): s5p-tv: Fix section mismatch warning in mixer_video.c Tomasz Stanislawski (5): v4l: s5p-tv: mixer: fix compilation warning v4l: s5p-tv: hdmiphy: add support for per-platform

[PATCH v4 02/14] Documentation: media: description of DMABUF importing in V4L2

2012-04-13 Thread Tomasz Stanislawski
This patch adds description and usage examples for importing DMABUF file descriptor in V4L2. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- Documentation/DocBook/media/v4l/compat.xml |4 + Documentation/DocBook/media/v4l/io.xml | 179

[PATCH v4 05/14] v4l: vb2-dma-contig: Shorten vb2_dma_contig prefix to vb2_dc

2012-04-13 Thread Tomasz Stanislawski
From: Laurent Pinchart Signed-off-by: Laurent Pinchart --- drivers/media/video/videobuf2-dma-contig.c | 36 ++-- 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/media/video/videobuf2-dma-contig.c in

[PATCH v4 04/14] v4l: vb: remove warnings about MEMORY_DMABUF

2012-04-13 Thread Tomasz Stanislawski
From: Sumit Semwal Adding DMABUF memory type causes videobuf to complain about not using it in some switch cases. This patch removes these warnings. Signed-off-by: Sumit Semwal --- drivers/media/video/videobuf-core.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/d

[PATCH v4 14/14] v4l: fimc: support for dmabuf importing

2012-04-13 Thread Tomasz Stanislawski
This patch enhances s5p-fimc with support for DMABUF importing via V4L2_MEMORY_DMABUF memory type. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/Kconfig |1 + drivers/media/video/s5p-fimc/fimc-capture.c |2 +- 2 files changed, 2

[PATCH v4 09/14] v4l: vb2: add prepare/finish callbacks to allocators

2012-04-13 Thread Tomasz Stanislawski
From: Marek Szyprowski This patch adds support for prepare/finish callbacks in VB2 allocators. These callback are used for buffer flushing. Signed-off-by: Marek Szyprowski --- drivers/media/video/videobuf2-core.c | 11 +++ include/media/videobuf2-core.h |7 +++ 2 files

[PATCH v4 10/14] v4l: vb2-dma-contig: add prepare/finish to dma-contig allocator

2012-04-13 Thread Tomasz Stanislawski
From: Marek Szyprowski Add prepare/finish callbacks to vb2-dma-contig allocator. Signed-off-by: Marek Szyprowski --- drivers/media/video/videobuf2-dma-contig.c | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-con

[PATCH v4 13/14] v4l: s5p-tv: mixer: support for dmabuf importing

2012-04-13 Thread Tomasz Stanislawski
This patch enhances s5p-tv with support for DMABUF importing via V4L2_MEMORY_DMABUF memory type. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/Kconfig |1 + drivers/media/video/s5p-tv/mixer_video.c |2 +- 2 files changed, 2

[PATCH v4 08/14] v4l: vb2-dma-contig: add support for scatterlist in userptr mode

2012-04-13 Thread Tomasz Stanislawski
] Signed-off-by: Tomasz Stanislawski [add sglist subroutines/code refactoring] Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 287 ++-- 1 files changed, 270 insertions(+), 17 deletions(-) diff --git a/drivers/media/video/videobuf2-dma

[PATCH v4 11/14] v4l: vb2-dma-contig: add support for dma_buf importing

2012-04-13 Thread Tomasz Stanislawski
] Signed-off-by: Tomasz Stanislawski [integration with refactored dma-contig allocator] --- drivers/media/video/videobuf2-dma-contig.c | 112 1 files changed, 112 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers

[PATCH v4 12/14] v4l: vb2-dma-contig: change map/unmap behaviour for importers

2012-04-13 Thread Tomasz Stanislawski
ffers between other APIs like DRM. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 21 +++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/

[PATCH v4 06/14] v4l: vb2-dma-contig: Remove unneeded allocation context structure

2012-04-13 Thread Tomasz Stanislawski
vb2-dma-contig returns a vb2_dc_conf structure instance as the vb2 allocation context. That structure only stores a pointer to the physical device. Remove it and use the device pointer directly as the allocation context. Signed-off-by: Tomasz Stanislawski --- drivers/media/video/videobuf2-dma

[PATCH v4 03/14] v4l: vb2: add support for shared buffer (dma_buf)

2012-04-13 Thread Tomasz Stanislawski
sample allocator of dma-buf shared buffer is given at [1]] [1]: Rob Clark's DRM: https://github.com/robclark/kernel-omap4/commits/drmplane-dmabuf Signed-off-by: Tomasz Stanislawski [original work in the PoC for buffer sharing] Signed-off-by: Sumit Semwal Signed-off-by: Sumit S

[PATCH v4 07/14] v4l: vb2-dma-contig: Reorder functions

2012-04-13 Thread Tomasz Stanislawski
From: Laurent Pinchart Group functions by buffer type. Signed-off-by: Laurent Pinchart --- drivers/media/video/videobuf2-dma-contig.c | 92 --- 1 files changed, 54 insertions(+), 38 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/media

[PATCH v4 01/14] v4l: Add DMABUF as a memory type

2012-04-13 Thread Tomasz Stanislawski
From: Sumit Semwal Adds DMABUF memory type to v4l framework. Also adds the related file descriptor in v4l2_plane and v4l2_buffer. Signed-off-by: Tomasz Stanislawski [original work in the PoC for buffer sharing] Signed-off-by: Sumit Semwal Signed-off-by: Sumit Semwal --- include/linux

[PATCH v4 00/14] Integration of videobuf2 with dmabuf

2012-04-13 Thread Tomasz Stanislawski
v4l: vb2: add support for shared buffer (dma_buf) v4l: vb: remove warnings about MEMORY_DMABUF v4l: vb2-dma-contig: add support for dma_buf importing Tomasz Stanislawski (5): Documentation: media: description of DMABUF importing in V4L2 v4l: vb2-dma-contig: Remove unneeded allocation context

Re: [PATCH 11/11] v4l: vb2: Add dma-contig allocator as dma_buf user

2012-04-11 Thread Tomasz Stanislawski
Hi Laurent, Thanks for review. On 04/06/2012 05:12 PM, Laurent Pinchart wrote: > Hi Tomasz, > > On Thursday 05 April 2012 16:00:08 Tomasz Stanislawski wrote: >> From: Sumit Semwal >> >> This patch makes changes for adding dma-contig as a dma_buf user. It >> prov

Re: [PATCH 03/11] v4l: vb2: add support for shared buffer (dma_buf)

2012-04-11 Thread Tomasz Stanislawski
On 04/06/2012 03:29 PM, Laurent Pinchart wrote: > Hi Tomasz, > > On Thursday 05 April 2012 16:00:00 Tomasz Stanislawski wrote: >> From: Sumit Semwal >> >> This patch adds support for DMABUF memory type in videobuf2. It calls >> relevant APIs of dma_buf for v4l

Re: [PATCH 08/11] v4l: vb2-dma-contig: add support for scatterlist in userptr mode

2012-04-11 Thread Tomasz Stanislawski
Hi Laurent, Thank you for review. Your comments are very helpful :). Take a look on the comments below. On 04/06/2012 05:02 PM, Laurent Pinchart wrote: > Hi Tomasz, > > On Thursday 05 April 2012 16:00:05 Tomasz Stanislawski wrote: >> From: Andrzej Pietrasiewicz >> >>

Test application for DMABUF sharing between V4L2 and DRM

2012-04-10 Thread Tomasz Stanislawski
-samsung/commit/3c483f24e418f342eac40dc5fb3991e058deb270 The branch containing all mentioned patches (without platform code) rebased on 3.4-rc1 is available at link: http://git.infradead.org/users/kmpark/linux-2.6-samsung/shortlog/refs/heads/v3.4-rc1-v4l-drm-dmabuf-for-test Regards, Tomasz

[RFC 08/13] v4l: vb2-dma-contig: change map/unmap behaviour for exporters

2012-04-10 Thread Tomasz Stanislawski
ffers between other APIs like DRM. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 42 ++- 1 files changed, 10 insertions(+), 32 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-contig.c b/dr

[RFC 04/13] v4l: vb2-dma-contig: add setup of sglist for MMAP buffers

2012-04-10 Thread Tomasz Stanislawski
This patch adds the setup of sglist list for MMAP buffers. It is needed for buffer exporting via DMABUF mechanism. This patch depends on dma_get_pages extension to DMA api. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 51

[RFC 13/13] v4l: vivi: support for dmabuf exporting

2012-04-10 Thread Tomasz Stanislawski
This patch enhances vivi driver with a support for DMABUF exporting via VIDIOC_EXPBUF ioctl. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/vivi.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/media/video

[RFC 12/13] v4l: fimc: support for dmabuf exporting

2012-04-10 Thread Tomasz Stanislawski
This patch enhances s5p-fimc with support for DMABUF exporting via VIDIOC_EXPBUF ioctl. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-fimc/fimc-capture.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/media

[RFC 11/13] v4l: fimc: support for dmabuf importing

2012-04-10 Thread Tomasz Stanislawski
This patch enhances s5p-fimc with support for DMABUF importing via V4L2_MEMORY_DMABUF memory type. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/Kconfig |1 + drivers/media/video/s5p-fimc/fimc-capture.c |2 +- 2 files changed, 2

[RFC 05/13] v4l: vb2-dma-contig: add support for DMABUF exporting

2012-04-10 Thread Tomasz Stanislawski
This patch adds support for exporting a dma-contig buffer using DMABUF interface. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 128 1 files changed, 128 insertions(+), 0 deletions(-) diff --git a

[RFC 09/13] v4l: s5p-tv: mixer: support for dmabuf importing

2012-04-10 Thread Tomasz Stanislawski
This patch enhances s5p-tv with support for DMABUF importing via V4L2_MEMORY_DMABUF memory type. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/Kconfig |1 + drivers/media/video/s5p-tv/mixer_video.c |2 +- 2 files changed, 2

[RFC 10/13] v4l: s5p-tv: mixer: support for dmabuf exporting

2012-04-10 Thread Tomasz Stanislawski
This patch enhances s5p-tv with support for DMABUF exporting via VIDIOC_EXPBUF ioctl. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/mixer_video.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/media

[RFC 02/13] v4l: vb2: add buffer exporting via dmabuf

2012-04-10 Thread Tomasz Stanislawski
This patch adds extension to videobuf2-core. It allow to export a mmap buffer as a file descriptor. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-core.c | 66 ++ include/media/videobuf2-core.h |2

[RFC 03/13] v4l: vb2-dma-contig: let mmap method to use dma_mmap_coherent call

2012-04-10 Thread Tomasz Stanislawski
From: Marek Szyprowski Let mmap method to use dma_mmap_coherent call. This patch depends on DMA mapping redesign patches because the usage of dma_mmap_coherent breaks dma-contig allocator for architectures other than ARM and AVR. Signed-off-by: Marek Szyprowski --- drivers/media/video/videobu

[RFC 00/13] Support for dmabuf exporting for videobuf2

2012-04-10 Thread Tomasz Stanislawski
rowski (1): v4l: vb2-dma-contig: let mmap method to use dma_mmap_coherent call Tomasz Stanislawski (12): v4l: add buffer exporting via dmabuf v4l: vb2: add buffer exporting via dmabuf v4l: vb2-dma-contig: add setup of sglist for MMAP buffers v4l: vb2-dma-contig: add support for DMABUF export

[RFC 01/13] v4l: add buffer exporting via dmabuf

2012-04-10 Thread Tomasz Stanislawski
This patch adds extension to V4L2 api. It allow to export a mmap buffer as file descriptor. New ioctl VIDIOC_EXPBUF is added. It takes a buffer offset used by mmap and return a file descriptor on success. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video

[RFC 06/13] v4l: vb2-dma-contig: add vmap/kmap for dmabuf exporting

2012-04-10 Thread Tomasz Stanislawski
This patch adds support for vmap and kmap callbacks for DMABUF exporter. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/drivers/media/video

[RFC 07/13] v4l: vb2-dma-contig: change map/unmap behaviour for importers

2012-04-10 Thread Tomasz Stanislawski
ffers between other APIs like DRM. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 22 +- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/

[PATCH 1/3] dma-buf: add vmap interface

2012-04-10 Thread Tomasz Stanislawski
From: Dave Airlie Add vmap to dmabuf interface. Signed-off-by: Dave Airlie --- drivers/base/dma-buf.c | 29 + include/linux/dma-buf.h | 16 2 files changed, 45 insertions(+), 0 deletions(-) diff --git a/drivers/base/dma-buf.c b/drivers/base/dm

[PATCH 3/3] v4l: vivi: support for dmabuf importing

2012-04-10 Thread Tomasz Stanislawski
This patch enhances VIVI driver with a support for importing a buffer from DMABUF file descriptors. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/Kconfig |1 + drivers/media/video/vivi.c |2 +- 2 files changed, 2 insertions(+), 1 deletions

[PATCH 0/3] Integration of vb2-vmalloc and VIVI with dmabuf

2012-04-10 Thread Tomasz Stanislawski
-buf: add vmap interface Tomasz Stanislawski (2): v4l: vb2-vmalloc: add support for dmabuf importing v4l: vivi: support for dmabuf importing drivers/base/dma-buf.c | 29 drivers/media/video/Kconfig |1 + drivers/media/video/videobuf2-vm

[PATCH 2/3] v4l: vb2-vmalloc: add support for dmabuf importing

2012-04-10 Thread Tomasz Stanislawski
This patch adds support for importing DMABUF files for vmalloc allocator in Videobuf2. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-vmalloc.c | 56 +++ 1 files changed, 56 insertions(+), 0 deletions(-) diff

<    1   2   3   4   5   >