cron job: media_tree daily build: OK

2018-10-19 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: Sat Oct 20 05:00:11 CEST 2018 media-tree git hash:3b796aa60af087f5fec75aee9b17f2130f2b9adc media_build gi

Re: [PATCH v3 01/16] media: imx: add mem2mem device

2018-10-19 Thread Tim Harvey
On Fri, Oct 19, 2018 at 1:19 PM Steve Longerbeam wrote: > > > On 10/19/18 2:53 AM, Philipp Zabel wrote: > > Hi Tim, > > > > On Thu, 2018-10-18 at 15:53 -0700, Tim Harvey wrote: > > [...] > >> Philipp, > >> > >> Thanks for submitting this! > >> > >> I'm hoping this lets us use non-IMX capture devic

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

2018-10-19 Thread Sakari Ailus
Hi Marco, Thanks for the patchset. On Fri, Oct 19, 2018 at 05:50:27PM +0200, Marco Felsch wrote: > 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-

Re: [PATCH v4 2/2] media: platform: Add Aspeed Video Engine driver

2018-10-19 Thread Eddie James
On 10/12/2018 07:22 AM, Hans Verkuil wrote: On 10/05/2018 09:57 PM, Eddie James wrote: The Video Engine (VE) embedded in the Aspeed AST2400 and AST2500 SOCs can capture and compress video data from digital or analog sources. With the Aspeed chip acting a service processor, the Video Engine ca

Re: [PATCH] media: rename soc_camera I2C drivers

2018-10-19 Thread Sakari Ailus
Hi Jacopo, On Fri, Oct 19, 2018 at 03:13:28PM +0200, jacopo mondi wrote: > Hi Mauro, Hans, Sakari, > > On Fri, Oct 19, 2018 at 03:58:51PM +0300, Sakari Ailus wrote: > > Hi Hans, Mauro, > > > > On Fri, Oct 19, 2018 at 02:39:27PM +0200, Hans Verkuil wrote: > > > On 10/19/18 14:31, Mauro Carvalho Ch

Re: [PATCH v3 01/16] media: imx: add mem2mem device

2018-10-19 Thread Steve Longerbeam
On 10/19/18 2:53 AM, Philipp Zabel wrote: Hi Tim, On Thu, 2018-10-18 at 15:53 -0700, Tim Harvey wrote: [...] Philipp, Thanks for submitting this! I'm hoping this lets us use non-IMX capture devices along with the IMX media controller entities to so we can use hardware CSC,scaling,pixel-form

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

2018-10-19 Thread Steve Longerbeam
On 10/18/18 10:56 AM, Tim Harvey wrote: On Wed, Oct 17, 2018 at 4:37 PM Steve Longerbeam wrote: On 10/17/18 4:05 PM, Tim Harvey wrote: On Wed, Oct 17, 2018 at 2:33 PM Steve Longerbeam wrote: Hi Tim, On 10/17/18 1:38 PM, Tim Harvey wrote: On Mon, Jun 4, 2018 at 1:58 AM Krzysztof Hałasa

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

2018-10-19 Thread Adam Ford
On Fri, Oct 19, 2018 at 8:45 AM Adam Ford wrote: > > On Wed, Oct 17, 2018 at 3:01 AM jacopo mondi wrote: > > > > Hi Adam, Seve, > > > > On Tue, Oct 16, 2018 at 05:13:24PM -0700, Steve Longerbeam wrote: > > > Hi Adam, > > > > > > > > > On 10/16/18 12:46 PM, Adam Ford wrote: > > > >On Thu, Sep 20,

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

2018-10-19 Thread kbuild test robot
Hi Enrico, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.19-rc8 next-20181019] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day

Re: [PATCH v4 00/22] i.MX media mem2mem scaler

2018-10-19 Thread Steve Longerbeam
Awesome, thanks Philipp. For the whole series: Acked-by: Steve Longerbeam Tested-by: Steve Longerbeam on i.MX6q SabreSD. On 10/19/18 5:15 AM, Philipp Zabel wrote: Hi, this is the fourth version of the i.MX mem2mem scaler series. An alignment issue with 24-bit RGB formats has been correcte

Re: [PATCH v4 2/2] media: platform: Add Aspeed Video Engine driver

2018-10-19 Thread Eddie James
On 10/12/2018 07:22 AM, Hans Verkuil wrote: On 10/05/2018 09:57 PM, Eddie James wrote: The Video Engine (VE) embedded in the Aspeed AST2400 and AST2500 SOCs can capture and compress video data from digital or analog sources. With the Aspeed chip acting a service processor, the Video Engine ca

Re: [PATCH v4 2/2] media: platform: Add Aspeed Video Engine driver

2018-10-19 Thread Eddie James
On 10/17/2018 05:41 AM, Hans Verkuil wrote: On 10/05/2018 09:57 PM, Eddie James wrote: The Video Engine (VE) embedded in the Aspeed AST2400 and AST2500 SOCs can capture and compress video data from digital or analog sources. With the Aspeed chip acting a service processor, the Video Engine ca

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

2018-10-19 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 0/4] media: mt9m111 features

2018-10-19 Thread Marco Felsch
Hello, the purpose of this series is to support the pixclk polarity and the framerate selection. I picked the patches form Michael and Enrico, ported them to 4.19 and did some adjustments. I tested the framrate and pixckl selection on a custom arm based board. Enrico Scholz (1): media: mt9m111

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

2018-10-19 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 3/4] media: mt9m111: add support to select formats and fps for {Q,SXGA}

2018-10-19 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 1/4] media: mt9m111: add s_stream callback

2018-10-19 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/

Re: [PATCH v3 1/2] media: add SECO cec driver

2018-10-19 Thread ektor5
On Thu, Oct 18, 2018 at 10:47:28AM +0200, jacopo mondi wrote: > Hi Ettore, >thanks for the patches. > > A few other things, please see below. > > On Wed, Oct 17, 2018 at 11:31:41PM +0200, ektor5 wrote: > > From: Ettore Chimenti > > > > This patch adds support to the CEC device implemented wi

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

2018-10-19 Thread Wenwen Wang
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 purposes. If yes, ts_play() will be called. Otherwise, dvb_aplay() will be called. In ts_play(), the content of 'bu

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

2018-10-19 Thread Adam Ford
On Wed, Oct 17, 2018 at 3:01 AM jacopo mondi wrote: > > Hi Adam, Seve, > > On Tue, Oct 16, 2018 at 05:13:24PM -0700, Steve Longerbeam wrote: > > Hi Adam, > > > > > > On 10/16/18 12:46 PM, Adam Ford wrote: > > >On Thu, Sep 20, 2018 at 9:58 AM jacopo mondi wrote: > > >>Hi imx6 people, > > >> > > >>

Re: RFC: kernelCI media subsystem pilot (Test results for gtucker/kernelci-media - gtucker-kernelci-media-001-6-g1b2c6e5844d8)

2018-10-19 Thread Ezequiel Garcia
On Fri, 2018-10-19 at 09:06 +0200, Hans Verkuil wrote: > On 10/18/2018 09:23 PM, Ezequiel Garcia wrote: > > Hi everyone, > > > > In Collabora, and as part of our kernelci work, we are doing > > research on kernel functional testing with kernelci. > > > > For those new to kernelci, see > > https:

Re: [PATCH v3 1/2] media: add SECO cec driver

2018-10-19 Thread Hans Verkuil
On 10/19/18 15:02, ektor5 wrote: > Hi Hans, > > On Thu, Oct 18, 2018 at 09:14:55AM +0200, Hans Verkuil wrote: >> Hi Ettore, >> >> Just a few small things and it is ready to go: >> >> On 10/17/2018 11:31 PM, ektor5 wrote: >>> From: Ettore Chimenti >>> >>> This patch adds support to the CEC device

Re: [PATCH 2/2] vicodec: Implement spec-compliant stop command

2018-10-19 Thread Ezequiel Garcia
Hi Nicolas, On Fri, 2018-10-19 at 07:41 -0400, Nicolas Dufresne wrote: > Le vendredi 19 octobre 2018 à 07:35 -0400, Nicolas Dufresne a écrit : > > Le vendredi 19 octobre 2018 à 09:28 +0200, Hans Verkuil a écrit : > > > On 10/18/2018 06:08 PM, Ezequiel Garcia wrote: > > > > Set up a statically-allo

Re: [PATCH] media: rename soc_camera I2C drivers

2018-10-19 Thread jacopo mondi
Hi Mauro, Hans, Sakari, On Fri, Oct 19, 2018 at 03:58:51PM +0300, Sakari Ailus wrote: > Hi Hans, Mauro, > > On Fri, Oct 19, 2018 at 02:39:27PM +0200, Hans Verkuil wrote: > > On 10/19/18 14:31, Mauro Carvalho Chehab wrote: > > > Em Fri, 19 Oct 2018 13:45:32 +0200 > > > Hans Verkuil escreveu: > > >

Re: [PATCH 2/2] vicodec: Implement spec-compliant stop command

2018-10-19 Thread Ezequiel Garcia
On Fri, 2018-10-19 at 09:28 +0200, Hans Verkuil wrote: > On 10/18/2018 06:08 PM, Ezequiel Garcia wrote: > > Set up a statically-allocated, dummy buffer to > > be used as flush buffer, which signals > > a encoding (or decoding) stop. > > > > When the flush buffer is queued to the OUTPUT queue, > >

Re: [PATCH v3 1/2] media: add SECO cec driver

2018-10-19 Thread ektor5
Hi Hans, On Thu, Oct 18, 2018 at 09:14:55AM +0200, Hans Verkuil wrote: > Hi Ettore, > > Just a few small things and it is ready to go: > > On 10/17/2018 11:31 PM, ektor5 wrote: > > From: Ettore Chimenti > > > > This patch adds support to the CEC device implemented with a STM32 > > microcontrol

Re: [PATCH 1/2] vicodec: Have decoder propagate changes to the CAPTURE queue

2018-10-19 Thread Ezequiel Garcia
On Fri, 2018-10-19 at 09:14 +0200, Hans Verkuil wrote: > On 10/18/2018 06:08 PM, Ezequiel Garcia wrote: > > The decoder interface (not yet merged) specifies that > > width and height values set on the OUTPUT queue, must > > be propagated to the CAPTURE queue. > > > > This is not enough to comply w

Re: [PATCH] media: rename soc_camera I2C drivers

2018-10-19 Thread Sakari Ailus
Hi Hans, Mauro, On Fri, Oct 19, 2018 at 02:39:27PM +0200, Hans Verkuil wrote: > On 10/19/18 14:31, Mauro Carvalho Chehab wrote: > > Em Fri, 19 Oct 2018 13:45:32 +0200 > > Hans Verkuil escreveu: > > > >> On 10/19/18 13:43, Mauro Carvalho Chehab wrote: > >>> Those drivers are part of the legacy So

[V3, 4/4] media: platform: dwc: Add MIPI CSI-2 controller driver

2018-10-19 Thread Luis Oliveira
Add the Synopsys MIPI CSI-2 controller driver. This controller driver is divided in platform dependent functions and core functions. It also includes a platform for future DesignWare drivers. Signed-off-by: Luis Oliveira --- Changelog v2-V3 - exposed IPI settings to userspace - fixed headers MA

[V3, 0/4] platform: dwc: Add of DesignWare MIPI CSI-2 Host

2018-10-19 Thread Luis Oliveira
This adds support for Synopsys MIPI CSI-2 Host and MIPI D-PHY. The patch series include support for initialization/configuration of the DW MIPI CSI-2 controller and DW MIPI D-PHY and both include a reference platform driver. This way the future PCI integration will be clean. This will enable futur

[V3, 3/4] Documentation: dt-bindings: media: Document bindings for DW MIPI CSI-2 Host

2018-10-19 Thread Luis Oliveira
Add bindings for Synopsys DesignWare MIPI CSI-2 host. Signed-off-by: Luis Oliveira --- Changelog v2-V3 - removed IPI settings .../devicetree/bindings/media/snps,dw-csi-plat.txt | 52 ++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/me

[V3, 2/4] media: platform: dwc: Add DW MIPI DPHY Rx platform

2018-10-19 Thread Luis Oliveira
Add of Synopsys MIPI D-PHY in RX mode support. Separated in the implementation are platform dependent probing functions. Signed-off-by: Luis Oliveira --- Changelog v2-V3 - merged V2 Patch 1 with Patch 3. - fixed headers problems. - add IS_ENABLED to separate implementations of "ASIC" DPHY and "T

[V3, 1/4] Documentation: dt-bindings: phy: Document the Synopsys MIPI DPHY Rx bindings

2018-10-19 Thread Luis Oliveira
Add device-tree bindings documentation for SNPS DesignWare MIPI D-PHY in RX mode. Signed-off-by: Luis Oliveira --- Changelog v2-V3 - removed gpios reference - it was for a separated driver - changed address to show complete address .../devicetree/bindings/phy/snps,dphy-rx.txt | 28 +++

Re: [PATCH] media: rename soc_camera I2C drivers

2018-10-19 Thread Hans Verkuil
On 10/19/18 14:31, Mauro Carvalho Chehab wrote: > Em Fri, 19 Oct 2018 13:45:32 +0200 > Hans Verkuil escreveu: > >> On 10/19/18 13:43, Mauro Carvalho Chehab wrote: >>> Those drivers are part of the legacy SoC camera framework. >>> They're being converted to not use it, but sometimes we're >>> keep

Re: [PATCH] media: rename soc_camera I2C drivers

2018-10-19 Thread Mauro Carvalho Chehab
Em Fri, 19 Oct 2018 13:45:32 +0200 Hans Verkuil escreveu: > On 10/19/18 13:43, Mauro Carvalho Chehab wrote: > > Those drivers are part of the legacy SoC camera framework. > > They're being converted to not use it, but sometimes we're > > keeping both legacy any new driver. > > > > This time, for

Re: [PATCH v3 00/16] i.MX media mem2mem scaler

2018-10-19 Thread Philipp Zabel
Hi Steve, On Wed, 2018-10-17 at 16:46 -0700, Steve Longerbeam wrote: > Hi Philipp, > > On 10/12/18 5:29 PM, Steve Longerbeam wrote: > > > > > > But one last thing. Conversions to and from YV12 are producing images > > with wrong colors, it looks like the .uv_swapped boolean needs to be > > che

[PATCH v4 02/22] gpu: ipu-cpmem: add WARN_ON_ONCE() for unaligned dma buffers

2018-10-19 Thread Philipp Zabel
From: Steve Longerbeam Add a WARN_ON_ONCE() if either the Y/packed buffer, or the U/V offsets, are not aligned on 8-byte boundaries. This will catch alignment bugs in DRM, V4L2. Signed-off-by: Steve Longerbeam --- No changes since v3. --- drivers/gpu/ipu-v3/ipu-cpmem.c | 6 ++ 1 file chang

[PATCH v4 16/22] gpu: ipu-v3: image-convert: select optimal seam positions

2018-10-19 Thread Philipp Zabel
Select seam positions that minimize distortions during seam hiding while satifying input and output IDMAC, rotator, and image format constraints. This code looks for aligned output seam positions that minimize the difference between the fractional corresponding ideal input positions and the input

[PATCH v4 14/22] gpu: ipu-v3: image-convert: calculate tile dimensions and offsets outside fill_image

2018-10-19 Thread Philipp Zabel
This will allow to calculate seam positions after initializing the ipu_image base structure but before calculating tile dimensions. Signed-off-by: Philipp Zabel --- No changes since v3. --- drivers/gpu/ipu-v3/ipu-image-convert.c | 18 +- 1 file changed, 13 insertions(+), 5 deleti

[PATCH v4 03/22] gpu: ipu-v3: Add chroma plane offset overrides to ipu_cpmem_set_image()

2018-10-19 Thread Philipp Zabel
From: Steve Longerbeam Allow the caller of ipu_cpmem_set_image() to override the latters calculation of the chroma plane offsets, by adding override U/V plane offsets to 'struct ipu_image'. Signed-off-by: Steve Longerbeam --- New since v3. --- drivers/gpu/ipu-v3/ipu-cpmem.c | 46 ++

[PATCH v4 13/22] gpu: ipu-v3: image-convert: store tile top/left position

2018-10-19 Thread Philipp Zabel
Store tile top/left position in pixels in the tile structure. This will allow overlapping tiles with different sizes later. Signed-off-by: Philipp Zabel --- No functional changes since v3. --- drivers/gpu/ipu-v3/ipu-image-convert.c | 27 ++ 1 file changed, 15 insertions(+

[PATCH v4 19/22] gpu: ipu-v3: image-convert: fix bytesperline adjustment

2018-10-19 Thread Philipp Zabel
For planar formats, bytesperline does not depend on BPP. It must always be larger than width and aligned to tile width alignment restrictions. The input bytesperline to ipu_image_convert_adjust() may be uninitialized, so don't rely on input bytesperline as the minimum value for clamp_align(). Use

[PATCH v4 15/22] gpu: ipu-v3: image-convert: move tile alignment helpers

2018-10-19 Thread Philipp Zabel
Move tile_width_align and tile_height_align up so they can be used by the tile edge position calculation code. Signed-off-by: Philipp Zabel --- No changes since v3. --- drivers/gpu/ipu-v3/ipu-image-convert.c | 54 +- 1 file changed, 27 insertions(+), 27 deletions(-) diff

[PATCH v4 00/22] i.MX media mem2mem scaler

2018-10-19 Thread Philipp Zabel
Hi, this is the fourth version of the i.MX mem2mem scaler series. An alignment issue with 24-bit RGB formats has been corrected in the seam position selection patch and a few new fixes by Steve have been added. If there are no more issues, I'll pick up the ipu-v3 patches via imx-drm/next. The fir

[PATCH v4 12/22] gpu: ipu-v3: image-convert: reconfigure IC per tile

2018-10-19 Thread Philipp Zabel
For differently sized tiles or if the resizing coefficients change, we have to stop, reconfigure, and restart the IC between tiles. Signed-off-by: Philipp Zabel --- No changes since v3. --- drivers/gpu/ipu-v3/ipu-image-convert.c | 65 +- 1 file changed, 44 insertions(+),

[PATCH v4 18/22] gpu: ipu-v3: image-convert: relax alignment restrictions

2018-10-19 Thread Philipp Zabel
For the planar but U/V-packed formats NV12 and NV16, 8 pixel width alignment is good enough to fulfill the 8 byte stride requirement. If we allow the input 8-pixel DMA bursts to overshoot the end of the line, the only input alignment restrictions are dictated by the pixel format and 8-byte aligned

[PATCH v4 07/22] gpu: ipu-v3: image-convert: Allow reentrancy into abort

2018-10-19 Thread Philipp Zabel
From: Steve Longerbeam Allow reentrancy into ipu_image_convert_abort(), by moving re-init of ctx->aborted completion under the spin lock, and only if there is an active run, and complete all waiters do_bh(). Note: ipu_image_convert_unprepare() is still _not_ reentrant, and can't be made reentrant

[PATCH v4 04/22] gpu: ipu-v3: ipu-ic: allow to manually set resize coefficients

2018-10-19 Thread Philipp Zabel
For tiled scaling, we want to compute the scaling coefficients externally in such a way that the interpolation overshoots tile boundaries and samples up to the first pixel of the next tile. Prepare to override the resizing coefficients from the image conversion code. Signed-off-by: Philipp Zabel

[PATCH v4 11/22] gpu: ipu-v3: image-convert: calculate per-tile resize coefficients

2018-10-19 Thread Philipp Zabel
Slightly modifying resize coefficients per-tile allows to completely hide the seams between tiles and to sample the correct input pixels at the bottom and right edges of the image. Tiling requires a bilinear interpolator reset at each tile start, which causes the image to be slightly shifted if th

[PATCH v4 09/22] gpu: ipu-v3: image-convert: Catch unaligned tile offsets

2018-10-19 Thread Philipp Zabel
From: Steve Longerbeam Catch calculated tile offsets that are not 8-byte aligned as required by the IDMAC engine and return error in calc_tile_offsets(). Signed-off-by: Steve Longerbeam --- New since v3. --- drivers/gpu/ipu-v3/ipu-image-convert.c | 61 -- 1 file changed

[PATCH v4 20/22] gpu: ipu-v3: image-convert: add some ASCII art to the exposition

2018-10-19 Thread Philipp Zabel
Visualize the scaling and rotation pipeline with some ASCII art diagrams. Remove the FIXME comment about missing seam prevention. Signed-off-by: Philipp Zabel --- No changes since v3. --- drivers/gpu/ipu-v3/ipu-image-convert.c | 39 +++--- 1 file changed, 29 insertions(+), 10

[PATCH v4 22/22] gpu: ipu-v3: image-convert: allow three rows or columns

2018-10-19 Thread Philipp Zabel
If width or height are in the [2049, 3072] range, allow to use just three tiles in this dimension, instead of four. Signed-off-by: Philipp Zabel --- No changes since v3. --- drivers/gpu/ipu-v3/ipu-image-convert.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/g

[PATCH v4 01/22] media: imx: add mem2mem device

2018-10-19 Thread Philipp Zabel
Add a single imx-media mem2mem video device that uses the IPU IC PP (image converter post processing) task for scaling and colorspace conversion. On i.MX6Q/DL SoCs with two IPUs currently only the first IPU is used. The hardware only supports writing to destination buffers up to 1024x1024 pixels i

[PATCH v4 10/22] gpu: ipu-v3: image-convert: prepare for per-tile configuration

2018-10-19 Thread Philipp Zabel
Let convert_start start from a given tile index, allocate intermediate tile with maximum tile size. Signed-off-by: Philipp Zabel --- No changes since v3. --- drivers/gpu/ipu-v3/ipu-image-convert.c | 60 +++--- 1 file changed, 35 insertions(+), 25 deletions(-) diff --git a/dr

[PATCH v4 21/22] gpu: ipu-v3: image-convert: disable double buffering if necessary

2018-10-19 Thread Philipp Zabel
Double-buffering only works if tile sizes are the same and the resizing coefficient does not change between tiles, even for non-planar formats. Signed-off-by: Philipp Zabel --- No changes since v3. --- drivers/gpu/ipu-v3/ipu-image-convert.c | 27 -- 1 file changed, 25 ins

[PATCH v4 06/22] gpu: ipu-v3: image-convert: Only wait for abort completion if active run

2018-10-19 Thread Philipp Zabel
From: Steve Longerbeam Only wait for the ctx->aborted completion if there is an active run in progress, otherwise the wait will just timeout after 10 seconds. If there is no active run in progress, the done queue just needs to be emptied. Signed-off-by: Steve Longerbeam --- New since v3. --- d

[PATCH v4 08/22] gpu: ipu-v3: image-convert: Remove need_abort flag

2018-10-19 Thread Philipp Zabel
From: Steve Longerbeam The need_abort flag is not really needed anymore in __ipu_image_convert_abort(), remove it. No functional changes. Signed-off-by: Steve Longerbeam --- New since v3. --- drivers/gpu/ipu-v3/ipu-image-convert.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff

[PATCH v4 05/22] gpu: ipu-v3: image-convert: Prevent race between run and unprepare

2018-10-19 Thread Philipp Zabel
From: Steve Longerbeam Prevent possible race by parallel threads between ipu_image_convert_run() and ipu_image_convert_unprepare(). This involves setting ctx->aborting to true unconditionally so that no new job runs can be queued during unprepare, and holding the ctx->aborting flag until the cont

[PATCH v4 17/22] gpu: ipu-v3: image-convert: fix debug output for varying tile sizes

2018-10-19 Thread Philipp Zabel
Since tile dimensions now vary between tiles, add debug output for each tile's position and dimensions. Signed-off-by: Philipp Zabel --- No changes since v3. --- drivers/gpu/ipu-v3/ipu-image-convert.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/i

Re: [PATCH] media: rename soc_camera I2C drivers

2018-10-19 Thread Hans Verkuil
On 10/19/18 13:43, Mauro Carvalho Chehab wrote: > Those drivers are part of the legacy SoC camera framework. > They're being converted to not use it, but sometimes we're > keeping both legacy any new driver. > > This time, for example, we have two drivers on media with > the same name: ov772x. Tha

[PATCH] media: rename soc_camera I2C drivers

2018-10-19 Thread Mauro Carvalho Chehab
Those drivers are part of the legacy SoC camera framework. They're being converted to not use it, but sometimes we're keeping both legacy any new driver. This time, for example, we have two drivers on media with the same name: ov772x. That's bad. So, in order to prevent that to happen, let's prep

Re: [PATCH 2/2] vicodec: Implement spec-compliant stop command

2018-10-19 Thread Nicolas Dufresne
Le vendredi 19 octobre 2018 à 07:35 -0400, Nicolas Dufresne a écrit : > Le vendredi 19 octobre 2018 à 09:28 +0200, Hans Verkuil a écrit : > > On 10/18/2018 06:08 PM, Ezequiel Garcia wrote: > > > Set up a statically-allocated, dummy buffer to > > > be used as flush buffer, which signals > > > a enco

Re: [PATCH 2/2] vicodec: Implement spec-compliant stop command

2018-10-19 Thread Hans Verkuil
On 10/19/18 13:35, Nicolas Dufresne wrote: > Le vendredi 19 octobre 2018 à 09:28 +0200, Hans Verkuil a écrit : >> On 10/18/2018 06:08 PM, Ezequiel Garcia wrote: >>> Set up a statically-allocated, dummy buffer to >>> be used as flush buffer, which signals >>> a encoding (or decoding) stop. >>> >>> W

Re: [PATCH 2/2] vicodec: Implement spec-compliant stop command

2018-10-19 Thread Nicolas Dufresne
Le vendredi 19 octobre 2018 à 09:28 +0200, Hans Verkuil a écrit : > On 10/18/2018 06:08 PM, Ezequiel Garcia wrote: > > Set up a statically-allocated, dummy buffer to > > be used as flush buffer, which signals > > a encoding (or decoding) stop. > > > > When the flush buffer is queued to the OUTPUT

Re: [PATCH 1/2] media: mst3367: add support for mstar mst3367 HDMI RX

2018-10-19 Thread Lucas Stach
Am Freitag, den 19.10.2018, 12:54 +0200 schrieb Michael Grzeschik: > > From: Steven Toth > > This patch is based on the work of Steven Toth. He reverse engineered > the driver by tracing the windows driver. > > https://github.com/stoth68000/hdcapm/ > > > Signed-off-by: Steven Toth > > Signed-o

[PATCH 2/2] media: hdcapm: add support for usb2hdcapm hdmi2usb framegrabber from startech

2018-10-19 Thread Michael Grzeschik
From: Steven Toth This patch is based on the work of Steven Toth. He reverse engineered the driver by tracing the windows driver. https://github.com/stoth68000/hdcapm/ Signed-off-by: Steven Toth Signed-off-by: Michael Grzeschik --- MAINTAINERS | 6 + driver

[PATCH 1/2] media: mst3367: add support for mstar mst3367 HDMI RX

2018-10-19 Thread Michael Grzeschik
From: Steven Toth This patch is based on the work of Steven Toth. He reverse engineered the driver by tracing the windows driver. https://github.com/stoth68000/hdcapm/ Signed-off-by: Steven Toth Signed-off-by: Michael Grzeschik --- MAINTAINERS |6 + drivers/media/i2c/Kcon

[PATCH 0/2] media: Startech usb2hdcapm hdmi2usb framegrabber support

2018-10-19 Thread Michael Grzeschik
This series adds support for the Startech usb2hdcapm framegrabber. The code is based on the external kernel module code from Steven Toth's github page: https://github.com/stoth68000/hdcapm/ We applied checkpatch.pl --strict and cleaned up the 80 character length, whitespace issues and replaced si

Re: [PATCH 1/2] media: ov5640: Add check for PLL1 output max frequency

2018-10-19 Thread Maxime Ripard
Hi, On Thu, Oct 18, 2018 at 03:35:25PM +0200, jacopo mondi wrote: > Hi Maxime, > > On Thu, Oct 18, 2018 at 11:15:50AM +0200, Maxime Ripard wrote: > > On Wed, Oct 17, 2018 at 09:37:17PM +0200, Jacopo Mondi wrote: > > > Check that the PLL1 output frequency does not exceed the maximum allowed > > >

Re: [PATCH v4 01/12] media: ov5640: Adjust the clock based on the expected rate

2018-10-19 Thread Maxime Ripard
Hi! On Thu, Oct 18, 2018 at 03:46:05PM +0200, jacopo mondi wrote: > Hello Maxime, > > On Thu, Oct 18, 2018 at 11:29:12AM +0200, Maxime Ripard wrote: > > Hi Jacopo, > > > > Thanks for reviewing this patch > > > > On Tue, Oct 16, 2018 at 06:54:50PM +0200, jacopo mondi wrote: > > > > +static unsigne

Re: [PATCH v3 01/16] media: imx: add mem2mem device

2018-10-19 Thread Philipp Zabel
Hi Tim, On Thu, 2018-10-18 at 15:53 -0700, Tim Harvey wrote: [...] > Philipp, > > Thanks for submitting this! > > I'm hoping this lets us use non-IMX capture devices along with the IMX > media controller entities to so we can use hardware > CSC,scaling,pixel-format-conversions and ultimately cod

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

2018-10-19 Thread Philipp Zabel
On Wed, 2018-10-17 at 14:33 -0700, Steve Longerbeam wrote: [...] > > I'm also interested in looking at Philipps' 'i.MX media mem2mem > > scaler' series (https://patchwork.kernel.org/cover/10603881/) and am > > wondering if anyone has some example pipelines showing that in use. > > I'm hoping that i

[RFC] Stateless codecs: how to refer to reference frames

2018-10-19 Thread Hans Verkuil
>From Alexandre's '[RFC PATCH v3] media: docs-rst: Document m2m stateless video decoder interface': On 10/19/18 10:09, Alexandre Courbot wrote: > Two points being currently discussed have not been changed in this > revision due to lack of better idea. Of course this is open to change: > * The o

Re: [RFC PATCH v3] media: docs-rst: Document m2m stateless video decoder interface

2018-10-19 Thread Hans Verkuil
On 10/19/18 10:09, Alexandre Courbot wrote: > Thanks everyone for the feedback on v2! I have not replied to all the > individual emails but hope this v3 will address some of the problems > raised and become a continuation point for the topics still in > discussion (probably during the ELCE Media Su

[RFC PATCH v3] media: docs-rst: Document m2m stateless video decoder interface

2018-10-19 Thread Alexandre Courbot
Thanks everyone for the feedback on v2! I have not replied to all the individual emails but hope this v3 will address some of the problems raised and become a continuation point for the topics still in discussion (probably during the ELCE Media Summit). This patch documents the protocol that user-

[PATCH] cec: keep track of outstanding transmits

2018-10-19 Thread Hans Verkuil
I noticed that repeatedly running 'cec-ctl --playback' would occasionally select 'Playback Device 2' instead of 'Playback Device 1', even though there were no other Playback devices in the HDMI topology. This happened both with 'real' hardware and with the vivid CEC emulation, suggesting that this

Re: [PATCH 2/2] vicodec: Implement spec-compliant stop command

2018-10-19 Thread Hans Verkuil
On 10/18/2018 06:08 PM, Ezequiel Garcia wrote: > Set up a statically-allocated, dummy buffer to > be used as flush buffer, which signals > a encoding (or decoding) stop. > > When the flush buffer is queued to the OUTPUT queue, > the driver will send an V4L2_EVENT_EOS event, and > mark the CAPTURE

Re: [PATCH 1/2] vicodec: Have decoder propagate changes to the CAPTURE queue

2018-10-19 Thread Hans Verkuil
On 10/18/2018 06:08 PM, Ezequiel Garcia wrote: > The decoder interface (not yet merged) specifies that > width and height values set on the OUTPUT queue, must > be propagated to the CAPTURE queue. > > This is not enough to comply with the specification, > which would require to properly support st

Re: RFC: kernelCI media subsystem pilot (Test results for gtucker/kernelci-media - gtucker-kernelci-media-001-6-g1b2c6e5844d8)

2018-10-19 Thread Hans Verkuil
On 10/18/2018 09:23 PM, Ezequiel Garcia wrote: > Hi everyone, > > In Collabora, and as part of our kernelci work, we are doing > research on kernel functional testing with kernelci. > > For those new to kernelci, see > https://github.com/kernelci/kernelci-doc/wiki/KernelCI > and https://kernelc

[GIT PULL FOR v4.20] request_api: Rename vb2_m2m_request_queue

2018-10-19 Thread Hans Verkuil
Just one patch that renames vb2_m2m_request_queue to v4l2_m2m_request_queue. Regards, Hans The following changes since commit e4183d3256e3cd668e899d06af66da5aac3a51af: media: dt-bindings: Document the Rockchip VPU bindings (2018-10-05 07:00:43 -0400) are available in the Git reposit