cron job: media_tree daily build: ERRORS

2016-08-29 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: Tue Aug 30 04:00:18 CEST 2016 git branch: test git hash: fb6609280db902bd5d34445fba1c926e95e63914 gcc

Re: [PATCH v5 0/6] Add Meson 8b / GXBB support to the IR driver

2016-08-29 Thread Kevin Hilman
Martin Blumenstingl writes: > Newer Amlogic platforms (Meson 8b and GXBB) use a slightly different > register layout for their Infrared Remoete Controller. The decoder mode > is now configured in another register. Without the changes to the > meson-ir driver

Re: [PATCH] dma-buf/sync-file: Avoid enable fence signaling if poll(.timeout=0)

2016-08-29 Thread Gustavo Padovan
Hi Chris, 2016-08-29 Chris Wilson : > If we being polled with a timeout of zero, a nonblocking busy query, > we don't need to install any fence callbacks as we will not be waiting. > As we only install the callback once, the overhead comes from the atomic > bit test

[PATCH] dma-buf/sync-file: Avoid enable fence signaling if poll(.timeout=0)

2016-08-29 Thread Chris Wilson
If we being polled with a timeout of zero, a nonblocking busy query, we don't need to install any fence callbacks as we will not be waiting. As we only install the callback once, the overhead comes from the atomic bit test that also causes serialisation between threads. Signed-off-by: Chris

[PATCH v5 09/13] media: platform: pxa_camera: remove set_crop

2016-08-29 Thread Robert Jarzmik
This is to be seen as a regression as the set_crop function is removed. This is a temporary situation in the v4l2 porting, and will have to be added later. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 76 -- 1

[PATCH v5 10/13] media: platform: pxa_camera: make a standalone v4l2 device

2016-08-29 Thread Robert Jarzmik
This patch removes the soc_camera API dependency from pxa_camera. In the current status : - all previously captures are working the same on pxa270 - the s_crop() call was removed, judged not working (see what happens soc_camera_s_crop() when get_crop() == NULL) - if the pixel clock is

[PATCH v5 08/13] media: platform: pxa_camera: add buffer sequencing

2016-08-29 Thread Robert Jarzmik
Add sequence numbers to completed buffers. Signed-off-by: Robert Jarzmik --- Since v3: reset buffer sequence number in start_streaming() --- drivers/media/platform/soc_camera/pxa_camera.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v5 12/13] media: platform: pxa_camera: change stop_streaming semantics

2016-08-29 Thread Robert Jarzmik
Instead of the legacy behavior where it was required to wait for all video buffers to be finished by the hardware, use a cancel like strategy : as soon as the stop_streaming() call is done, abort all DMA transfers, report the already buffers as failed and return. This makes stop_streaming() more

[PATCH v5 05/13] media: platform: pxa_camera: trivial move of functions

2016-08-29 Thread Robert Jarzmik
Move the functions in the file to be regrouped into meaningful blocks : 1. pxa camera core handling functions, manipulating the herdware 2. videobuf2 functions, dealing with video buffers 3. video ioctl (vidioc) related functions 4. driver probing, removal, suspend and resume This patch

[PATCH v5 03/13] media: mt9m111: move mt9m111 out of soc_camera

2016-08-29 Thread Robert Jarzmik
As the mt9m111 is now working as a standalone v4l2 subdevice sensor, move it out of soc_camera directory and severe its dependency on soc_camera. Signed-off-by: Robert Jarzmik --- drivers/media/i2c/Kconfig |7 + drivers/media/i2c/Makefile |

[PATCH v5 02/13] media: mt9m111: use only the SRGB colorspace

2016-08-29 Thread Robert Jarzmik
mt9m111 being a camera sensor, its colorspace should always be SRGB, for both RGB based formats or YCbCr based ones. Signed-off-by: Robert Jarzmik --- drivers/media/i2c/soc_camera/mt9m111.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v5 13/13] media: platform: pxa_camera: move pxa_camera out of soc_camera

2016-08-29 Thread Robert Jarzmik
As the conversion to a v4l2 standalone device is finished, move pxa_camera one directory up and finish severing any dependency to soc_camera. Signed-off-by: Robert Jarzmik --- drivers/media/platform/Kconfig |8 + drivers/media/platform/Makefile

[PATCH v5 06/13] media: platform: pxa_camera: introduce sensor_call

2016-08-29 Thread Robert Jarzmik
Introduce sensor_call(), which will be used for all sensor invocations. This is a preparation move to v4l2 device conversion, ie. soc_camera adherence removal. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 27

[PATCH v5 04/13] media: platform: pxa_camera: convert to vb2

2016-08-29 Thread Robert Jarzmik
Convert pxa_camera from videobuf to videobuf2. As the soc_camera was already compatible with videobuf2, the port is quite straightforward. The special case of this code in which the vb2 to prepare is "too big" in terms of size for the new capture format, the pxa_camera will fail. Signed-off-by:

[PATCH v5 07/13] media: platform: pxa_camera: make printk consistent

2016-08-29 Thread Robert Jarzmik
Make all print consistent by always using : - dev_xxx(pcdev_to_dev(pcdev), ) This prepares the soc_camera adherence removal by making these call rely on only pcdev, and not the soc_camera icd structure. Signed-off-by: Robert Jarzmik ---

[PATCH v5 11/13] media: platform: pxa_camera: add debug register access

2016-08-29 Thread Robert Jarzmik
Add pxa_camera registers access through advanced video debugging. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 32 ++ 1 file changed, 32 insertions(+) diff --git

[PATCH v5 00/13] pxa_camera transition to v4l2 standalone device

2016-08-29 Thread Robert Jarzmik
There is no change between v4 and v5, ie. the global diff is empty, only one line was shifted to prevent breaking bisectablility. All the text in https://lkml.org/lkml/2016/8/15/609 is still applicable. Cheers. -- Robert Robert Jarzmik (13): media: mt9m111: make a standalone v4l2 subdevice

[PATCH v5 01/13] media: mt9m111: make a standalone v4l2 subdevice

2016-08-29 Thread Robert Jarzmik
Remove the soc_camera adherence. Mostly the change removes the power manipulation provided by soc_camera, and instead : - powers on the sensor when the s_power control is activated - powers on the sensor in initial probe - enables and disables the MCLK provided to it in power on/off

Re: [PATCH v3] docs-rst: ignore arguments on macro definitions

2016-08-29 Thread Jani Nikula
On Mon, 29 Aug 2016, Mauro Carvalho Chehab wrote: > Em Mon, 29 Aug 2016 16:12:39 +0200 > Markus Heiser escreveu: > >> Am 29.08.2016 um 15:13 schrieb Mauro Carvalho Chehab >> : >> >> > A macro definition is mapped

Re: [PATCH v3] docs-rst: ignore arguments on macro definitions

2016-08-29 Thread Mauro Carvalho Chehab
Em Mon, 29 Aug 2016 16:12:39 +0200 Markus Heiser escreveu: > Am 29.08.2016 um 15:13 schrieb Mauro Carvalho Chehab > : > > > A macro definition is mapped via .. c:function:: at the > > ReST markup when using the following kernel-doc tag: > >

Re: [PATCH 3/8] media: vidc: decoder: add video decoder files

2016-08-29 Thread Stanimir Varbanov
Hi Hans, +static int vdec_start_streaming(struct vb2_queue *q, unsigned int count) +{ + struct vidc_inst *inst = vb2_get_drv_priv(q); + struct hfi_core *hfi = >core->hfi; + struct device *dev = inst->core->dev; + struct hfi_buffer_requirements bufreq; +

Re: [PATCH v3] docs-rst: ignore arguments on macro definitions

2016-08-29 Thread Markus Heiser
Am 29.08.2016 um 15:13 schrieb Mauro Carvalho Chehab : > A macro definition is mapped via .. c:function:: at the > ReST markup when using the following kernel-doc tag: > > /** >* DMX_FE_ENTRY - Casts elements in the list of registered >*

[PATCH] [media]: constify i2c_algorithm structures

2016-08-29 Thread Julia Lawall
These i2c_algorithm structures are only stored in the alg field of an i2c_adapter structure, which is declared as const. This declare the structures as const as well. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r disable optional_qualifier@

[PATCH v5 3/3] st-hva: add H.264 video encoding support

2016-08-29 Thread Jean-Christophe Trotin
This patch adds the H.264 video encoding capability in the V4L2 HVA video encoder driver for STMicroelectronics SoC (hva-h264.c). The main supported features are: - profile: baseline, main, high, stereo high - level: up to 4.2 - bitrate mode: CBR, VBR - entropy mode: CABAC, CAVLC - video aspect:

[PATCH v5 2/3] st-hva: multi-format video encoder V4L2 driver

2016-08-29 Thread Jean-Christophe Trotin
This patch adds V4L2 HVA (Hardware Video Accelerator) video encoder driver for STMicroelectronics SoC. It uses the V4L2 mem2mem framework. This patch only contains the core parts of the driver: - the V4L2 interface with the userland (hva-v4l2.c) - the hardware services (hva-hw.c) - the memory

[PATCH v5 1/3] Documentation: DT: add bindings for ST HVA

2016-08-29 Thread Jean-Christophe Trotin
This patch adds DT binding documentation for STMicroelectronics hva driver. Signed-off-by: Yannick Fertre Signed-off-by: Jean-Christophe Trotin --- .../devicetree/bindings/media/st,st-hva.txt| 24 ++ 1 file

[PATCH v5 0/3] support of v4l2 encoder for STMicroelectronics SOC

2016-08-29 Thread Jean-Christophe Trotin
version 5: - Compilation problem with 4.8-rc1 corrected: unsigned long used for dma_attrs - The video bitrate (V4L2_CID_MPEG_VIDEO_BITRATE) and the CPB size (V4L2_CID_MPEG_VIDEO_H264_CPB_SIZE) were respectively considered in kbps and kb, while the V4L2 API specifies them in bps and kB. This is

[PATCH v3] docs-rst: ignore arguments on macro definitions

2016-08-29 Thread Mauro Carvalho Chehab
A macro definition is mapped via .. c:function:: at the ReST markup when using the following kernel-doc tag: /** * DMX_FE_ENTRY - Casts elements in the list of registered * front-ends from the generic type struct list_head * to the

[PATCH v2] docs-rst: ignore arguments on macro definitions

2016-08-29 Thread Mauro Carvalho Chehab
A macro definition is mapped via .. c:function:: at the ReST markup when using the following kernel-doc tag: /** * DMX_FE_ENTRY - Casts elements in the list of registered * front-ends from the generic type struct list_head * to the

[PATCH] docs-rst: ignore arguments on macro definitions

2016-08-29 Thread Mauro Carvalho Chehab
A macro definition is mapped via .. c:function:: at the ReST markup when using the following kernel-doc tag: /** * DMX_FE_ENTRY - Casts elements in the list of registered * front-ends from the generic type struct list_head * to the

Re: [PATCH v2 1/4] v4l: Add metadata buffer type and format

2016-08-29 Thread Sakari Ailus
Hi Laurent, Thanks for the patchset! On Wed, Aug 17, 2016 at 03:20:27PM +0300, Laurent Pinchart wrote: > The metadata buffer type is used to transfer metadata between userspace > and kernelspace through a V4L2 buffers queue. It comes with a new > metadata capture capability and format

[PATCH 11/11] dma-buf: Do a fast lockless check for poll with timeout=0

2016-08-29 Thread Chris Wilson
Currently we install a callback for performing poll on a dma-buf, irrespective of the timeout. This involves taking a spinlock, as well as unnecessary work, and greatly reduces scaling of poll(.timeout=0) across multiple threads. We can query whether the poll will block prior to installing the

[PATCH 06/11] dma-buf: Introduce fence_get_rcu_safe()

2016-08-29 Thread Chris Wilson
This variant of fence_get_rcu() takes an RCU protected pointer to a fence and carefully returns a reference to the fence ensuring that it is not reallocated as it does. This is required when mixing fences and SLAB_DESTROY_BY_RCU - although it serves a more pedagogical function atm Signed-off-by:

[PATCH 09/11] dma-buf: Restart reservation_object_test_signaled_rcu() after writes

2016-08-29 Thread Chris Wilson
In order to be completely generic, we have to double check the read seqlock after acquiring a reference to the fence. If the driver is allocating fences from a SLAB_DESTROY_BY_RCU, or similar freelist, then within an RCU grace period a fence may be freed and reallocated. The RCU read side critical

[PATCH 08/11] dma-buf: Restart reservation_object_wait_timeout_rcu() after writes

2016-08-29 Thread Chris Wilson
In order to be completely generic, we have to double check the read seqlock after acquiring a reference to the fence. If the driver is allocating fences from a SLAB_DESTROY_BY_RCU, or similar freelist, then within an RCU grace period a fence may be freed and reallocated. The RCU read side critical

[PATCH 07/11] dma-buf: Restart reservation_object_get_fences_rcu() after writes

2016-08-29 Thread Chris Wilson
In order to be completely generic, we have to double check the read seqlock after acquiring a reference to the fence. If the driver is allocating fences from a SLAB_DESTROY_BY_RCU, or similar freelist, then within an RCU grace period a fence may be freed and reallocated. The RCU read side critical

[PATCH 10/11] dma-buf: Use seqlock to close RCU race in test_signaled_single

2016-08-29 Thread Chris Wilson
With the seqlock now extended to cover the lookup of the fence and its testing, we can perform that testing solely under the seqlock guard and avoid the effective locking and serialisation of acquiring a reference to the request. As the fence is RCU protected we know it cannot disappear as we