Re: [PATCH v8 49/55] [media] media-device: add support for MEDIA_IOC_G_TOPOLOGY ioctl

2015-09-08 Thread Sakari Ailus
Hi Mauro, On Mon, Sep 07, 2015 at 10:23:57PM -0300, Mauro Carvalho Chehab wrote: > Em Tue, 8 Sep 2015 01:18:30 +0300 > Sakari Ailus escreveu: > > > Hi Mauro, > > > > A few comments below. > > Thanks for review! You're welcome! > > > > On Sun, Sep 06, 2015 at 09:03:09AM

[PATCH] [media] tda10023: fix wrong register assignment

2015-09-08 Thread Manuel Kampert
Register INTP1 (0x12) Bit POCLKP (bit 0) sets the output clock polarity of tda10023 . However, the driver tries to set the parallel output mode in this register which is not correct. Parallel output mode is set on register INTP2 (0x20) INTPSEL (bit 1/0) . Drivers affected by this patch are

Do you need a loan?

2015-09-08 Thread web . onmicrosoft . com
Do you need any financial help of getting a loan? Kindly contact us for more details with the following loan application form below: Name Country loan Amount Loan duration Phone Number -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to

Do you need a loan?

2015-09-08 Thread web . onmicrosoft . com
Do you need any financial help of getting a loan? Kindly contact us for more details with the following loan application form below: Name Country loan Amount Loan duration Phone Number -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to

Re: [PATCH v1] media: uvcvideo: handle urb completion in a work queue

2015-09-08 Thread Oliver Neukum
On Mon, 2015-09-07 at 18:23 +0200, Mian Yousaf Kaukab wrote: > urb completion callback is executed in host controllers interrupt > context. To keep preempt disable time short, add urbs to a list on > completion and schedule work to process the list. > > Moreover, save timestamp and sof number in

[RFC 03/11] vb2: Move cache synchronisation from buffer done to dqbuf handler

2015-09-08 Thread Sakari Ailus
The cache synchronisation may be a time consuming operation and thus not best performed in an interrupt which is a typical context for vb2_buffer_done() calls. This may consume up to tens of ms on some machines, depending on the buffer size. Signed-off-by: Sakari Ailus

[RFC 00/11] vb2: Handle user cache hints, allow drivers to choose cache coherency

2015-09-08 Thread Sakari Ailus
Hi folks, This RFC patchset achieves two main objectives: 1. Respects cache flags passed from the user space. As no driver nor videobuf2 has (ever?) implemented them, the two flags are replaced by a single one (V4L2_BUF_FLAG_NO_CACHE_SYNC) and the two old flags are deprecated. This is done since

[RFC 05/11] v4l2-core: Don't sync cache for a buffer if so requested

2015-09-08 Thread Sakari Ailus
From: Samu Onkalo The user may request to the driver (vb2) to skip the cache maintenance operations in case the buffer does not need cache synchronisation, e.g. in cases where the buffer is passed between hardware blocks without it being touched by the CPU. Also document

[RFC 08/11] vb2: dma-contig: Move vb2_dc_get_base_sgt() up

2015-09-08 Thread Sakari Ailus
Just move the function up. It'll be soon needed earlier than previously. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 44 +- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git

[RFC 11/11] vb2: dma-contig: Add WARN_ON_ONCE() to check for potential bugs

2015-09-08 Thread Sakari Ailus
The scatterlist should always be present when the cache would need to be flushed. Each buffer type has its own means to provide that. Add WARN_ON_ONCE() to check the scatterist exists. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/videobuf2-dma-contig.c |

[RFC 09/11] vb2: dma-contig: Don't warn on failure in obtaining scatterlist

2015-09-08 Thread Sakari Ailus
vb2_dc_get_base_sgt() which obtains the scatterlist already prints information on why the scatterlist could not be obtained. Also, remove the useless warning of a failed kmalloc(). Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 6

[RFC 04/11] v4l: Unify cache management hint buffer flags

2015-09-08 Thread Sakari Ailus
The V4L2_BUF_FLAG_NO_CACHE_INVALIDATE and V4L2_BUF_FLAG_NO_CACHE_CLEAN buffer flags are currently not used by the kernel. Replace the definitions by a single V4L2_BUF_FLAG_NO_CACHE_SYNC flag to be used by further patches. Different cache architectures should not be visible to the user space which

[RFC 10/11] vb2: dma-contig: Let drivers decide DMA attrs of MMAP and USERPTR bufs

2015-09-08 Thread Sakari Ailus
The desirable DMA attributes are not generic for all devices using Videobuf2 contiguous DMA ops. Let the drivers decide. This change also results in MMAP buffers always having an sg_table (dma_sgt field). Also arrange the header files alphabetically. As a result, also the DMA-BUF exporter must

[RFC 07/11] vb2: dma-contig: Remove redundant sgt_base field

2015-09-08 Thread Sakari Ailus
The struct vb2_dc_buf contains two struct sg_table fields: sgt_base and dma_sgt. The former is used by DMA-BUF buffers whereas the latter is used by USERPTR. Unify the two, leaving dma_sgt. MMAP buffers do not need cache flushing since they have been allocated using dma_alloc_coherent().

[RFC 01/11] vb2: Rename confusingly named internal buffer preparation functions

2015-09-08 Thread Sakari Ailus
Rename __qbuf_*() functions which are specific to a buffer type as __prepare_*() which matches with what they do. The naming was there for historical reasons; the purpose of the functions was changed without renaming them. Signed-off-by: Sakari Ailus ---

[RFC 02/11] vb2: Move buffer cache synchronisation to prepare from queue

2015-09-08 Thread Sakari Ailus
The buffer cache should be synchronised in buffer preparation, not when the buffer is queued to the device. Fix this. Mmap buffers do not need cache synchronisation since they are always coherent. Signed-off-by: Sakari Ailus ---

Re: [PATCH v6 2/8] [media] media: add a common struct to be embed on media graph objects

2015-09-08 Thread Mauro Carvalho Chehab
Em Tue, 08 Sep 2015 00:49:58 +0300 Laurent Pinchart escreveu: > Hi Hans, > > On Friday 21 August 2015 10:07:36 Hans Verkuil wrote: > > On 08/21/2015 03:02 AM, Laurent Pinchart wrote: > > > On Wednesday 19 August 2015 08:01:49 Mauro Carvalho Chehab wrote: > >

Re: [PATCH v8 49/55] [media] media-device: add support for MEDIA_IOC_G_TOPOLOGY ioctl

2015-09-08 Thread Mauro Carvalho Chehab
Em Tue, 8 Sep 2015 10:26:29 +0300 Sakari Ailus escreveu: > Hi Mauro, > > On Mon, Sep 07, 2015 at 10:23:57PM -0300, Mauro Carvalho Chehab wrote: > > Em Tue, 8 Sep 2015 01:18:30 +0300 > > Sakari Ailus escreveu: > > > > > Hi Mauro, > > > > > > A few

Re: [PATCH v1] media: uvcvideo: handle urb completion in a work queue

2015-09-08 Thread Hans de Goede
Hi, On 09/07/2015 06:23 PM, Mian Yousaf Kaukab wrote: urb completion callback is executed in host controllers interrupt context. To keep preempt disable time short, add urbs to a list on completion and schedule work to process the list. Moreover, save timestamp and sof number in the urb

Re: [PATCH v8 49/55] [media] media-device: add support for MEDIA_IOC_G_TOPOLOGY ioctl

2015-09-08 Thread Sakari Ailus
Hi Mauro, On Tue, Sep 08, 2015 at 07:49:45AM -0300, Mauro Carvalho Chehab wrote: > Em Tue, 8 Sep 2015 10:26:29 +0300 > Sakari Ailus escreveu: > > > Hi Mauro, > > > > On Mon, Sep 07, 2015 at 10:23:57PM -0300, Mauro Carvalho Chehab wrote: > > > Em Tue, 8 Sep 2015 01:18:30

Re: [PATCH, newbie, HELP] lirc devices: Missing uapi header lirc.h

2015-09-08 Thread Randy Dunlap
[adding linux-media + Alan Cox] On 09/08/15 03:51, Alec Leamas wrote: > Hi, > > I have filed a bug + a patch at [1]. This is my first contact with the kernel > community, and I probably make it the wrong way. That said, after a first > acknowledge in the tracker that this indeed a bug, I've

cron job: media_tree daily build: OK

2015-09-08 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: Wed Sep 9 04:00:21 CEST 2015 git branch: test git hash: 50ef28a6ac216fd8b796257a3768fef8f57b917d gcc

V4L2 Overlay to reserved memory??

2015-09-08 Thread Douglas Renton
Hi, I am trying to port some code I wrote for V4l to V4L2. What I am trying to do is "overlay" video in memory instead of to a video card. This worked fine in V4L, I hope I can still pull such tricks... My "good" reason to this is that I want to be able to analyse the video in a "RTAI"

Re: [PATCH v1] media: uvcvideo: handle urb completion in a work queue

2015-09-08 Thread Alan Stern
On Tue, 8 Sep 2015, Hans de Goede wrote: > Hi, > > On 09/07/2015 06:23 PM, Mian Yousaf Kaukab wrote: > > urb completion callback is executed in host controllers interrupt > > context. To keep preempt disable time short, add urbs to a list on > > completion and schedule work to process the list.

Re: [PATCH v8 49/55] [media] media-device: add support for MEDIA_IOC_G_TOPOLOGY ioctl

2015-09-08 Thread Mauro Carvalho Chehab
Em Tue, 08 Sep 2015 16:34:59 +0300 Sakari Ailus escreveu: > Hi Mauro, > > On Tue, Sep 08, 2015 at 07:49:45AM -0300, Mauro Carvalho Chehab wrote: > > Em Tue, 8 Sep 2015 10:26:29 +0300 > > Sakari Ailus escreveu: > > > > > Hi Mauro, > > > > > > On Mon,