[PATCHv10 26/26] v4l: s5p-mfc: support for dmabuf exporting

2012-10-10 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 Acked-by: Hans Verkuil --- drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 14 ++ drivers/media/platform/s5p

Test application for DMABUF support in V4L2

2012-10-10 Thread Tomasz Stanislawski
not aborted if a format is not supported. Please let us know if you have any further questions. Regards, Tomasz Stanislawski /* * V4L2 VIVI + FIMC + DMABUF sharing Test Application * * This application is used to test DMABUF sharing between VIVI and FIMC * device. * * Authors: * T

Re: [PATCHv10 21/26] v4l: vb2-dma-contig: add reference counting for a device from allocator context

2012-10-11 Thread Tomasz Stanislawski
Hi Laurent, Thank your your review. On 10/11/2012 11:49 PM, Laurent Pinchart wrote: > Hi Tomasz, > > Thanks for the patch. > > On Wednesday 10 October 2012 16:46:40 Tomasz Stanislawski wrote: >> This patch adds taking reference to the device for MMAP buffers. >> >&

Re: [PATCHv10 22/26] v4l: vb2-dma-contig: fail if user ptr buffer is not correctly aligned

2012-10-12 Thread Tomasz Stanislawski
Hi Laurent, Thank you for the review. Please refer to the comments below. On 10/11/2012 11:36 PM, Laurent Pinchart wrote: > Hi Tomasz, > > Thanks for the patch. > > On Wednesday 10 October 2012 16:46:41 Tomasz Stanislawski wrote: >> From: Marek Szyprowski >> >>

Re: [PATCHv10 23/26] v4l: vb2-dma-contig: align buffer size to PAGE_SIZE

2012-10-12 Thread Tomasz Stanislawski
Hi Laurent, On 10/11/2012 11:31 PM, Laurent Pinchart wrote: > Hi Tomasz, > > On Wednesday 10 October 2012 16:46:42 Tomasz Stanislawski wrote: >> Most operations on DMA and DMABUF framework need page >> aligned buffers. > > The comment is a bit misleading, the buf

Re: [PATCH 27/26] v4l: vb2: Set data_offset to 0 for single-plane buffers

2012-11-08 Thread Tomasz Stanislawski
vice it is pretty intuitive. For DMABUF capture devices data_offset maybe used to inform a driver to capture the image at some offset inside the DMABUF buffer. BTW. Should {} be added after "if (V4L2_TYPE_IS_OUTPUT(b->type))" to avoid 'interesting' behavior? :) Reg

Re: [PATCH 1/1] [media] s5p-tv: Use devm_gpio_request in sii9234_drv.c

2012-11-15 Thread Tomasz Stanislawski
On 11/16/2012 05:55 AM, Sachin Kamat wrote: > devm_gpio_request is a device managed function and will make > error handling and cleanup a bit simpler. > > Signed-off-by: Sachin Kamat Acked-by: Tomasz Stanislawski > --- > drivers/media/platform/s5p-tv/sii9234_drv.c |6

Re: [PATCH 0/9] [media] s5p-tv: Checkpatch Fixes and cleanup

2012-12-03 Thread Tomasz Stanislawski
eof in ..." family. You can add my Acked-by to them. The devm_clk patches should be postponed until s5p-tv gets integrated with clk_prepare/unprepare stuff. Regards, Tomasz Stanislawski > > Hi Tomasz, > > Any comments on this series? > > Regards, > Sachin > &

[GIT PULL FOR 3.3] Selection API and fixes for v3.3

2012-01-09 Thread Tomasz Stanislawski
Hi Mauro, The selection API has been tested for compatibility with compat32. The test was successful. I kindly ask for merging info 3.3. Regards, Tomasz Stanislawski The following changes since commit e9eb0dadba932940f721f9d27544a7818b2fa1c5: [media] V4L menu: add submenu for platform

Re: [RFC 06/17] v4l: Add selections documentation.

2012-01-10 Thread Tomasz Stanislawski
n EINVAL if target is not supported. It would imply that support for the target is not implemented in the driver. Regards, Tomasz Stanislawski and is + directly affected by the ACTIVE target. The PADDED targets may + be configurable depending on the hardware. If that's configurab

Re: [RFCv1 2/4] v4l:vb2: add support for shared buffer (dma_buf)

2012-01-20 Thread Tomasz Stanislawski
allocators like vb2-vmalloc do not posses any device related attributes Best regards, Tomasz Stanislawski -- Best regards, Pawel Osciak -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFCv1 2/4] v4l:vb2: add support for shared buffer (dma_buf)

2012-01-20 Thread Tomasz Stanislawski
Hi Laurent, On 01/20/2012 04:12 PM, Laurent Pinchart wrote: Hi Tomasz, On Friday 20 January 2012 11:58:39 Tomasz Stanislawski wrote: On 01/20/2012 11:41 AM, Sumit Semwal wrote: On 20 January 2012 00:37, Pawel Osciak wrote: Hi Sumit, Thank you for your work. Please find my comments below

Re: [RFCv1 2/4] v4l:vb2: add support for shared buffer (dma_buf)

2012-01-20 Thread Tomasz Stanislawski
d happen for vmalloc allocator used by VIVI? 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 majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] [media] convert drivers/media/* to use module_i2c_driver()

2012-01-23 Thread Tomasz Stanislawski
Hi, For module s5p-tv/hdmiphy Acked-by: Tomasz Stanislawski -- 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 majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 00/10] Integration of videobuf2 with dmabuf

2012-01-23 Thread Tomasz Stanislawski
: vb2: add prepare/finish callbacks to allocators Tomasz Stanislawski (8): arm: dma: support for dma_get_pages v4l: vb2: fixes for DMABUF support v4l: add buffer exporting via dmabuf v4l: vb2: add buffer exporting via dmabuf v4l: vb2: remove dma-contig allocator v4l: vb2-dma-contig

[PATCH 06/10] v4l: vb2: add buffer exporting via dmabuf

2012-01-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 | 60 ++ include/media/videobuf2-core.h |2

[PATCH 03/10] media: vb2: add prepare/finish callbacks to allocators

2012-01-23 Thread Tomasz Stanislawski
From: Marek Szyprowski Signed-off-by: Marek Szyprowski --- drivers/media/video/videobuf2-core.c | 11 +++ include/media/videobuf2-core.h |2 ++ 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/videobuf2-core.c b/drivers/media/video/videobu

[PATCH 07/10] v4l: vb2: remove dma-contig allocator

2012-01-23 Thread Tomasz Stanislawski
This is temporary patch. The dma-contig changes were significant and the difference patch would be very difficult to read. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 308 1 files changed, 0

[PATCH 09/10] v4l: fimc: integrate capture i-face with dmabuf

2012-01-23 Thread Tomasz Stanislawski
Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-fimc/fimc-capture.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c index

[PATCH 08/10] v4l: vb2-dma-contig: code refactoring, support for DMABUF exporting

2012-01-23 Thread Tomasz Stanislawski
[PoC for importing dmabuf buffer] Signed-off-by: Tomasz Stanislawski [buffer exporting using dmabuf, code refactoring] Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 762 1 files changed, 762 insertions(+), 0 deletions(-) create

[PATCH 10/10] v4l: s5p-tv: mixer: integrate with dmabuf

2012-01-23 Thread Tomasz Stanislawski
Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/mixer_video.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/s5p-tv/mixer_video.c b/drivers/media/video/s5p-tv/mixer_video.c index b47d0c0

[PATCH 02/10] [media] media: vb2: remove plane argument from call_memop and cleanup mempriv usage

2012-01-23 Thread Tomasz Stanislawski
From: Marek Szyprowski This patch removes unused 'plane' argument from call_memop macro. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park CC: Pawel Osciak Signed-off-by: Mauro Carvalho Chehab --- drivers/media/video/videobuf2-core.c | 22 ++ 1 files changed

[PATCH 05/10] v4l: add buffer exporting via dmabuf

2012-01-23 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

[PATCH 01/10] arm: dma: support for dma_get_pages

2012-01-23 Thread Tomasz Stanislawski
This patch provides reliable mechanism for obtaining pages associated with a given dma_mapping. This is a proof-of-concept patch. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- arch/arm/include/asm/dma-mapping.h |8 ++ arch/arm/mm/dma-mapping.c | 44

[PATCH 04/10] v4l: vb2: fixes for DMABUF support

2012-01-23 Thread Tomasz Stanislawski
Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-core.c | 21 + include/media/videobuf2-core.h |6 +++--- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/media/video/videobuf2-core.c b

Re: [PATCH 04/10] v4l: vb2: fixes for DMABUF support

2012-01-23 Thread Tomasz Stanislawski
Hi Mauro, On 01/23/2012 03:22 PM, Mauro Carvalho Chehab wrote: Em 23-01-2012 11:51, Tomasz Stanislawski escreveu: Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park Please better describe this patch. What is it supposing to fix? Usually compilation error or bugs discovered in

Re: [PATCH 08/10] v4l: vb2-dma-contig: code refactoring, support for DMABUF exporting

2012-01-23 Thread Tomasz Stanislawski
Hi, On 01/23/2012 03:26 PM, Mauro Carvalho Chehab wrote: Em 23-01-2012 11:51, Tomasz Stanislawski escreveu: Signed-off-by: Pawel Osciak [author of the original file] Signed-off-by: Marek Szyprowski [implemetation of mmap, finish/prepare] Signed-off-by: Andrzej Pietrasiewicz

Re: [PATCH 05/10] v4l: add buffer exporting via dmabuf

2012-01-23 Thread Tomasz Stanislawski
Hi Mauro. On 01/23/2012 03:32 PM, Mauro Carvalho Chehab wrote: Em 23-01-2012 11:51, Tomasz Stanislawski escreveu: 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

Re: [PATCH] media: vb2-memops: Export vb2_get_vma symbol

2012-01-23 Thread Tomasz Stanislawski
Hi Laurent, Thank you for finding a bug in vb2-core. Regards, Tomasz Stanislawski On 01/23/2012 03:35 PM, Laurent Pinchart wrote: The vb2_get_vma() function is called by videobuf2-dma-contig. Export it. Signed-off-by: Laurent Pinchart --- drivers/media/video/videobuf2-memops.c |1 + 1

Re: [PATCH 04/10] v4l: vb2: fixes for DMABUF support

2012-01-23 Thread Tomasz Stanislawski
Hi Mauro, On 01/23/2012 03:52 PM, Mauro Carvalho Chehab wrote: Em 23-01-2012 12:32, Tomasz Stanislawski escreveu: Hi Mauro, On 01/23/2012 03:22 PM, Mauro Carvalho Chehab wrote: Em 23-01-2012 11:51, Tomasz Stanislawski escreveu: Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park

Re: [PATCH 05/10] v4l: add buffer exporting via dmabuf

2012-01-23 Thread Tomasz Stanislawski
Hi Mauro, On 01/23/2012 04:04 PM, Mauro Carvalho Chehab wrote: Em 23-01-2012 12:42, Tomasz Stanislawski escreveu: Hi Mauro. On 01/23/2012 03:32 PM, Mauro Carvalho Chehab wrote: Em 23-01-2012 11:51, Tomasz Stanislawski escreveu: This patch adds extension to V4L2 api. It allow to export a mmap

Re: [PATCH 04/10] v4l: vb2: fixes for DMABUF support

2012-01-23 Thread Tomasz Stanislawski
Hi Mauro, On 01/23/2012 05:06 PM, Mauro Carvalho Chehab wrote: Em 23-01-2012 13:25, Tomasz Stanislawski escreveu: Hi Mauro, On 01/23/2012 03:52 PM, Mauro Carvalho Chehab wrote: Em 23-01-2012 12:32, Tomasz Stanislawski escreveu: Hi Mauro, On 01/23/2012 03:22 PM, Mauro Carvalho Chehab wrote

Re: [Linaro-mm-sig] [PATCH 05/10] v4l: add buffer exporting via dmabuf

2012-01-24 Thread Tomasz Stanislawski
Note that memory may not be pinned to a buffer for some APIs like DRM. I think that is should stated explicitly that application wants to export not request a buffer. Using VIDIOC_REQBUF seams to be an API abuse. What is your opinion? Regards, Tomasz Stanislawski Regards, Subash On 01/23/20

Re: [PATCH 04/10] v4l: vb2: fixes for DMABUF support

2012-01-25 Thread Tomasz Stanislawski
Hi Sumit, On 01/25/2012 06:35 AM, Semwal, Sumit wrote: Hi Tomasz, On Mon, Jan 23, 2012 at 8:55 PM, Tomasz Stanislawski wrote: Hi Mauro, Ok. I should have given more details about the patch. I am sorry for missing it. My kernel tree failed to compile after applying patches from [1

Re: [PATCH 1/3] dma-buf: Introduce dma buffer sharing mechanism

2012-01-25 Thread Tomasz Stanislawski
ection is remembered. Refer to function vb2_dc_dmabuf_ops_map at link below as an example: http://thread.gmane.org/gmane.linux.drivers.video-input-infrastructure/43793/focus=43797 Regards, Tomasz Stanislawski -- To unsubscribe from this list: send the line "unsubscribe linux-media&

Re: [PATCH 05/10] v4l: add buffer exporting via dmabuf

2012-01-26 Thread Tomasz Stanislawski
e. It is written in GNU99 standard Regards, Tomasz Stanislawski #include #include #include #include #include #include #include #include #include #include #include #include #include #define ERRSTR strerror(errno) #define BYE_ON(cond, ...) \ do { \ if

[PATCH 0/3] Updates to S5P-TV drivers

2012-01-26 Thread Tomasz Stanislawski
Hello Everyone, This patchset introduces SII9234 driver for MHL interface for latest Samsung boards from Exynos family. It also adds support for platform data in S5P-HDMI driver. Finally S5P-HDMI is integrated with SII9234. Regards, Tomasz Stanislawski Tomasz Stanislawski (3): v4l: s5p-tv

[PATCH 2/3] v4l: s5p-tv: hdmi: add support for platform data

2012-01-26 Thread Tomasz Stanislawski
Moving configuration of s5p-hdmi peripherals from driver data to platfrom data. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/hdmi_drv.c | 38 ++-- include/media/s5p_hdmi.h | 35

[PATCH 3/3] v4l: s5p-tv: hdmi: integrate with MHL

2012-01-26 Thread Tomasz Stanislawski
Adding support for using MHL (SiI9234 or other) chip if its configuration was passed to HDMI by platfrom data. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/hdmi_drv.c | 52 1 files changed, 45 insertions(+), 7

[PATCH 1/3] v4l: s5p-tv: add sii9234 driver

2012-01-26 Thread Tomasz Stanislawski
,0 +1,432 @@ +/* + * Samsung MHL interface driver + * + * Copyright (C) 2011 Samsung Electronics Co.Ltd + * Author: Tomasz Stanislawski + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * F

[GIT PULL FOR 3.4] Updates to S5P-TV for v3.3

2012-02-13 Thread Tomasz Stanislawski
Hi Mauro, This pull-request contains fixes and updates to S5P-TV drivers set. New driver for MHL is introduced and it is integrated with S5P-HDMI. I kindly ask for merging info 3.4. Regards, Tomasz Stanislawski The following changes since commit 59b30294e14fa6a370fdd2bc2921cca1f977ef16

[GIT PULL FOR 3.4] Updates to S5P-TV for v3.4

2012-02-13 Thread Tomasz Stanislawski
Hi Mauro, This pull-request contains fixes and updates to S5P-TV drivers set. New driver for MHL is introduced and it is integrated with S5P-HDMI. I kindly ask for merging info 3.4. Regards, Tomasz Stanislawski The following changes since commit 59b30294e14fa6a370fdd2bc2921cca1f977ef16

Re: [PATCH] media: s5p-tv: support mc framework

2012-03-05 Thread Tomasz Stanislawski
/** pipeline structure for streaming TV graphic layer */ > + struct tv_graph_pipeline pipe; > }; > > /** description of mixers output interface */ > @@ -263,6 +303,11 @@ struct mxr_device { > int current_output; > /** auxiliary resources used my mixer */ >

[RFCv2 PATCH 0/9] Integration of videobuf2 with dmabuf

2012-03-06 Thread Tomasz Stanislawski
://git.infradead.org/users/kmpark/linux-2.6-samsung/shortlog/refs/heads/3.3-rc5-vb2-dma-contig-dmabuf-drm Sumit Semwal (1): v4l: vb2: Add dma-contig allocator as dma_buf user Tomasz Stanislawski (8): v4l: vb2: fixes for DMABUF support v4l: vb2-dma-contig: update and code refactoring v4l: add buffer

[RFCv2 PATCH 2/9] v4l: vb2-dma-contig: update and code refactoring

2012-03-06 Thread Tomasz Stanislawski
[bugfixing] Signed-off-by: Tomasz Stanislawski [core refactoring, helper functions] Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 495 +++- 1 files changed, 414 insertions(+), 81 deletions(-) diff --git a/drivers/media/video

[RFCv2 PATCH 5/9] v4l: vb2: add buffer exporting via dmabuf

2012-03-06 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 | 64 ++ include/media/videobuf2-core.h |2

[RFCv2 PATCH 3/9] v4l: vb2: Add dma-contig allocator as dma_buf user

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

[RFCv2 PATCH 7/9] v4l: vb2-dma-contig: change map/unmap behaviour

2012-03-06 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 | 64 1 files changed, 27 insertions(+), 37 deletions(-) diff --git a/drivers/media/video/videobuf2-dma-contig.c b/dr

[RFCv2 PATCH 9/9] v4l: s5p-tv: mixer: integrate with dmabuf

2012-03-06 Thread Tomasz Stanislawski
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 | 12 +++- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/s5p-tv/Kconfig b/drivers

[RFCv2 PATCH 4/9] v4l: add buffer exporting via dmabuf

2012-03-06 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

[RFCv2 PATCH 1/9] v4l: vb2: fixes for DMABUF support

2012-03-06 Thread Tomasz Stanislawski
This patch contains fixes to DMABUF support in vb2-core. - fixes number of arguments of call_memop macro - fixes setup of plane length - fixes handling of error pointers Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-core.c | 24

[RFCv2 PATCH 6/9] v4l: vb2-dma-contig: add support for DMABUF exporting

2012-03-06 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

[RFCv2 PATCH 8/9] v4l: fimc: integrate capture i-face with dmabuf

2012-03-06 Thread Tomasz Stanislawski
Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/Kconfig |1 + drivers/media/video/s5p-fimc/fimc-capture.c | 11 ++- 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/Kconfig b/drivers/media

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: [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] 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: [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

[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

[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 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 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 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 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 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 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 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 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 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 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 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 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

[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

[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 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 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 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 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 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 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 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 08/12] v4l: s5p-tv: mixer: support for dmabuf exporting

2012-05-23 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 file changed, 10 insertions(+) diff --git a/drivers/media/video/s5p-tv

[PATCH 11/12] v4l: vb2-dma-contig: use sg_alloc_table_from_pages function

2012-05-23 Thread Tomasz Stanislawski
This patch makes use of sg_alloc_table_from_pages to simplify handling of sg tables. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 90 1 file changed, 25 insertions(+), 65 deletions(-) diff --git

[PATCH 05/12] v4l: vb2-dma-contig: add support for DMABUF exporting

2012-05-23 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 | 119 1 file changed, 119 insertions(+) diff --git a/drivers/media

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

2012-05-23 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

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

2012-06-06 Thread Tomasz Stanislawski
Hi Laurent, Thank your for your comments. On 06/06/2012 10:06 AM, Laurent Pinchart wrote: > Hi Tomasz, > > Thanks for the patch. > > On Wednesday 23 May 2012 15:07:27 Tomasz Stanislawski wrote: >> This patch adds the setup of sglist list for MMAP buffers. >> It is

Re: [PATCH v3] scatterlist: add sg_alloc_table_from_pages function

2012-06-06 Thread Tomasz Stanislawski
On 05/22/2012 10:10 PM, Andrew Morton wrote: > On Mon, 21 May 2012 16:01:50 +0200 > Tomasz Stanislawski wrote: > >>>> +int sg_alloc_table_from_pages(struct sg_table *sgt, >>>> + struct page **pages, unsigned int n_pages, >>>> + unsigned long offse

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

2012-06-08 Thread Tomasz Stanislawski
al vma b) access the dma memory by calling *((volatile int *)kaddr) = 0; before calling follow_pfn This way a fault is generated and the PT is updated by copying entries from init_mm. What do you think about presented solutions? Regards, Tomasz Stanislawski On 06/07/2012 04:28 PM

[PATCH v4] scatterlist: add sg_alloc_table_from_pages function

2012-06-14 Thread Tomasz Stanislawski
st in userptr mode' and hints from Laurent Pinchart. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park Acked-by: Daniel Vetter Acked-by: Laurent Pinchart Signed-off-by: Marek Szyprowski CC: Andrew Morton --- v4: - fix typos - add Changelog v3: - use PFNs instead of page pointer

[PATCHv7 00/15] Integration of videobuf2 with dmabuf

2012-06-14 Thread Tomasz Stanislawski
UF 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 importing Tomasz Stanislawski (7): Documentation: media: description of DMABUF importing in V4L2 v4l: vb2-dma-contig: remove

[PATCHv7 04/15] v4l: vb: remove warnings about MEMORY_DMABUF

2012-06-14 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

[PATCHv7 09/15] v4l: vb2: add prepare/finish callbacks to allocators

2012-06-14 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

[PATCHv7 11/15] v4l: vb2-dma-contig: add support for dma_buf importing

2012-06-14 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 | 120 +++- 1 file changed, 118 insertions(+), 2 deletions(-) diff --git a/drivers/media/video

[PATCHv7 10/15] v4l: vb2-dma-contig: add prepare/finish to dma-contig allocator

2012-06-14 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/

[PATCHv7 13/15] v4l: vivi: support for dmabuf importing

2012-06-14 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 deletion

[PATCHv7 07/15] v4l: vb2-dma-contig: Reorder functions

2012-06-14 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

[PATCHv7 12/15] v4l: vb2-vmalloc: add support for dmabuf importing

2012-06-14 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 file changed, 56 insertions(+) diff --git a/drivers

[PATCHv7 14/15] v4l: s5p-tv: mixer: support for dmabuf importing

2012-06-14 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

[PATCHv7 15/15] v4l: s5p-fimc: support for dmabuf importing

2012-06-14 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

[PATCHv7 05/15] v4l: vb2-dma-contig: Shorten vb2_dma_contig prefix to vb2_dc

2012-06-14 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

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

2012-06-14 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 | 229 ++-- 1 file changed, 213 insertions(+), 16 deletions(-) diff --git a/drivers/media/video/videobuf2-dma

<    1   2   3   4   5   >