cron job: media_tree daily build: OK

2018-10-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 Oct 30 05:00:16 CET 2018 media-tree git hash:3b796aa60af087f5fec75aee9b17f2130f2b9adc media_build git

Re: [PATCH] media: dvb: fix a missing-check bug

2018-10-29 Thread Bing Bu Cao
I think need Cc to Lad, Prabhakar On 10/30/2018 02:46 AM, Wenwen Wang wrote: > Hello, > > Can anyone confirm this bug? Thanks! > > Wenwen > > On Fri, Oct 19, 2018 at 9:12 AM Wenwen Wang wrote: >> In dvb_audio_write(), the first byte of the user-space buffer 'buf' is >> firstly copied and checked

[PATCH 3/4] SoC camera: Remove the framework and the drivers

2018-10-29 Thread Sakari Ailus
The SoC camera framework has been obsolete for some time and it is no longer functional. A few drivers have been converted to the V4L2 sub-device API but for the rest the conversion has not taken place yet. In order to keep the tree clean and to avoid keep maintaining non-functional and obsolete c

[PATCH 4/4] SoC camera: Tidy the header

2018-10-29 Thread Sakari Ailus
Clean up the SoC camera framework header. It only exists now to keep board code compiling. The header can be removed once the board code dependencies to it has been removed. Signed-off-by: Sakari Ailus --- include/media/soc_camera.h | 335 - 1 file cha

[PATCH 2/4] tw9910: No SoC camera dependency

2018-10-29 Thread Sakari Ailus
The tw9910 driver does not depend on SoC camera framework. Don't include the header, but instead include media/v4l2-async.h which the driver really needs. Signed-off-by: Sakari Ailus --- drivers/media/i2c/tw9910.c | 1 + include/media/i2c/tw9910.h | 2 -- 2 files changed, 1 insertion(+), 2 delet

[PATCH 1/4] tw9910: Unregister async subdev at device unbind

2018-10-29 Thread Sakari Ailus
The async sub-device was added to the async list in probe but it was not removed in the driver's remove function. Fix this. Also unregister the async subdev before powering down the device. Signed-off-by: Sakari Ailus --- drivers/media/i2c/tw9910.c | 3 ++- 1 file changed, 2 insertions(+), 1 del

[PATCH 0/4] SoC camera removal

2018-10-29 Thread Sakari Ailus
Hi everyone, There's been some discussion on SoC camera removal and the idea has been to keep it around as long as the board code refers to it, to keep it compiling. The references to SoC camera in the board code are effectively references to a single struct, struct soc_camera_link plus a few mac

[PATCH v7 09/16] intel-ipu3: css: Add support for firmware management

2018-10-29 Thread Yong Zhi
Introduce functions to load and install ImgU FW blobs. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-css-fw.c | 264 + drivers/media/pci/intel/ipu3/ipu3-css-fw.h | 188 2 files changed, 452 insertions(+) create mode 100644 drivers

[PATCH v7 15/16] intel-ipu3: Add imgu top level pci device driver

2018-10-29 Thread Yong Zhi
This patch adds support for the Intel IPU v3 as found on Skylake and Kaby Lake SoCs. The driver glues v4l2, css(camera sub system) and other pieces together to perform its functions, it also loads the IPU3 firmware binary as part of its initialization. Signed-off-by: Yong Zhi Signed-off-by: Toma

[PATCH v7 01/16] v4l: Add Intel IPU3 meta buffer formats

2018-10-29 Thread Yong Zhi
Add IPU3-specific meta formats for parameter processing and 3A, DVS statistics: V4L2_META_FMT_IPU3_PARAMS V4L2_META_FMT_IPU3_STAT_3A Signed-off-by: Yong Zhi --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 4 2 files changed, 6 insertions(+) diff

[PATCH v7 05/16] intel-ipu3: abi: Add structs

2018-10-29 Thread Yong Zhi
This add all the structs of IPU3 firmware ABI. Signed-off-by: Yong Zhi Signed-off-by: Rajmohan Mani --- drivers/media/pci/intel/ipu3/ipu3-abi.h | 1350 +++ 1 file changed, 1350 insertions(+) diff --git a/drivers/media/pci/intel/ipu3/ipu3-abi.h b/drivers/media/pci/i

[PATCH v7 08/16] intel-ipu3: css: Add dma buff pool utility functions

2018-10-29 Thread Yong Zhi
The pools are used to store previous parameters set by user with the parameter queue. Due to pipelining, there needs to be multiple sets (up to four) of parameters which are queued in a host-to-sp queue. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-css-pool.c | 136 +

[PATCH v7 13/16] intel-ipu3: Add css pipeline programming

2018-10-29 Thread Yong Zhi
This provides helper library to be used by v4l2 level to program imaging pipelines and control the streaming. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-css.c | 1760 +++ 1 file changed, 1760 insertions(+) diff --git a/drivers/media/pci/intel/ipu3/

[PATCH v7 14/16] intel-ipu3: Add v4l2 driver based on media framework

2018-10-29 Thread Yong Zhi
Implement video driver that utilizes v4l2, vb2 queue support and media controller APIs. The driver exposes single subdevice and six nodes. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-v4l2.c | 1091 ++ 1 file changed, 1091 insertions(+) create mode 1

[PATCH v7 11/16] intel-ipu3: css: Compute and program ccs

2018-10-29 Thread Yong Zhi
A collection of routines that are mainly used to calculate the parameters for accelerator cluster. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-css-params.c | 2907 drivers/media/pci/intel/ipu3/ipu3-css-params.h | 25 + 2 files changed, 2932 insertions

[PATCH v7 03/16] v4l: Add Intel IPU3 meta data uAPI

2018-10-29 Thread Yong Zhi
These meta formats are used on Intel IPU3 ImgU video queues to carry 3A statistics and ISP pipeline parameters. V4L2_META_FMT_IPU3_3A V4L2_META_FMT_IPU3_PARAMS Signed-off-by: Yong Zhi Signed-off-by: Chao C Li Signed-off-by: Rajmohan Mani --- Documentation/media/uapi/v4l/meta-formats.rst

[PATCH v7 12/16] intel-ipu3: css: Initialize css hardware

2018-10-29 Thread Yong Zhi
This patch implements the functions to initialize and configure IPU3 h/w such as clock, irq and power. Signed-off-by: Yong Zhi Signed-off-by: Tomasz Figa --- drivers/media/pci/intel/ipu3/ipu3-css.c | 537 drivers/media/pci/intel/ipu3/ipu3-css.h | 203 +++

[PATCH v7 06/16] intel-ipu3: mmu: Implement driver

2018-10-29 Thread Yong Zhi
From: Tomasz Figa This driver translates IO virtual address to physical address based on two levels page tables. Signed-off-by: Tomasz Figa Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-mmu.c | 560 drivers/media/pci/intel/ipu3/ipu3-mmu.h | 35

[PATCH v7 02/16] doc-rst: Add Intel IPU3 documentation

2018-10-29 Thread Yong Zhi
From: Rajmohan Mani This patch adds the details about the IPU3 Imaging Unit driver. Change-Id: I560cecf673df2dcc3ec72767cf8077708d649656 Signed-off-by: Rajmohan Mani --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/ipu3.rst | 326 +

[PATCH v7 07/16] intel-ipu3: Implement DMA mapping functions

2018-10-29 Thread Yong Zhi
From: Tomasz Figa This driver uses IOVA space for buffer mapping through IPU3 MMU to transfer data between imaging pipelines and system DDR. Signed-off-by: Tomasz Figa Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-dmamap.c | 270 + drivers/media/pci

[PATCH v7 04/16] intel-ipu3: abi: Add register definitions and enum

2018-10-29 Thread Yong Zhi
Add macros and enums used for IPU3 firmware interface. Signed-off-by: Yong Zhi Signed-off-by: Rajmohan Mani --- drivers/media/pci/intel/ipu3/ipu3-abi.h | 661 1 file changed, 661 insertions(+) create mode 100644 drivers/media/pci/intel/ipu3/ipu3-abi.h diff --g

[PATCH v7 00/16] Intel IPU3 ImgU patchset

2018-10-29 Thread Yong Zhi
Hi, This series adds support for the Intel IPU3 (Image Processing Unit) ImgU which is essentially a modern memory-to-memory ISP. It implements raw Bayer to YUV image format conversion as well as a large number of other pixel processing algorithms for improving the image quality. Meta data formats

Re: [GIT PULL for v4.20-rc1] media updates

2018-10-29 Thread Linus Torvalds
On Mon, Oct 29, 2018 at 1:34 PM Mauro Carvalho Chehab wrote: > > media updates for v4.20-rc1 Pulled, Linus

Re: [PATCH] media: davinci_vpfe: fix a NULL pointer dereference bug

2018-10-29 Thread Wenwen Wang
Hello, Can anyone please confirm this bug and apply the patch? Thanks! Wenwen On Thu, Oct 4, 2018 at 11:00 AM Wenwen Wang wrote: > > In vpfe_isif_init(), there is a while loop to get the ISIF base address and > linearization table0 and table1 address. In the loop body, the function > platform_g

[GIT PULL for v4.20-rc1] media updates

2018-10-29 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.20-1 For: - New dvb frontend driver: lnbh29 - new sensor drivers: imx319 and imx 355 - Some old soc_camera driver renames to avoid conflict with new drivers; - new i.MX Pixel Pipeline (

KASAN: use-after-free Write in __vb2_cleanup_fileio

2018-10-29 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:9f51ae62c84a Merge git://git.kernel.org/pub/scm/linux/kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=130e059940 kernel config: https://syzkaller.appspot.com/x/.config?x=62118286bb772a24 da

Re: [PATCH] lirc.4: remove ioctls and feature bits which were never implemented

2018-10-29 Thread Alec Leamas
Hi all, On 29/10/18 18:30, Sean Young wrote: > Hi Michael, > > On Thu, Jul 12, 2018 at 02:21:18PM +0100, Sean Young wrote: >> On Thu, Jul 12, 2018 at 09:33:32AM -0300, Mauro Carvalho Chehab wrote: >>> Hi Michael/Alec, >>> >>> Em Fri, 18 May 2018 16:25:29 +0100 >>> Sean Young escreveu: >>> O

Re: [PATCH] media: dvb: fix a missing-check bug

2018-10-29 Thread Wenwen Wang
Hello, Can anyone confirm this bug? Thanks! Wenwen On Fri, Oct 19, 2018 at 9:12 AM Wenwen Wang wrote: > > In dvb_audio_write(), the first byte of the user-space buffer 'buf' is > firstly copied and checked to see whether this is a TS packet, which always > starts with 0x47 for synchronization p

Re: [PATCH v3 0/9] TVP5150 fixes and new features

2018-10-29 Thread Marco Felsch
Hi Mauro, just a reminder, Rob already added his ack/rev-by tags. Thanks, Marco On 18-09-18 15:14, Marco Felsch wrote: > Hi, > > this is my v3 with the integrated reviews from my v2 [1]. This serie > applies to Mauro's experimental.git [2]. > > @Mauro: > Patch ("media: tvp5150: fix irq_request

[PATCH v2 2/6] media: mt9m111: add streaming check to set_fmt

2018-10-29 Thread Marco Felsch
From: Michael Grzeschik Currently set_fmt don't care about the streaming status, so the format can be changed during streaming. This can lead into wrong behaviours. Check if the device is already streaming and return -EBUSY to avoid wrong behaviours. Signed-off-by: Michael Grzeschik Signed-off

[PATCH v2 3/6] media: mt9m111: add support to select formats and fps for {Q,SXGA}

2018-10-29 Thread Marco Felsch
From: Michael Grzeschik This patch implements the framerate selection using the skipping and readout power-modi features. The power-modi cut the framerate by half and each context has an independent selection bit. The same applies to the 2x skipping feature. Signed-off-by: Michael Grzeschik Sig

[PATCH v2 6/6] dt-bindings: media: mt9m111: add pclk-sample property

2018-10-29 Thread Marco Felsch
Add the pclk-sample property to the list of optional properties for the mt9m111 camera sensor. Signed-off-by: Marco Felsch --- Documentation/devicetree/bindings/media/i2c/mt9m111.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/mt9m111.txt

[PATCH v2 4/6] media: mt9m111: allow to setup pixclk polarity

2018-10-29 Thread Marco Felsch
From: Enrico Scholz The chip can be configured to output data transitions on the rising or falling edge of PIXCLK (Datasheet R58:1[9]), default is on the falling edge. Parsing the fw-node is made in a subfunction to bundle all (future) dt-parsing / fw-parsing stuff. Signed-off-by: Enrico Scholz

[PATCH v2 1/6] media: mt9m111: add s_stream callback

2018-10-29 Thread Marco Felsch
Add callback to check if we are already streaming. Now other callbacks can check the state and return -EBUSY if we already streaming. Signed-off-by: Marco Felsch --- drivers/media/i2c/mt9m111.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/media/i2c/mt9m111.c b/drivers/

[PATCH v2 0/6] media: mt9m111 features

2018-10-29 Thread Marco Felsch
Hi, this is the v2 of [1]. I fixed some issues I made during converting Enrico's and Michael's patches and rebased it on top of media-tree/master. Please see commit comments for further information. The dt-bindings patches are new as result of Sakari's review [2]. [1] https://www.spinics.net/lis

[PATCH v2 5/6] dt-bindings: media: mt9m111: adapt documentation to be more clear

2018-10-29 Thread Marco Felsch
Replace the vague binding by a more verbose. Remove the remote property from the example since the driver don't support such a property. Also remove the bus-width property from the endpoint since the driver don't take care of it. Signed-off-by: Marco Felsch --- .../devicetree/bindings/media/i2c/

[PATCH] vivid: set min width/height to a value > 0

2018-10-29 Thread Hans Verkuil
The capture DV timings capabilities allowed for a minimum width and height of 0. So passing a timings struct with 0 values is allowed and will later cause a division by zero. Ensure that the width and height must be >= 16 to avoid this. Signed-off-by: Hans Verkuil Reported-by: syzbot+57c3d83d71

Re: [PATCH] lirc.4: remove ioctls and feature bits which were never implemented

2018-10-29 Thread Sean Young
Hi Michael, On Thu, Jul 12, 2018 at 02:21:18PM +0100, Sean Young wrote: > On Thu, Jul 12, 2018 at 09:33:32AM -0300, Mauro Carvalho Chehab wrote: > > Hi Michael/Alec, > > > > Em Fri, 18 May 2018 16:25:29 +0100 > > Sean Young escreveu: > > > > > On Sun, May 06, 2018 at 12:34:53PM +0200, Michael K

WARNING in __vb2_queue_cancel

2018-10-29 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:9f51ae62c84a Merge git://git.kernel.org/pub/scm/linux/kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11f0dbe540 kernel config: https://syzkaller.appspot.com/x/.config?x=62118286bb772a24 da

divide error in vivid_vid_cap_s_dv_timings

2018-10-29 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b179f0826c6a Add linux-next specific files for 20181029 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=175ea9c540 kernel config: https://syzkaller.appspot.com/x/.config?x=6b2b22387bad67fc

Re: INFO: task hung in vivid_stop_generating_vid_cap

2018-10-29 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:9f51ae62c84a Merge git://git.kernel.org/pub/scm/linux/kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14bfad7b40 kernel config: https://syzkaller.appspot.com/x/.config?x=621182

NPE with atmel-isc when using the ov5640 driver

2018-10-29 Thread Martin Townsend
Hi, Apologies if this is the wrong mailing list and if so could you advise me on the correct one. I'm trying to use the OmniVision ov5640 camera sensor with the ATMEL SAMA5D2 using it's Image Sensor Controller (ISC). I've seen a link where they have this controller working with the ov7670 and ov

Re: i.MX6 MIPI-CSI2 OV5640 Camera testing on Mainline Linux

2018-10-29 Thread Fabio Estevam
Hi Adam, On Sun, Oct 28, 2018 at 3:58 PM Adam Ford wrote: > Does anyone know when the media branch get's merged into the mainline > kernel? I assume we're in the merge window with 4.19 just having been > released. Once these have been merged into the mainline, I'll go > through and start reque

KASAN: use-after-free Read in __vb2_perform_fileio

2018-10-29 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8c60c36d0b8c Add linux-next specific files for 20181019 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=13c73a3340 kernel config: https://syzkaller.appspot.com/x/.config?x=ddc97ab84fb1ff2a dashb

[PATCH] vivid: fix error handling of kthread_run

2018-10-29 Thread Hans Verkuil
kthread_run returns an error pointer, but elsewhere in the code dev->kthread_vid_cap/out is checked against NULL. If kthread_run returns an error, then set the pointer to NULL. I chose this method over changing all kthread_vid_cap/out tests elsewhere since this is more robust. Signed-off-by: H

Re: [PATCH v2 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2018-10-29 Thread Tomasz Figa
On Mon, Oct 29, 2018 at 7:06 PM Tomasz Figa wrote: > > Hi Stanimir, > > On Mon, Oct 29, 2018 at 6:45 PM Stanimir Varbanov > wrote: > > > > Hi Tomasz, > > > > On 10/22/2018 05:48 PM, Tomasz Figa wrote: > > > Due to complexity of the video decoding process, the V4L2 drivers of > > > stateful decode

Re: [PATCH v2 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2018-10-29 Thread Tomasz Figa
Hi Stanimir, On Mon, Oct 29, 2018 at 6:45 PM Stanimir Varbanov wrote: > > Hi Tomasz, > > On 10/22/2018 05:48 PM, Tomasz Figa wrote: > > Due to complexity of the video decoding process, the V4L2 drivers of > > stateful decoder hardware require specific sequences of V4L2 API calls > > to be followe

Re: [PATCH v2 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2018-10-29 Thread Stanimir Varbanov
Hi Tomasz, On 10/22/2018 05:48 PM, Tomasz Figa wrote: > Due to complexity of the video decoding process, the V4L2 drivers of > stateful decoder hardware require specific sequences of V4L2 API calls > to be followed. These include capability enumeration, initialization, > decoding, seek, pause, dyn

INFO: task hung in vivid_stop_generating_vid_cap

2018-10-29 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8c60c36d0b8c Add linux-next specific files for 20181019 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1608ccf540 kernel config: https://syzkaller.appspot.com/x/.config?x=ddc97ab84fb1ff2a dashb

KASAN: null-ptr-deref Write in kthread_stop

2018-10-29 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8c60c36d0b8c Add linux-next specific files for 20181019 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16128d7b40 kernel config: https://syzkaller.appspot.com/x/.config?x=ddc97ab84fb1ff2a dashb