Re: [PATCH v10 01/16] videobuf2: Make struct vb2_buffer refcounted

2018-05-24 Thread sathyam panda
Hello, On 5/21/18, Ezequiel Garcia wrote: > The in-fence implementation involves having a per-buffer fence callback, > that triggers on the fence signal. The fence callback is called > asynchronously > and needs a valid reference to the associated ideobuf2 buffer. > > Allow this by making the vb2

Re: i.MX6 IPU CSI analog video input on Ventana

2018-05-24 Thread Philipp Zabel
Hi Steve, On Thu, 2018-05-24 at 14:33 -0700, Steve Longerbeam wrote: > Hi Krzysztof, Philipp, > > And I can confirm that capturing planar 4:2:0 (YU12, YV12, or NV12), > is broken because of the call to ipu_cpmem_skip_odd_chroma_rows(). > YU12 or NV12 images look correct again when commenting out

Re: i.MX6 IPU CSI analog video input on Ventana

2018-05-24 Thread Philipp Zabel
On Thu, 2018-05-24 at 11:12 -0700, Steve Longerbeam wrote: [...] > > The following is required as well. Now the question is why we can't skip > > writing those odd UV rows. Anyway, with these 2 changes, I get a stable > > NTSC (and probably PAL) interlaced video stream. > > > > The manual says: Re

Re: [PATCH v3] media: imx319: Add imx319 camera sensor driver

2018-05-24 Thread Tomasz Figa
On Fri, May 25, 2018 at 5:47 AM Sakari Ailus wrote: > Hi Jacopo, > On Thu, May 24, 2018 at 10:07:38PM +0200, jacopo mondi wrote: > ... > > > > about that, but I wonder why setting controls should be enabled only > > > > when streaming. I would have expected runtime_pm_get/put in subdevices > > >

Re: [PATCH v10 12/16] vb2: add in-fence support to QBUF

2018-05-24 Thread sathyam panda
Hello, On 5/21/18, Ezequiel Garcia wrote: > From: Gustavo Padovan > > Receive in-fence from userspace and add support for waiting on them > before queueing the buffer to the driver. Buffers can't be queued to the > driver before its fences signal. And a buffer can't be queued to the driver > out

Re: i.MX6 IPU CSI analog video input on Ventana

2018-05-24 Thread Krzysztof Hałasa
Steve Longerbeam writes: > Sorry I did find a bug. Please try this patch: Ok, your patch fixes the first problem (sets the CSI interlaced mode on input when field = NOE is requested on output). Posting in full since your mail came somehow mangled with UTF-8. --- a/drivers/staging/media/imx/imx-

Re: [PATCH v6 05/17] media: rkisp1: add Rockchip ISP1 subdev driver

2018-05-24 Thread Tomasz Figa
On Thu, May 24, 2018 at 8:30 PM Baruch Siach wrote: > Hi Tomasz, > On Mon, May 07, 2018 at 06:41:50AM +, Tomasz Figa wrote: > > On Mon, May 7, 2018 at 3:38 PM Baruch Siach wrote: > > > On Mon, May 07, 2018 at 06:13:27AM +, Tomasz Figa wrote: > > > > On Thu, May 3, 2018 at 6:09 PM Baruch

Re: RFC: Request API and memory-to-memory devices

2018-05-24 Thread Tomasz Figa
On Thu, May 24, 2018 at 5:44 PM Hans Verkuil wrote: > Memory-to-memory devices have one video node, one internal control handler > but two vb2_queues (DMA engines). While often there is one buffer produced > for every buffer consumed, but this is by no means standard. E.g. deinterlacers > will pr

cron job: media_tree daily build: WARNINGS

2018-05-24 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: Fri May 25 05:00:16 CEST 2018 media-tree git hash:8ed8bba70b4355b1ba029b151ade84475dd12991 media_build gi

RE: [ANN] Meeting to discuss improvements to support MC-based cameras on generic apps

2018-05-24 Thread Zheng, Jian Xu
Hi Tomasz & Mauro, > -Original Message- > From: linux-media-ow...@vger.kernel.org [mailto:linux-media- > ow...@vger.kernel.org] On Behalf Of Tomasz Figa > Sent: Friday, May 18, 2018 11:38 PM > To: mchehab+sams...@kernel.org > Cc: Linux Media Mailing List ; Hu, Jerry W > ; Mani, Rajmohan ;

Re: media: uvcvideo: Support realtek's UVC 1.5 device

2018-05-24 Thread Darren Hart
On Fri, May 18, 2018 at 04:04:35PM +0200, Ana Guerrero Lopez wrote: > On Wed, May 09, 2018 at 10:13:08AM +0800, ming_q...@realsil.com.cn wrote: > > From: ming_qian > > > > The length of UVC 1.5 video control is 48, and it id 34 for UVC 1.1. > > Change it to 48 for UVC 1.5 device, > > and the UVC

Re: [PATCH v4 5/9] media: rcar-vin: Parse parallel input on Gen3

2018-05-24 Thread Niklas Söderlund
Hi Jacopo, Thanks for your work. I really like what you did with this patch in v4. On 2018-05-25 00:02:15 +0200, Jacopo Mondi wrote: > The rcar-vin driver so far had a mutually exclusive code path for > handling parallel and CSI-2 video input subdevices, with only the CSI-2 > use case supporting

[PATCH v4 5/9] media: rcar-vin: Parse parallel input on Gen3

2018-05-24 Thread Jacopo Mondi
The rcar-vin driver so far had a mutually exclusive code path for handling parallel and CSI-2 video input subdevices, with only the CSI-2 use case supporting media-controller. As we add support for parallel inputs to Gen3 media-controller compliant code path now parse both port@0 and port@1, handli

[PATCH v4 0/9] rcar-vin: Add support for parallel input on Gen3

2018-05-24 Thread Jacopo Mondi
Hello, this series adds support for parallel video input to the Gen3 version of rcar-vin driver. Compared to v3, this new iteration closes all comments from Niklas and Sergei. As the meat of the patch series hasn't changed much, please refer to v3 cover letter for more details. The most notab

[PATCH v4 1/9] media: rcar-vin: Rename 'digital' to 'parallel'

2018-05-24 Thread Jacopo Mondi
As the term 'digital' is used all over the rcar-vin code in place of 'parallel', rename all the occurrencies. Signed-off-by: Jacopo Mondi Acked-by: Niklas Söderlund --- drivers/media/platform/rcar-vin/rcar-core.c | 72 ++--- drivers/media/platform/rcar-vin/rcar-dma.c |

[PATCH v4 8/9] media: rcar-vin: Rename _rcar_info to rcar_info

2018-05-24 Thread Jacopo Mondi
Remove leading underscore to align all rcar_group_route structure declarations. Signed-off-by: Jacopo Mondi Acked-by: Niklas Söderlund --- drivers/media/platform/rcar-vin/rcar-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/rcar-vin/rcar-cor

[PATCH v4 6/9] media: rcar-vin: Link parallel input media entities

2018-05-24 Thread Jacopo Mondi
When running with media-controller link the parallel input media entities with the VIN entities at 'complete' callback time. To create media links the v4l2_device should be registered first. Check if the device is already registered, to avoid double registrations. Signed-off-by: Jacopo Mondi Ack

[PATCH v4 7/9] media: rcar-vin: Handle parallel subdev in link_notify

2018-05-24 Thread Jacopo Mondi
Handle parallel subdevices in link_notify callback. If the notified link involves a parallel subdevice, do not change routing of the VIN-CSI-2 devices and mark the VIN instance as using a parallel input. If the CSI-2 link setup succeeds instead, mark the VIN instance as using CSI-2. Signed-off-by:

[PATCH v4 2/9] media: rcar-vin: Remove two empty lines

2018-05-24 Thread Jacopo Mondi
Remove un-necessary empty lines. Signed-off-by: Jacopo Mondi Acked-by: Niklas Söderlund --- drivers/media/platform/rcar-vin/rcar-core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/platform/rcar-vin/rcar-core.c b/drivers/media/platform/rcar-vin/rcar-core.c index 16d3e01..

[PATCH v4 9/9] media: rcar-vin: Add support for R-Car R8A77995 SoC

2018-05-24 Thread Jacopo Mondi
Add R-Car R8A77995 SoC to the rcar-vin supported ones. Signed-off-by: Jacopo Mondi Reviewed-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- drivers/media/platform/rcar-vin/rcar-core.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/media/platform/rcar-vin/r

[PATCH v4 4/9] media: rcar-vin: Cache the mbus configuration flags

2018-05-24 Thread Jacopo Mondi
Media bus configuration flags and media bus type were so far a property of each VIN instance, as the subdevice they were connected to was immutable during the whole system life time. With the forth-coming introduction of parallel input devices support, a VIN instance can have the subdevice it is c

[PATCH v4 3/9] media: rcar-vin: Create a group notifier

2018-05-24 Thread Jacopo Mondi
As CSI-2 subdevices are shared between several VIN instances, a shared notifier to collect the CSI-2 async subdevices is required. So far, the rcar-vin driver used the notifier of the last VIN instance to probe but with the forth-coming introduction of parallel input subdevices support in mc-compli

[PATCH] v4l: vsp1: Fix YCbCr planar formats pitch calculation

2018-05-24 Thread Laurent Pinchart
From: Koji Matsuoka YCbCr planar formats can have different pitch values for the luma and chroma planes. This isn't taken into account in the driver. Fix it. Based on a BSP patch from Koji Matsuoka . Signed-off-by: Koji Matsuoka Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1

Re: i.MX6 IPU CSI analog video input on Ventana

2018-05-24 Thread Steve Longerbeam
Hi Krzysztof, Philipp, And I can confirm that capturing planar 4:2:0 (YU12, YV12, or NV12), is broken because of the call to ipu_cpmem_skip_odd_chroma_rows(). YU12 or NV12 images look correct again when commenting out that call. Commits 14330d7f08 ("media: imx: csi: enable double write reduction

[PATCH] v4l: vsp1: Update LIF buffer thresholds

2018-05-24 Thread Laurent Pinchart
The LIF module has a data buffer to accommodate clock rate differences between the DU and the VSP. Several programmable threshold values control DU start of frame notification by the VSP and VSP clock stop/resume. The R-Car Gen2 and Gen3 datasheets recommend values for the different SoCs. Update th

Re: i.MX6 IPU CSI analog video input on Ventana

2018-05-24 Thread Steve Longerbeam
Hi Krzysztof, Sorry I did find a bug. Please try this patch: --- a/drivers/staging/media/imx/imx-media-csi.c +++ b/drivers/staging/media/imx/imx-media-csi.c @@ -631,7 +631,6 @@ static int csi_setup(struct csi_priv *priv)  {     struct v4l2_mbus_framefmt *infmt, *outfmt;     struct v4l2_m

Re: [PATCH v3] media: imx319: Add imx319 camera sensor driver

2018-05-24 Thread Sakari Ailus
Hi Jacopo, On Thu, May 24, 2018 at 10:07:38PM +0200, jacopo mondi wrote: ... > > > about that, but I wonder why setting controls should be enabled only > > > when streaming. I would have expected runtime_pm_get/put in subdevices > > > node open/close functions not only when streaming. Am I missing

[PATCH 17/20] videobuf2-core: require q->lock

2018-05-24 Thread Ezequiel Garcia
From: Hans Verkuil Refuse to initialize a vb2 queue if there is no lock specified. Signed-off-by: Hans Verkuil --- drivers/media/common/videobuf2/videobuf2-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/common/videobuf2/videobuf2-core.c b/drivers/media/common/videobu

[PATCH 20/20] media: Remove wait_{prepare, finish}

2018-05-24 Thread Ezequiel Garcia
Now that all drivers provide a proper vb2_queue lock, and that wait_{prepare, finish} are no longer in use, get rid of them. Signed-off-by: Ezequiel Garcia --- Documentation/media/kapi/v4l2-dev.rst | 7 +++ drivers/input/rmi4/rmi_f54.c | 2 -- dri

[PATCH 18/20] videobuf2: assume q->lock is always set

2018-05-24 Thread Ezequiel Garcia
From: Hans Verkuil Drop checks for q->lock. Drop calls to wait_finish/prepare, just lock/unlock q->lock. Signed-off-by: Hans Verkuil --- drivers/media/common/videobuf2/videobuf2-core.c | 21 --- drivers/media/common/videobuf2/videobuf2-v4l2.c | 27 +++-- inc

[PATCH 19/20] v4l2-ioctl.c: assume queue->lock is always set

2018-05-24 Thread Ezequiel Garcia
From: Hans Verkuil vb2_queue now expects a valid lock pointer, so drop the checks for that in v4l2-ioctl.c. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ioctl.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/dr

[PATCH 16/20] stk1160: Set the vb2_queue lock before calling vb2_queue_init

2018-05-24 Thread Ezequiel Garcia
The vb2_queue will soon be mandatory. The videobuf2 core will throw a verbose warning if it's not set. The stk1160 driver is setting the queue lock, but after the vb2_queue_init call. Avoid the warning by setting the lock before the queue initialization. Signed-off-by: Ezequiel Garcia --- drive

[PATCH 15/20] m2m-deinterlace: Implement wait_prepare and wait_finish

2018-05-24 Thread Ezequiel Garcia
This driver is currently specifying a video_device lock, which means it is protecting all the ioctls (including queue ioctls) with a single mutex. It's therefore straightforward to implement wait_prepare and wait_finish, by explicitly setting the vb2_queue lock. Having these callbacks releases th

[PATCH 14/20] mx_emmaprp: Implement wait_prepare and wait_finish

2018-05-24 Thread Ezequiel Garcia
This driver is currently specifying a video_device lock, which means it is protecting all the ioctls (including queue ioctls) with a single mutex. It's therefore straightforward to implement wait_prepare and wait_finish, by explicitly setting the vb2_queue lock. Having these callbacks releases th

[PATCH 13/20] davinci_vpfe: Add video_device and vb2_queue locks

2018-05-24 Thread Ezequiel Garcia
Currently, this driver does not serialize its video4linux ioctls, which is a bug, as race conditions might appear. In addition, video_device and vb2_queue locks are now both mandatory. Add them, and implement wait_prepare and wait_finish. To stay on the safe side, this commit uses a single mutex

[PATCH 12/20] venus: Add video_device and vb2_queue locks

2018-05-24 Thread Ezequiel Garcia
video_device and vb2_queue locks are now both mandatory. Add them, remove driver ad-hoc locking, and implement wait_{prepare, finish}. To stay on the safe side, this commit uses a single mutex for both locks. Better latency can be obtained by separating these if needed. Signed-off-by: Ezequiel Ga

[PATCH 10/20] staging: bcm2835-camera: Provide lock for vb2_queue

2018-05-24 Thread Ezequiel Garcia
Use the device mutex to protect the vb2_queue. This allows to replace the ad-hoc wait_{prepare, finish} with vb2_ops_wait_{prepare, finish}. Signed-off-by: Ezequiel Garcia --- .../vc04_services/bcm2835-camera/bcm2835-camera.c | 24 +- 1 file changed, 5 insertions(+), 19 dele

[PATCH 11/20] dvb-core: Provide lock for vb2_queue

2018-05-24 Thread Ezequiel Garcia
Use the vb2 context mutex to protect the vb2_queue. This allows to replace the ad-hoc wait_{prepare, finish} with vb2_ops_wait_{prepare, finish}. Signed-off-by: Ezequiel Garcia --- drivers/media/dvb-core/dvb_vb2.c | 22 +++--- 1 file changed, 3 insertions(+), 19 deletions(-) dif

[PATCH 08/20] mtk-mdp: Add locks for capture and output vb2_queues

2018-05-24 Thread Ezequiel Garcia
Use the mutex in struct mtk_mdp_ctx to protect the capture and output vb2_queues. This allows to replace the ad-hoc wait_{prepare, finish} with vb2_ops_wait_{prepare, finish}. Signed-off-by: Ezequiel Garcia --- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c | 20 1 file chang

[PATCH 07/20] omap3isp: Add vb2_queue lock

2018-05-24 Thread Ezequiel Garcia
vb2_queue locks is now mandatory. Add it, remove driver ad-hoc locks, and implement wait_{prepare, finish}. Signed-off-by: Ezequiel Garcia --- drivers/media/platform/omap3isp/ispvideo.c | 65 +- drivers/media/platform/omap3isp/ispvideo.h | 1 - 2 files changed, 11 in

[PATCH 09/20] s5p-g2d: Implement wait_prepare and wait_finish

2018-05-24 Thread Ezequiel Garcia
This driver is currently specifying a vb2_queue lock, which means it straightforward to implement wait_prepare and wait_finish. Having these callbacks releases the queue lock while blocking, which improves latency by allowing for example streamoff or qbuf operations while waiting in dqbuf. Signed

[PATCH 06/20] omap4iss: Add vb2_queue lock

2018-05-24 Thread Ezequiel Garcia
vb2_queue lock is now mandatory. Add it, remove driver ad-hoc locks, and implement wait_{prepare, finish}. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/omap4iss/iss_video.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/staging/media/omap4i

[PATCH 04/20] usbtv: Implement wait_prepare and wait_finish

2018-05-24 Thread Ezequiel Garcia
This driver is currently specifying a vb2_queue lock, which means it straightforward to implement wait_prepare and wait_finish. Having these callbacks releases the queue lock while blocking, which improves latency by allowing for example streamoff or qbuf operations while waiting in dqbuf. Signed

[PATCH 05/20] sta2x11: Add video_device and vb2_queue locks

2018-05-24 Thread Ezequiel Garcia
Currently, this driver does not serialize its video4linux ioctls, which is a bug, as race conditions might appear. In addition, video_device and vb2_queue locks are now both mandatory. Add them, and implement wait_prepare and wait_finish. To stay on the safe side, this commit uses a single mutex

[PATCH 02/20] v4l2-core: push taking ioctl mutex down to ioctl handler.

2018-05-24 Thread Ezequiel Garcia
From: Hans Verkuil The ioctl serialization mutex (vdev->lock or q->lock for vb2 queues) was taken at the highest level in v4l2-dev.c. This prevents more fine-grained locking since at that level we cannot examine the ioctl arguments, we can only do that after video_usercopy is called. So push the

[PATCH 03/20] v4l2-ioctl.c: use correct vb2_queue lock for m2m devices

2018-05-24 Thread Ezequiel Garcia
From: Hans Verkuil For m2m devices the vdev->queue lock was always taken instead of the lock for the specific capture or output queue. Now that we pushed the locking down into __video_do_ioctl() we can pick the correct lock and improve the performance of m2m devices. Signed-off-by: Hans Verkuil

[PATCH 01/20] pvrusb2: replace pvr2_v4l2_ioctl by video_ioctl2

2018-05-24 Thread Ezequiel Garcia
From: Hans Verkuil This driver is the only V4L driver that does not set unlocked_ioctl to video_ioctl2. The only thing that pvr2_v4l2_ioctl does besides calling video_ioctl2 is calling pvr2_hdw_commit_ctl(). Add pvr2_hdw_commit_ctl() calls to the various ioctls that need this, and we can replace

[PATCH v3 00/20] v4l2 core: push ioctl lock down to ioctl handler

2018-05-24 Thread Ezequiel Garcia
Third spin of the series posted by Hans: https://www.mail-archive.com/linux-media@vger.kernel.org/msg131363.html Changelog - v3: Reduce changes in patches 6 and 7 for omap3isp and omap4iss drivers, as suggested by Hans. v2: Add the required driver modifications, fixing all drivers so th

Re: [PATCH v3 1/9] media: rcar-vin: Rename 'digital' to 'parallel'

2018-05-24 Thread jacopo mondi
Hi Niklas, On Thu, May 24, 2018 at 12:42:25AM +0200, Niklas Söderlund wrote: > Hi Jacopo, > > Thanks for your patch. > > On 2018-05-18 16:40:37 +0200, Jacopo Mondi wrote: > > As the term 'digital' is used all over the rcar-vin code in place of > > 'parallel', rename all the occurrencies. > > > > S

Re: [PATCH v3] media: imx319: Add imx319 camera sensor driver

2018-05-24 Thread jacopo mondi
Hi Sakari, On Wed, May 23, 2018 at 10:38:33AM +0300, Sakari Ailus wrote: > Hi Jacopo and Bingbu, > > On Tue, May 22, 2018 at 10:08:48PM +0200, jacopo mondi wrote: > ... > > > +/* Get bayer order based on flip setting. */ > > > +static __u32 imx319_get_format_code(struct imx319 *imx319) > > > +{ >

Re: [PATCH] media: pxa_camera: avoid duplicate s_power calls

2018-05-24 Thread Sakari Ailus
On Fri, May 25, 2018 at 01:16:32AM +0900, Akinobu Mita wrote: > 2018-05-22 22:59 GMT+09:00 Sakari Ailus : > > Dear Mita-san, > > > > On Mon, May 21, 2018 at 12:40:38AM +0900, Akinobu Mita wrote: > >> The open() operation for the pxa_camera driver always calls s_power() > >> operation to put its sub

Re: i.MX6 IPU CSI analog video input on Ventana

2018-05-24 Thread Steve Longerbeam
Hi Krzysztof, On 05/24/2018 08:56 AM, Krzysztof Hałasa wrote: Hi, I've experimented with the ADV7180 a bit and this is what I found. First, I'm using (with a NTSC camera but I guess PAL won't be much different): media-ctl -V '"adv7180 2-0020":0[fmt:UYVY2X8 720x480 field:interlaced]' media-ctl

Re: [PATCH] media: pxa_camera: avoid duplicate s_power calls

2018-05-24 Thread Akinobu Mita
2018-05-22 22:59 GMT+09:00 Sakari Ailus : > Dear Mita-san, > > On Mon, May 21, 2018 at 12:40:38AM +0900, Akinobu Mita wrote: >> The open() operation for the pxa_camera driver always calls s_power() >> operation to put its subdevice sensor in normal operation mode, and the >> release() operation alw

Re: i.MX6 IPU CSI analog video input on Ventana

2018-05-24 Thread Krzysztof Hałasa
Hi, I've experimented with the ADV7180 a bit and this is what I found. First, I'm using (with a NTSC camera but I guess PAL won't be much different): media-ctl -V '"adv7180 2-0020":0[fmt:UYVY2X8 720x480 field:interlaced]' media-ctl -V '"ipu2_csi1_mux":1[fmt:UYVY2X8 720x480 field:interlaced]' medi

[PATCH 1/3] gspca_zc3xx: Implement proper autogain and exposure control for OV7648

2018-05-24 Thread Ondrej Zary
The ZS0211 internal autogain causes pumping and flickering with OV7648 sensor on 0ac8:307b webcam. Implement OV7648 autogain and exposure control and use that instead. Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/zc3xx.c | 42 + 1 file changed, 3

[PATCH 2/3] gspca_zc3xx: Fix power line frequency settings for OV7648

2018-05-24 Thread Ondrej Zary
Power line frequency settings for OV7648 sensor contain autogain and exposure commands, affecting unrelated controls. Remove them. Signed-off-by: Ondrej Zary --- drivers/media/usb/gspca/zc3xx.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/media/u

[PATCH 3/3] gspca_zc3xx: Fix exposure with power line frequency for OV7648

2018-05-24 Thread Ondrej Zary
The 50Hz and 60Hz power line frequency settings disable short (1/120s and 1/100s) exposure times for banding filter, causing overexposed image near lamps. No flicker setting enables them (when banding filter is disabled and they're not used). Seems that the logic is just the wrong way around. Fix

Re: [PATCH v3 03/12] media: ov5640: Remove the clocks registers initialization

2018-05-24 Thread Maxime Ripard
On Wed, May 23, 2018 at 11:31:58AM +0200, Daniel Mack wrote: > Hi Maxime, > > On Tuesday, May 22, 2018 09:54 PM, Maxime Ripard wrote: > > On Mon, May 21, 2018 at 09:39:02AM +0200, Maxime Ripard wrote: > > > On Fri, May 18, 2018 at 07:42:34PM -0700, Sam Bobrowicz wrote: > > > > > This set of patch

[PATCH v3] media: video-mux: fix compliance failures

2018-05-24 Thread Philipp Zabel
Limit frame sizes to the [1, 65536] interval, media bus formats to the available list of formats, and initialize pad and try formats. Reported-by: Rui Miguel Silva Signed-off-by: Philipp Zabel Tested-by: Rui Miguel Silva Acked-by: Sakari Ailus --- Changes since v2: - Make loop variables unsig

Re: [PATCHv13 22/28] Documentation: v4l: document request API

2018-05-24 Thread Hans Verkuil
On 18/05/18 16:46, Laurent Pinchart wrote: > Hi Hans, > > Thank you for the patch. > > On Thursday, 3 May 2018 17:53:12 EEST Hans Verkuil wrote: >> From: Alexandre Courbot >> >> Document the request API for V4L2 devices, and amend the documentation >> of system calls influenced by it. >> >> Sign

Re: [PATCH v2] media: video-mux: fix compliance failures

2018-05-24 Thread Sakari Ailus
On Thu, May 24, 2018 at 02:42:41PM +0200, Philipp Zabel wrote: > Hi Sakari, > > thank you for the review comments. > > On Thu, 2018-05-24 at 14:38 +0300, Sakari Ailus wrote: > > Hi Philipp, > > > > Thanks for the patch. > > > > On Wed, May 23, 2018 at 11:24:23AM +0200, Philipp Zabel wrote: > >

Re: [PATCH v2 12/29] venus: add common capability parser

2018-05-24 Thread Tomasz Figa
Hi Stanimir, On Tue, May 15, 2018 at 5:08 PM Stanimir Varbanov < stanimir.varba...@linaro.org> wrote: [snip] > diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c > index 41eef376eb2d..381bfdd688db 100644 > --- a/drivers/media/platform/qcom/venus/core.c

Re: [PATCH v2 08/13] ASoC: pxa: remove the dmaengine compat need

2018-05-24 Thread Mark Brown
On Thu, May 24, 2018 at 09:06:58AM +0200, Robert Jarzmik wrote: > As the pxa architecture switched towards the dmaengine slave map, the > old compatibility mechanism to acquire the dma requestor line number and > priority are not needed anymore. Acked-by: Mark Brown signature.asc Description: P

Re: [PATCH v4 10/11] media: vsp1: Support Interlaced display pipelines

2018-05-24 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Thursday, 3 May 2018 16:36:21 EEST Kieran Bingham wrote: > Calculate the top and bottom fields for the interlaced frames and > utilise the extended display list command feature to implement the > auto-field operations. This allows the DU to update the VSP2 r

Re: [PATCH v2] media: video-mux: fix compliance failures

2018-05-24 Thread Philipp Zabel
Hi Sakari, thank you for the review comments. On Thu, 2018-05-24 at 14:38 +0300, Sakari Ailus wrote: > Hi Philipp, > > Thanks for the patch. > > On Wed, May 23, 2018 at 11:24:23AM +0200, Philipp Zabel wrote: > > Limit frame sizes to the [1, 65536] interval, media bus formats to > > the availabl

Re: [PATCHv2 0/4] gspca: convert to vb2gspca: convert to vb2

2018-05-24 Thread Ezequiel Garcia
On Thu, 2018-05-24 at 10:15 +0200, Hans Verkuil wrote: > On 23/05/18 22:51, Ezequiel Garcia wrote: > > > > > > On 22 May 2018 at 05:16, Hans Verkuil wrote: > > > On 18/05/18 19:51, Ezequiel Garcia wrote: > > > > On 13 May 2018 at 06:47, Hans Verkuil wrote: > > > > > From: Hans Verkuil > > > >

Re: [PATCH v4 09/11] media: vsp1: Provide support for extended command pools

2018-05-24 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Thursday, 3 May 2018 16:36:20 EEST Kieran Bingham wrote: > VSPD and VSP-DL devices can provide extended display lists supporting > extended command display list objects. > > These extended commands require their own dma memory areas for a header > and body

Re: [PATCH v4 11/11] drm: rcar-du: Support interlaced video output through vsp1

2018-05-24 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Thursday, 3 May 2018 16:36:22 EEST Kieran Bingham wrote: > Use the newly exposed VSP1 interface to enable interlaced frame support > through the VSP1 lif pipelines. s/lif/LIF/ > > Signed-off-by: Kieran Bingham > --- > drivers/gpu/drm/rcar-du/rcar_du_crt

Re: [PATCH v4 08/11] media: vsp1: Add support for extended display list headers

2018-05-24 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Thursday, 3 May 2018 16:36:19 EEST Kieran Bingham wrote: > Extended display list headers allow pre and post command lists to be > executed by the VSP pipeline. This provides the base support for > features such as AUTO_FLD (for interlaced support) and AUTO_D

Re: [PATCH v2] media: video-mux: fix compliance failures

2018-05-24 Thread Sakari Ailus
Hi Philipp, Thanks for the patch. On Wed, May 23, 2018 at 11:24:23AM +0200, Philipp Zabel wrote: > Limit frame sizes to the [1, 65536] interval, media bus formats to > the available list of formats, and initialize pad and try formats. > > Reported-by: Rui Miguel Silva > Signed-off-by: Philipp Z

Re: [PATCH 3/3] media: rc: nuvoton: Keep device enabled during reg init

2018-05-24 Thread Sean Young
On Mon, May 21, 2018 at 04:38:03PM +0200, Michał Winiarski wrote: > Doing writes when the device is disabled seems to be a NOOP. > Let's enable the device, write the values, and then disable it on init. > This changes the behavior for wake device, which is now being disabled > after init. I don't

Re: [PATCH v2] media: video-mux: fix compliance failures

2018-05-24 Thread Rui Miguel Silva
Hi, On Wed 23 May 2018 at 09:24, Philipp Zabel wrote: Limit frame sizes to the [1, 65536] interval, media bus formats to the available list of formats, and initialize pad and try formats. Reported-by: Rui Miguel Silva Signed-off-by: Philipp Zabel --- Changes since v1: - Limit to [1, 65536]

Re: [PATCH v6 05/17] media: rkisp1: add Rockchip ISP1 subdev driver

2018-05-24 Thread Baruch Siach
Hi Tomasz, On Mon, May 07, 2018 at 06:41:50AM +, Tomasz Figa wrote: > On Mon, May 7, 2018 at 3:38 PM Baruch Siach wrote: > > On Mon, May 07, 2018 at 06:13:27AM +, Tomasz Figa wrote: > > > On Thu, May 3, 2018 at 6:09 PM Baruch Siach wrote: > > > > On Thu, Mar 08, 2018 at 05:47:55PM +0800,

Re: [PATCHv13 06/28] v4l2-dev: lock req_queue_mutex

2018-05-24 Thread Hans Verkuil
On 08/05/18 12:45, Mauro Carvalho Chehab wrote: > Em Tue, 8 May 2018 09:45:27 +0200 > Hans Verkuil escreveu: > >> On 05/07/2018 07:20 PM, Mauro Carvalho Chehab wrote: >>> Em Thu, 3 May 2018 16:52:56 +0200 >>> Hans Verkuil escreveu: >>> From: Hans Verkuil We need to serialize

Re: [PATCH v6 5/6] mfd: cros_ec_dev: Add CEC sub-device registration

2018-05-24 Thread Hans Verkuil
On 24/05/18 11:57, Neil Armstrong wrote: > The EC can expose a CEC bus, thus add the cros-ec-cec MFD sub-device > when the CEC feature bit is present. > > Signed-off-by: Neil Armstrong > Reviewed-by: Enric Balletbo i Serra For whatever it is worth: Acked-by: Hans Verkuil Regards, Ha

Re: [PATCH v6 4/6] mfd: cros-ec: Introduce CEC commands and events definitions.

2018-05-24 Thread Hans Verkuil
On 24/05/18 11:57, Neil Armstrong wrote: > The EC can expose a CEC bus, this patch adds the CEC related definitions > needed by the cros-ec-cec driver. > > Signed-off-by: Neil Armstrong > Tested-by: Enric Balletbo i Serra Reviewed-by: Hans Verkuil Thanks! Hans > --- > include/linux

Re: [PATCHv13 03/28] media-request: implement media requests

2018-05-24 Thread Hans Verkuil
On 08/05/18 12:21, Mauro Carvalho Chehab wrote: > Em Fri, 4 May 2018 15:27:50 +0300 > Sakari Ailus escreveu: > >> Hi Hans, >> >> I've read this patch a large number of times and I think also the details >> begin to seem sound. A few comments below. > > I'm sending this after analyzing the other

Re: [PATCH v4 07/11] media: vsp1: Use header display lists for all WPF outputs linked to the DU

2018-05-24 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Thursday, 3 May 2018 16:36:18 EEST Kieran Bingham wrote: > Header mode display lists are now supported on all WPF outputs. To > support extended headers and auto-fld capabilities for interlaced mode > handling only header mode display lists can be used. > >

[PATCH] media: rc: ensure input/lirc device can be opened after register

2018-05-24 Thread Sean Young
Since commit cb84343fced1 ("media: lirc: do not call close() or open() on unregistered devices") rc_open() will return -ENODEV if rcdev->registered is false. Ensure this is set before we register the input device and the lirc device, else we have a short window where the neither the lirc or input d

Re: [PATCH v4 06/11] media: vsp1: Provide VSP1 feature helper macro

2018-05-24 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Thursday, 3 May 2018 16:36:17 EEST Kieran Bingham wrote: > The VSP1 devices define their specific capabilities through features > marked in their device info structure. Various parts of the code read > this info structure to infer if the features are availab

Re: [PATCH v4 05/11] media: vsp1: Clean up DLM objects on error

2018-05-24 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Thursday, 3 May 2018 16:36:16 EEST Kieran Bingham wrote: > If there is an error allocating a display list within a DLM object > the existing display lists are not free'd, and neither is the DL body > pool. > > Use the existing vsp1_dlm_destroy() function to

Re: [PATCH v4 04/11] media: vsp1: Remove unused display list structure field

2018-05-24 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Thursday, 3 May 2018 16:36:15 EEST Kieran Bingham wrote: > The vsp1 reference in the vsp1_dl_body structure is not used. > Remove it. > > Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart > --- > drivers/media/platform/vsp1/vsp1_dl.c | 2 -- >

[PATCH v6 5/6] mfd: cros_ec_dev: Add CEC sub-device registration

2018-05-24 Thread Neil Armstrong
The EC can expose a CEC bus, thus add the cros-ec-cec MFD sub-device when the CEC feature bit is present. Signed-off-by: Neil Armstrong Reviewed-by: Enric Balletbo i Serra --- drivers/mfd/cros_ec_dev.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/mfd/cros_ec_dev

Re: [PATCH v4 03/11] media: vsp1: Rename dl_child to dl_next

2018-05-24 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Thursday, 3 May 2018 16:36:14 EEST Kieran Bingham wrote: > Both vsp1_dl_list_commit() and __vsp1_dl_list_put() walk the display > list chain referencing the nodes as children, when in reality they are > siblings. > > Update the terminology to 'dl_next' to b

[PATCH v6 2/6] drm/i915: hdmi: add CEC notifier to intel_hdmi

2018-05-24 Thread Neil Armstrong
This patchs adds the cec_notifier feature to the intel_hdmi part of the i915 DRM driver. It uses the HDMI DRM connector name to differentiate between each HDMI ports. The changes will allow the i915 HDMI code to notify EDID and HPD changes to an eventual CEC adapter. Signed-off-by: Neil Armstrong

[PATCH v6 3/6] mfd: cros-ec: Increase maximum mkbp event size

2018-05-24 Thread Neil Armstrong
Having a 16 byte mkbp event size makes it possible to send CEC messages from the EC to the AP directly inside the mkbp event instead of first doing a notification and then a read. Signed-off-by: Stefan Adolfsson Signed-off-by: Neil Armstrong Tested-by: Enric Balletbo i Serra --- drivers/platfo

[PATCH v6 4/6] mfd: cros-ec: Introduce CEC commands and events definitions.

2018-05-24 Thread Neil Armstrong
The EC can expose a CEC bus, this patch adds the CEC related definitions needed by the cros-ec-cec driver. Signed-off-by: Neil Armstrong Tested-by: Enric Balletbo i Serra --- include/linux/mfd/cros_ec_commands.h | 81 1 file changed, 81 insertions(+) diff -

[PATCH v6 1/6] media: cec-notifier: Get notifier by device and connector name

2018-05-24 Thread Neil Armstrong
In non device-tree world, we can need to get the notifier by the driver name directly and eventually defer probe if not yet created. This patch adds a variant of the get function by using the device name instead and will not create a notifier if not yet created. But the i915 driver exposes at lea

[PATCH v6 6/6] media: platform: Add ChromeOS EC CEC driver

2018-05-24 Thread Neil Armstrong
The ChromeOS Embedded Controller can expose a CEC bus, this patch add the driver for such feature of the Embedded Controller. This driver is part of the cros-ec MFD and will be add as a sub-device when the feature bit is exposed by the EC. The controller will only handle a single logical address

Re: [PATCH v4 02/11] media: vsp1: Remove packed attributes from aligned structures

2018-05-24 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Thursday, 3 May 2018 16:36:13 EEST Kieran Bingham wrote: > The use of the packed attribute can cause a performance penalty for > all accesses to the struct members, as the compiler will assume that the > structure has the potential to have an unaligned base.

Re: [PATCH v3 8/9] media: rcar-vin: Rename _rcar_info to rcar_info

2018-05-24 Thread Niklas Söderlund
Hi Jacopo, Thanks for your work. On 2018-05-18 16:40:44 +0200, Jacopo Mondi wrote: > Remove trailing underscore to align all rcar_group_route structure > declarations. > > Signed-off-by: Jacopo Mondi With Sergei's comment addressed: Acked-by: Niklas Söderlund > --- > drivers/media/platform

Re: [PATCH v3 7/9] media: rcar-vin: Handle parallel subdev in link_notify

2018-05-24 Thread Niklas Söderlund
Hi Jacopo, Thanks for your patch. On 2018-05-18 16:40:43 +0200, Jacopo Mondi wrote: > Handle parallel subdevices in link_notify callback. If the notified link > involves a parallel subdevice, do not change routing of the VIN-CSI-2 > devices and mark the VIN instance as using a parallel input. If

Re: [PATCH v3 6/9] media: rcar-vin: Link parallel input media entities

2018-05-24 Thread Niklas Söderlund
Hi Jacopo, Thanks for your patch. On 2018-05-18 16:40:42 +0200, Jacopo Mondi wrote: > When running with media-controller link the parallel input > media entities with the VIN entities at 'complete' callback time. > > To create media links the v4l2_device should be registered first. > Check if th

Re: [PATCH v3 5/9] media: rcar-vin: Parse parallel input on Gen3

2018-05-24 Thread Niklas Söderlund
Hi Jacopo, Thanks for your work. On 2018-05-18 16:40:41 +0200, Jacopo Mondi wrote: > The rcar-vin driver so far had a mutually exclusive code path for > handling parallel and CSI-2 video input subdevices, with only the CSI-2 > use case supporting media-controller. As we add support for parallel >

Re: [PATCHv13 12/28] v4l2-ctrls: add core request support

2018-05-24 Thread Hans Verkuil
On 08/05/18 12:49, Mauro Carvalho Chehab wrote: > Em Tue, 8 May 2018 10:07:22 +0200 > Hans Verkuil escreveu: > diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h index 76352eb59f14..a0f7c38d1a90 100644 --- a/include/media/v4l2-ctrls.h +++ b/include/media/v4l2

Re: [PATCH v4 01/11] media: vsp1: drm: Fix minor grammar error

2018-05-24 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Thursday, 3 May 2018 16:36:12 EEST Kieran Bingham wrote: > The pixel format is 'unsupported'. Fix the small debug message which > incorrectly declares this. > > Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart > --- > drivers/media/platform/

Re: [PATCH v3 4/9] media: rcar-vin: Cache the mbus configuration flags

2018-05-24 Thread Niklas Söderlund
Hi Jacopo, Thanks for your patch. On 2018-05-18 16:40:40 +0200, Jacopo Mondi wrote: > Media bus configuration flags and media bus type were so far a property > of each VIN instance, as the subdevice they were connected to was > immutable during the whole system life time. > > With the forth-comi

Re: [PATCH v3 3/9] media: rcar-vin: Create a group notifier

2018-05-24 Thread Niklas Söderlund
Hi Jacopo, Thanks for your patch. On 2018-05-18 16:40:39 +0200, Jacopo Mondi wrote: > As CSI-2 subdevices are shared between several VIN instances, a shared > notifier to collect the CSI-2 async subdevices is required. So far, the > rcar-vin driver used the notifier of the last VIN instance to pr

Re: [PATCH v3 10/11] media: vsp1: Support Interlaced display pipelines

2018-05-24 Thread Laurent Pinchart
Hi Kieran, On Thursday, 3 May 2018 16:45:30 EEST Kieran Bingham wrote: > On 03/05/18 12:13, Laurent Pinchart wrote: [snip] > >>> diff --git a/drivers/media/platform/vsp1/vsp1_rwpf.h > >>> b/drivers/media/platform/vsp1/vsp1_rwpf.h index > >>> 70742ecf766f..8d6e42f27908 100644 > >>> --- a/drivers/

[PATCH v6 0/6] Add ChromeOS EC CEC Support

2018-05-24 Thread Neil Armstrong
Hi All, The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support through it's Embedded Controller, to enable the Linux CEC Core to communicate with it and get the CEC Physical Address from the correct HDMI Connector, the following must be added/changed: - Add the CEC sub-device reg

  1   2   >