cron job: media_tree daily build: ERRORS

2018-04-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: Thu Apr 12 05:00:18 CEST 2018 media-tree git hash:b284d4d5a6785f8cd07eda2646a95782373cd01e media_build

[PATCH] media: vcodec: fix ptr_ret.cocci warnings

2018-04-11 Thread kbuild test robot
From: Fengguang Wu drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1087:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Fixes: 648a9576932a ("media: vcodec: fix

drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:1087:1-3: WARNING: PTR_ERR_OR_ZERO can be used

2018-04-11 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8837c70d531a1788f975c366c254a5cb973a5291 commit: 648a9576932a26e1c6a157b4c9345204de975957 media: vcodec: fix error return value from mtk_jpeg_clk_init() date: 7 days ago coccinelle warnings: (new ones

[PATCH] media: cx88: enable IR transmitter on HVR-1300

2018-04-11 Thread Sean Young
The HVR 1300 has a Z8F0811 IR device, which can do both IR transmit and receive. The transmit part was not probed. Signed-off-by: Sean Young --- drivers/media/pci/cx88/cx88-input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

Emulated formats do not allow to use highest FPS of some cameras

2018-04-11 Thread Ochi
Hello, I'm using a Logitech Brio webcam which is able to capture video at 60+ FPS when using MJPEG input format at e.g. 1280x720 pixels, but only up to 30 FPS when using other formats such as YUYV. When using the cam with OBS Studio, the MJPEG input format is not currently supported by OBS

Re: a 4.16 kernel with Debian 9.4 "stretch" causes a log explosion

2018-04-11 Thread Guennadi Liakhovetski
On Wed, 11 Apr 2018, Kieran Bingham wrote: > Hi Guennadi, > > On 11/04/18 18:06, Guennadi Liakhovetski wrote: > > > > > Just figured out this commit > > From: Edgar Thier > Date: Thu, 12 Oct 2017 03:54:17 -0400 > Subject: [PATCH] media:

Re: [PATCH] media: uvcvideo: Prevent setting unavailable flags

2018-04-11 Thread Guennadi Liakhovetski
Hi Kieran, Thanks for the patch, it fixed a problem I was having with media master, working with a Logitech UVC 1.5 camera. On Wed, 21 Mar 2018, Kieran Bingham wrote: > The addition of an extra operation to use the GET_INFO command > overwrites all existing flags from the uvc_ctrls table. This

Re: [PATCH] media: ddbridge: better handle optional spin locks at the code

2018-04-11 Thread Ralph Metzler
Mauro Carvalho Chehab writes: > Em Wed, 11 Apr 2018 18:03:15 +0200 > Daniel Scheller escreveu: > > > Am Wed, 11 Apr 2018 08:03:37 -0400 > > schrieb Mauro Carvalho Chehab : > > > > > Currently, ddbridge produces 4 warnings on sparse: >

Re: a 4.16 kernel with Debian 9.4 "stretch" causes a log explosion

2018-04-11 Thread Kieran Bingham
Hi Guennadi, On 11/04/18 18:06, Guennadi Liakhovetski wrote: Just figured out this commit From: Edgar Thier Date: Thu, 12 Oct 2017 03:54:17 -0400 Subject: [PATCH] media: uvcvideo: Apply flags from device to actual properties

Re: [PATCH] media: ddbridge: better handle optional spin locks at the code

2018-04-11 Thread Daniel Scheller
Am Wed, 11 Apr 2018 13:33:02 -0300 schrieb Mauro Carvalho Chehab : > Em Wed, 11 Apr 2018 18:03:15 +0200 > Daniel Scheller escreveu: > > > Am Wed, 11 Apr 2018 08:03:37 -0400 > > schrieb Mauro Carvalho Chehab : > > >

Re: a 4.16 kernel with Debian 9.4 "stretch" causes a log explosion

2018-04-11 Thread Guennadi Liakhovetski
Hi Kieran, On Wed, 11 Apr 2018, Kieran Bingham wrote: > Hi Guennadi, > > On 11/04/18 17:17, Kieran Bingham wrote: > > Hi Guennadi, > > > > On 11/04/18 10:56, Guennadi Liakhovetski wrote: > >> Hi Laurent, > >> > >> Not sure whether that's a kernel or a user-space problem, but UVC related > >>

Re: [PATCH] media: ddbridge: better handle optional spin locks at the code

2018-04-11 Thread Mauro Carvalho Chehab
Em Wed, 11 Apr 2018 18:03:15 +0200 Daniel Scheller escreveu: > Am Wed, 11 Apr 2018 08:03:37 -0400 > schrieb Mauro Carvalho Chehab : > > > Currently, ddbridge produces 4 warnings on sparse: > >

Re: [PATCH v2] media: omap3isp: fix unbalanced dma_iommu_mapping

2018-04-11 Thread Sakari Ailus
On Mon, Mar 26, 2018 at 11:40:58AM -0500, Suman Anna wrote: > Hi Mauro, > > On 03/21/2018 05:26 AM, Laurent Pinchart wrote: > > Hi Suman, > > > > Thank you for the patch. > > > > On Wednesday, 14 March 2018 17:41:36 EET Suman Anna wrote: > >> The OMAP3 ISP driver manages its MMU mappings

[GIT FIXES for 4.17] omap3isp IOMMU error handling fix

2018-04-11 Thread Sakari Ailus
Hi Mauro, Here's a fix for the omap3isp driver's IOMMU error handling in probe. Please pull. The following changes since commit a95845ba184b854106972f5d8f50354c2d272c06: media: v4l2-core: fix size of devnode_nums[] bitarray (2018-04-05 06:41:30 -0400) are available in the git repository

Re: a 4.16 kernel with Debian 9.4 "stretch" causes a log explosion

2018-04-11 Thread Kieran Bingham
Hi Guennadi, On 11/04/18 17:17, Kieran Bingham wrote: > Hi Guennadi, > > On 11/04/18 10:56, Guennadi Liakhovetski wrote: >> Hi Laurent, >> >> Not sure whether that's a kernel or a user-space problem, but UVC related >> anyway. I've got a UVC 1.5 (!) Logitech camera, that used to work fine >>

Re: a 4.16 kernel with Debian 9.4 "stretch" causes a log explosion

2018-04-11 Thread Kieran Bingham
Hi Guennadi, On 11/04/18 10:56, Guennadi Liakhovetski wrote: > Hi Laurent, > > Not sure whether that's a kernel or a user-space problem, but UVC related > anyway. I've got a UVC 1.5 (!) Logitech camera, that used to work fine > with earlier kernels. I now installed "media 4.16" and saw, that

Re: [RFCv11 PATCH 04/29] media-request: core request support

2018-04-11 Thread Mauro Carvalho Chehab
Em Wed, 11 Apr 2018 18:35:14 +0300 Sakari Ailus escreveu: > On Wed, Apr 11, 2018 at 12:17:27PM -0300, Mauro Carvalho Chehab wrote: > > Em Wed, 11 Apr 2018 18:02:19 +0300 > > Sakari Ailus escreveu: > > > > > On Wed, Apr 11, 2018 at 10:49:35AM -0300,

Re: [PATCH] media: ddbridge: better handle optional spin locks at the code

2018-04-11 Thread Daniel Scheller
Am Wed, 11 Apr 2018 08:03:37 -0400 schrieb Mauro Carvalho Chehab : > Currently, ddbridge produces 4 warnings on sparse: > drivers/media/pci/ddbridge/ddbridge-core.c:495:9: warning: context > imbalance in 'ddb_output_start' - different lock contexts for basic block

Re: [RFCv11 PATCH 04/29] media-request: core request support

2018-04-11 Thread Sakari Ailus
On Wed, Apr 11, 2018 at 12:17:27PM -0300, Mauro Carvalho Chehab wrote: > Em Wed, 11 Apr 2018 18:02:19 +0300 > Sakari Ailus escreveu: > > > On Wed, Apr 11, 2018 at 10:49:35AM -0300, Mauro Carvalho Chehab wrote: > > > Em Wed, 11 Apr 2018 16:21:16 +0300 > > > Sakari Ailus

Smatch and sparse errors

2018-04-11 Thread Mauro Carvalho Chehab
Hi Hans/Jasmin, There is a regression with sparse and upstream Kernels, with also affect smatch. Due to that, both will produce hundreds of new errors on all places that directly or indirectly use min() or max(). Those were caused by those upstream patches: 3c8ba0d61d04 ("kernel.h:

Re: [RFCv11 PATCH 04/29] media-request: core request support

2018-04-11 Thread Mauro Carvalho Chehab
Em Wed, 11 Apr 2018 18:02:19 +0300 Sakari Ailus escreveu: > On Wed, Apr 11, 2018 at 10:49:35AM -0300, Mauro Carvalho Chehab wrote: > > Em Wed, 11 Apr 2018 16:21:16 +0300 > > Sakari Ailus escreveu: > > > > > > > > > > Btw, this is a very good reason

Re: [RFCv11 PATCH 04/29] media-request: core request support

2018-04-11 Thread Sakari Ailus
On Wed, Apr 11, 2018 at 10:49:35AM -0300, Mauro Carvalho Chehab wrote: > Em Wed, 11 Apr 2018 16:21:16 +0300 > Sakari Ailus escreveu: > > > > > > > Btw, this is a very good reason why you should define the ioctl to > > > > > have an integer argument instead of a struct with

Re: [RFCv11 PATCH 26/29] vim2m: use workqueue

2018-04-11 Thread Paul Kocialkowski
Hi, On Mon, 2018-04-09 at 16:20 +0200, Hans Verkuil wrote: > From: Hans Verkuil > > v4l2_ctrl uses mutexes, so we can't setup a ctrl_handler in > interrupt context. Switch to a workqueue instead. See one comment below. > Signed-off-by: Hans Verkuil

Re: [RFCv11 PATCH 27/29] vim2m: support requests

2018-04-11 Thread Paul Kocialkowski
Hi, On Mon, 2018-04-09 at 16:20 +0200, Hans Verkuil wrote: > From: Hans Verkuil > > Add support for requests to vim2m. Depending on where STREAMON happens in the sequence, there is a possibility that v4l2_m2m_try_schedule is never called and thus that device_run never

Re: [RFCv11 PATCH 04/29] media-request: core request support

2018-04-11 Thread Mauro Carvalho Chehab
Em Wed, 11 Apr 2018 16:21:16 +0300 Sakari Ailus escreveu: > > > > Btw, this is a very good reason why you should define the ioctl to > > > > have an integer argument instead of a struct with a __s32 field > > > > on it, as per my comment to patch 02/29: > > > > > > > >

[PATCH 5/5] drm/amdgpu: add independent DMA-buf import v3

2018-04-11 Thread Christian König
Instead of relying on the DRM functions just implement our own import functions. This adds support for taking care of unpinned DMA-buf. v2: enable for all exporters, not just amdgpu, fix invalidation handling, lock reservation object while setting callback v3: change to new dma_buf attach

[PATCH 1/5] dma-buf: use parameter structure for dma_buf_attach

2018-04-11 Thread Christian König
Move the parameters into a structure to make it simpler to extend it in follow up patches. This also adds the importer private as parameter so that we can directly work with a completely filled in attachment structure. Signed-off-by: Christian König ---

[PATCH 3/5] drm/ttm: remove the backing store if no placement is given

2018-04-11 Thread Christian König
Pipeline removal of the BOs backing store when the placement is given during validation. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c

[PATCH 4/5] drm/amdgpu: add independent DMA-buf export v2

2018-04-11 Thread Christian König
Instead of relying on the DRM functions just implement our own export functions. This adds support for taking care of unpinned DMA-buf. v2: fix unintended recursion, remove debugging leftovers Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h

[PATCH 2/5] dma-buf: add optional invalidate_mappings callback v3

2018-04-11 Thread Christian König
Each importer can now provide an invalidate_mappings callback. This allows the exporter to provide the mappings without the need to pin the backing store. v2: don't try to invalidate mappings when the callback is NULL, lock the reservation obj while using the attachments, add helper to

Re: [RFCv11 PATCH 04/29] media-request: core request support

2018-04-11 Thread Sakari Ailus
Hi Mauro, On Tue, Apr 10, 2018 at 11:51:43AM -0300, Mauro Carvalho Chehab wrote: > Em Tue, 10 Apr 2018 15:32:34 +0300 > Sakari Ailus escreveu: > > > Hi Mauro and Hans, > > > > On Tue, Apr 10, 2018 at 07:32:06AM -0300, Mauro Carvalho Chehab wrote: > > ... > > > > +static

Re: [PATCH v7 2/2] uvcvideo: handle control pipe protocol STALLs

2018-04-11 Thread Guennadi Liakhovetski
Hi Laurent, First just answers to your questions: On Sat, 7 Apr 2018, Laurent Pinchart wrote: > Hi Guennadi, > > Thank you for the patch. > > On Friday, 23 March 2018 11:24:01 EEST Laurent Pinchart wrote: > > From: Guennadi Liakhovetski > > > > When a command ends up

[PATCH] media: ddbridge: better handle optional spin locks at the code

2018-04-11 Thread Mauro Carvalho Chehab
Currently, ddbridge produces 4 warnings on sparse: drivers/media/pci/ddbridge/ddbridge-core.c:495:9: warning: context imbalance in 'ddb_output_start' - different lock contexts for basic block drivers/media/pci/ddbridge/ddbridge-core.c:510:9: warning: context imbalance in

Re: sensor driver - v4l2 - MEDIA_BUS_FMT

2018-04-11 Thread Sakari Ailus
On Wed, Apr 11, 2018 at 03:33:50PM +0530, asadpt iqroot wrote: > Hi All, > > We are trying develop a sensor driver code for hdmi2csi adapter. > Reguired data format is RGB888. But in media format header file, we > could see three macros related to RGB888. Hardware connection is mipi > csi2. > >

Re: [RFCv11 PATCH 03/29] media-request: allocate media requests

2018-04-11 Thread Mauro Carvalho Chehab
Em Tue, 10 Apr 2018 14:14:30 +0300 Sakari Ailus escreveu: > > > /** > > > @@ -88,6 +96,8 @@ struct media_device_ops { > > > * @disable_source: Disable Source Handler function pointer > > > * > > > * @ops: Operation handler callbacks > > > + * @req_lock:Serialise

sensor driver - v4l2 - MEDIA_BUS_FMT

2018-04-11 Thread asadpt iqroot
Hi All, We are trying develop a sensor driver code for hdmi2csi adapter. Reguired data format is RGB888. But in media format header file, we could see three macros related to RGB888. Hardware connection is mipi csi2. #define MEDIA_BUS_FMT_RGB888_1X24 0x100a #define MEDIA_BUS_FMT_RGB888_2X12_BE

a 4.16 kernel with Debian 9.4 "stretch" causes a log explosion

2018-04-11 Thread Guennadi Liakhovetski
Hi Laurent, Not sure whether that's a kernel or a user-space problem, but UVC related anyway. I've got a UVC 1.5 (!) Logitech camera, that used to work fine with earlier kernels. I now installed "media 4.16" and saw, that the kernel log was filling with messages like uvcvideo: Failed to query

Re: [RFCv11 PATCH 14/29] v4l2-ctrls: add core request support

2018-04-11 Thread Tomasz Figa
Hi Hans, On Mon, Apr 9, 2018 at 11:20 PM Hans Verkuil wrote: > From: Hans Verkuil > Integrate the request support. This adds the v4l2_ctrl_request_complete > and v4l2_ctrl_request_setup functions to complete a request and (as a > helper function) to

Re: [RFCv11 PATCH 14/29] v4l2-ctrls: add core request support

2018-04-11 Thread Paul Kocialkowski
Hi, On Mon, 2018-04-09 at 16:20 +0200, Hans Verkuil wrote: > From: Hans Verkuil > > Integrate the request support. This adds the > v4l2_ctrl_request_complete > and v4l2_ctrl_request_setup functions to complete a request and (as a > helper function) to apply a request to

Re: [PATCH 1/6] media: ov772x: allow i2c controllers without I2C_FUNC_PROTOCOL_MANGLING

2018-04-11 Thread jacopo mondi
Hi Akinobu, On Wed, Apr 11, 2018 at 01:37:03AM +0900, Akinobu Mita wrote: > 2018-04-09 15:58 GMT+09:00 jacopo mondi : > > Hello Akinobu, > > thank you for the patch. > > > > On which platform have you tested the series (just curious) ? > > I use Zynq-7000 development board

Re: [RfC PATCH] Add udmabuf misc device

2018-04-11 Thread Oleksandr Andrushchenko
On 04/10/2018 08:26 PM, Dongwon Kim wrote: On Tue, Apr 10, 2018 at 09:37:53AM +0300, Oleksandr Andrushchenko wrote: On 04/06/2018 09:57 PM, Dongwon Kim wrote: On Fri, Apr 06, 2018 at 03:36:03PM +0300, Oleksandr Andrushchenko wrote: On 04/06/2018 02:57 PM, Gerd Hoffmann wrote: Hi, I fail