[RFCv3 PATCH 10/10] mem2mem_testdev: support expbuf

2014-10-11 Thread Hans Verkuil
From: Hans Verkuil Signed-off-by: Hans Verkuil --- drivers/media/platform/mem2mem_testdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/mem2mem_testdev.c b/drivers/media/platform/mem2mem_testdev.c index c1b03cf..9ee80cd 100644 --- a/drivers/media/platform/mem2mem

[RFCv3 PATCH 01/10] videobuf2-core.h: improve documentation

2014-10-11 Thread Hans Verkuil
From: Hans Verkuil Document that drivers can access/modify the buffer contents in buf_prepare and buf_finish. That was not clearly stated before. Signed-off-by: Hans Verkuil --- include/media/videobuf2-core.h | 32 +--- 1 file changed, 17 insertions(+), 15 deletions

[RFCv3 PATCH 00/10] vb2: improve dma-sg, expbuf

2014-10-11 Thread Hans Verkuil
Changes since v2: - Dropped buf_prepare/finish_for_cpu: buf_prepare/finish are already suitable for CPU access (but see discussion on dmabuf imports below) - Moved dma_map_sg to buf_init as suggested by Laurent and others. This made it possible to drop the whole 'new_cookies' handling that I h

[RFCv3 PATCH 05/10] vb2-dma-sg: add dmabuf import support

2014-10-11 Thread Hans Verkuil
From: Hans Verkuil Add support for dmabuf to vb2-dma-sg. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 126 +++-- 1 file changed, 119 insertions(+), 7 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-dma-sg.c b/drivers/media/v

[RFCv3 PATCH 08/10] vb2: replace 'write' by 'dma_dir'

2014-10-11 Thread Hans Verkuil
From: Hans Verkuil The 'write' argument is very ambiguous. I first assumed that if it is 1, then we're doing video output but instead it meant the reverse. Since it is used to setup the dma_dir value anyway it is now replaced by the correct dma_dir value which is unambiguous. Signed-off-by: Han

[RFCv3 PATCH 06/10] vb2-dma-sg: add get_dmabuf

2014-10-11 Thread Hans Verkuil
From: Hans Verkuil Add DMABUF export support to vb2-dma-sg. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/videobuf2-dma-sg.c | 170 + 1 file changed, 170 insertions(+) diff --git a/drivers/media/v4l2-core/videobuf2-dma-sg.c b/drivers/media/v4l2-core/vide

[RFCv3 PATCH 04/10] vb2-dma-sg: move dma_(un)map_sg here

2014-10-11 Thread Hans Verkuil
From: Hans Verkuil This moves dma_(un)map_sg to the get_userptr/put_userptr and alloc/put memops of videobuf2-dma-sg.c and adds dma_sync_sg_for_device/cpu to the prepare/finish memops. Now that vb2-dma-sg will sync the buffers for you in the prepare/finish memops we can drop that from the driver

[RFCv3 PATCH 02/10] vb2-dma-contig: sync mem for cpu after mapping

2014-10-11 Thread Hans Verkuil
From: Hans Verkuil The driver might touch the data after mapping in buf_prepare, so make sure it is synced for cpu. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/videobuf2-dma-con

[RFCv3 PATCH 07/10] vb2-vmalloc: add get_dmabuf support

2014-10-11 Thread Hans Verkuil
From: Hans Verkuil Add support for DMABUF exporting to the vb2-vmalloc implementation. All memory models now have support for both importing and exporting of DMABUFs. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/videobuf2-vmalloc.c | 174 1 file changed

[RFCv3 PATCH 03/10] vb2-dma-sg: add allocation context to dma-sg

2014-10-11 Thread Hans Verkuil
From: Hans Verkuil Require that dma-sg also uses an allocation context. This is in preparation for adding prepare/finish memops to sync the memory between DMA and CPU. Signed-off-by: Hans Verkuil --- drivers/media/pci/cx23885/cx23885-417.c | 1 + drivers/media/pci/cx23885/cx23885-core

[RFCv3 PATCH 09/10] vivid: enable vb2_expbuf support.

2014-10-11 Thread Hans Verkuil
From: Hans Verkuil Now that vb2 supports DMABUF export for dma-sg and vmalloc memory modes, we can enable the vb2_expbuf support in vivid. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media

Re: Kernel panic using a webcam

2014-10-11 Thread Laurent Pinchart
Hi Andrew, On Friday 10 October 2014 17:55:54 Andrew Klofas wrote: > Greetings, > > I am new to the linux kernel community (first time contacting anyone), so I > apologize if I am not doing this the proper way. No worries. You should have CC'ed the linux-media@vger.kernel.org mailing list, whic

Re: [PATCH 1/2] [media] uvcvideo: add a new quirk UVC_QUIRK_SINGLE_ISO

2014-10-11 Thread Laurent Pinchart
Hi John, On Friday 10 October 2014 20:41:12 John Crispin wrote: > The following patch adds the usb ids for the iPassion chip. This chip is > found on D-Link DIR-930 IP cameras. For them to work this patch needs to be > applied. I am almost certain that this is the incorrect fix. Could someone > sh

Re: technisat-usb2: i2c-error

2014-10-11 Thread Patrick Boettcher
On Fri, 10 Oct 2014 12:09:12 +0200 JPT wrote: > Hi Patrick, > > Am 09.10.2014 um 17:26 schrieb Patrick Boettcher: > > Hi Jan, > > > >> What exactly do the i2c-errors mean? > > > > I can't tell you exactly what happens in the device, but I can tell > > you that I have the same problem with my

[PATCH 00/12] dmaengine: remove users of device_control

2014-10-11 Thread Vinod Koul
The recent discussion [1] on the API have resulted in moving away from device_control ioctl method to proper channel APIs. There are still few users on the device_control which should use the wrappers existing rather than access device_control. This will aid us in deprecating and removing device_co

[PATCH 03/12] [media] V4L2: mx3_camer: use dmaengine_pause() API

2014-10-11 Thread Vinod Koul
The drivers should use dmaengine_pause() API instead of accessing the device_control which will be deprecated soon Signed-off-by: Vinod Koul --- drivers/media/platform/soc_camera/mx3_camera.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/soc

Re: [PATCH] vb2: replace VIDEO_MAX_FRAME with VB2_MAX_FRAME

2014-10-11 Thread Laurent Pinchart
Hi Hans, On Friday 10 October 2014 10:04:58 Hans Verkuil wrote: > (This patch is from Divneil except for the vivid changes which I added. He > had difficulties posting the patch without the mailer mangling it, so I'm > reposting it for him) > > - vb2 drivers to rely on VB2_MAX_FRAME. > > - VB2_M

Re: [RFC 2/4] cenalloc: Constraint-Enabled Allocation helpers for dma-buf

2014-10-11 Thread Daniel Vetter
On Fri, Oct 10, 2014 at 04:09:00PM -0700, Greg Kroah-Hartman wrote: > On Sat, Oct 11, 2014 at 01:37:56AM +0530, Sumit Semwal wrote: > > Devices sharing buffers using dma-buf could benefit from sharing their > > constraints via struct device, and dma-buf framework would manage the > > common constra

Re: [RFC 1/4] dma-buf: Add constraints sharing information

2014-10-11 Thread Daniel Vetter
On Sat, Oct 11, 2014 at 01:37:55AM +0530, Sumit Semwal wrote: > At present, struct device lacks a mechanism of exposing memory > access constraints for the device. > > Consequently, there is also no mechanism to share these constraints > while sharing buffers using dma-buf. > > If we add support

Please reply

2014-10-11 Thread Jose Calvache
Dear Sir/Madam, Here is a pdf attachment of my proposal to you. Please read and reply I would be grateful. Jose Calvache -- 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/ma

Re: [PATCH] vb2: replace VIDEO_MAX_FRAME with VB2_MAX_FRAME

2014-10-11 Thread Hans Verkuil
Hi Laurent, On 10/11/2014 07:21 PM, Laurent Pinchart wrote: Hi Hans, On Friday 10 October 2014 10:04:58 Hans Verkuil wrote: (This patch is from Divneil except for the vivid changes which I added. He had difficulties posting the patch without the mailer mangling it, so I'm reposting it for him)

cron job: media_tree daily build: WARNINGS

2014-10-11 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Sun Oct 12 04:00:23 CEST 2014 git branch: test git hash: cf3167cf1e969b17671a4d3d956d22718a8ceb85 gcc versi