cron job: media_tree daily build: OK

2018-10-16 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: Wed Oct 17 05:00:10 CEST 2018 media-tree git hash:490d84f6d73c12f4204241cff8651eed60aae914 media_build gi

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

2018-10-16 Thread Steve Longerbeam
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, On Thu, May 31, 2018 at 08:39:20PM +0530, Jagan Teki wrote: Hi All, I'm trying to verify MIPI-CSI2 OV5640 camera on i.MX6 platform with Mainline Linux. Sorry to resurect thi

[PATCH v5 03/12] gpu: ipu-v3: Add planar support to interlaced scan

2018-10-16 Thread Steve Longerbeam
To support interlaced scan with planar formats, cpmem SLUV must be programmed with the correct chroma line stride. For full and partial planar 4:2:2 (YUV422P, NV16), chroma line stride must be doubled. For full and partial planar 4:2:0 (YUV420, YVU420, NV12), chroma line stride must _not_ be double

[PATCH v5 12/12] media: imx.rst: Update doc to reflect fixes to interlaced capture

2018-10-16 Thread Steve Longerbeam
Also add an example pipeline for unconverted capture with interweave on SabreAuto. Cleanup some language in various places in the process. Signed-off-by: Steve Longerbeam --- Changes since v4: - Make clear that it is IDMAC channel that does pixel reordering and interweave, not the CSI. Caught

[PATCH v5 05/12] media: imx-csi: Input connections to CSI should be optional

2018-10-16 Thread Steve Longerbeam
Some imx platforms do not have fwnode connections to all CSI input ports, and should not be treated as an error. This includes the imx6q SabreAuto, which has no connections to ipu1_csi1 and ipu2_csi0. Return -ENOTCONN in imx_csi_parse_endpoint() so that v4l2-fwnode endpoint parsing will not treat a

[PATCH v5 08/12] media: imx-csi: Allow skipping odd chroma rows for YVU420

2018-10-16 Thread Steve Longerbeam
Skip writing U/V components to odd rows for YVU420 in addition to YUV420 and NV12. Signed-off-by: Steve Longerbeam Reviewed-by: Philipp Zabel --- drivers/staging/media/imx/imx-media-csi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/imx/imx-media-csi.c b/drivers/st

[PATCH v5 09/12] media: imx: vdic: rely on VDIC for correct field order

2018-10-16 Thread Steve Longerbeam
prepare_vdi_in_buffers() was setting up the dma pointers as if the VDIC is always programmed to receive the fields in bottom-top order, i.e. as if ipu_vdi_set_field_order() only programs BT order in the VDIC. But that's not true, ipu_vdi_set_field_order() is working correctly. So fix prepare_vdi_i

[PATCH v5 04/12] media: imx: Fix field negotiation

2018-10-16 Thread Steve Longerbeam
IDMAC interlaced scan, a.k.a. interweave, should be enabled in the IDMAC output channels only if the IDMAC output pad field type is 'seq-bt' or 'seq-tb', and field type at the capture interface is 'interlaced*'. V4L2_FIELD_HAS_BOTH() macro should not be used on the input to determine enabling inte

[PATCH v5 06/12] media: imx-csi: Double crop height for alternate fields at sink

2018-10-16 Thread Steve Longerbeam
If the incoming sink field type is alternate, the reset crop height and crop height bounds must be set to twice the incoming height, because in alternate field mode, upstream will report only the lines for a single field, and the CSI captures the whole frame. Signed-off-by: Steve Longerbeam Revie

[PATCH v5 10/12] media: imx-csi: Move crop/compose reset after filling default mbus fields

2018-10-16 Thread Steve Longerbeam
If caller passes un-initialized field type V4L2_FIELD_ANY to CSI sink pad, the reset CSI crop window would not be correct, because the crop window depends on a valid input field type. To fix move the reset of crop and compose windows to after the call to imx_media_fill_default_mbus_fields(). Signe

[PATCH v5 11/12] media: imx: Allow interweave with top/bottom lines swapped

2018-10-16 Thread Steve Longerbeam
Allow sequential->interlaced interweaving but with top/bottom lines swapped to the output buffer. This can be accomplished by adding one line length to IDMAC output channel address, with a negative line length for the interlace offset. This is to allow the seq-bt -> interlaced-bt transformation,

[PATCH v5 07/12] media: imx: interweave and odd-chroma-row skip are incompatible

2018-10-16 Thread Steve Longerbeam
If IDMAC interweaving is enabled in a write channel, the channel must write the odd chroma rows for 4:2:0 formats. Skipping writing the odd chroma rows produces corrupted captured 4:2:0 images when interweave is enabled. Reported-by: Krzysztof Hałasa Signed-off-by: Steve Longerbeam Reviewed-by:

[PATCH v5 02/12] gpu: ipu-csi: Swap fields according to input/output field types

2018-10-16 Thread Steve Longerbeam
The function ipu_csi_init_interface() was inverting the F-bit for NTSC case, in the CCIR_CODE_1/2 registers. The result being that for NTSC bottom-top field order, the CSI would swap fields and capture in top-bottom order. Instead, base field swap on the field order of the input to the CSI, and th

[PATCH v5 00/12] imx-media: Fixes for interlaced capture

2018-10-16 Thread Steve Longerbeam
A set of patches that fixes some bugs with capturing from an interlaced source, and incompatibilites between IDMAC interlace interweaving and 4:2:0 data write reduction. History: v5: - Added a regression fix to allow empty endpoints to CSI (fix for imx6q SabreAuto). - Cleaned up some convoluted

[PATCH v5 01/12] media: videodev2.h: Add more field helper macros

2018-10-16 Thread Steve Longerbeam
Adds two helper macros: V4L2_FIELD_IS_SEQUENTIAL: returns true if the given field type is 'sequential', that is a full frame is transmitted, or exists in memory, as all top field lines followed by all bottom field lines, or vice-versa. V4L2_FIELD_IS_INTERLACED: returns true if the given field typ

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

2018-10-16 Thread Adam Ford
On Thu, Sep 20, 2018 at 9:58 AM jacopo mondi wrote: > > Hi imx6 people, > > On Thu, May 31, 2018 at 08:39:20PM +0530, Jagan Teki wrote: > > Hi All, > > > > I'm trying to verify MIPI-CSI2 OV5640 camera on i.MX6 platform with > > Mainline Linux. > > Sorry to resurect this, but before diving deep int

Re: [PATCH 4/7] mfd: ds90ux9xx: add TI DS90Ux9xx de-/serializer MFD driver

2018-10-16 Thread Vladimir Zapolskiy
Hi Laurent, On 10/16/2018 04:12 PM, Laurent Pinchart wrote: > Hi Vladimir, > > On Saturday, 13 October 2018 18:10:25 EEST Vladimir Zapolskiy wrote: >> On 10/12/2018 04:01 PM, Laurent Pinchart wrote: >>> On Friday, 12 October 2018 14:47:52 EEST Kieran Bingham wrote: On 12/10/18 11:58, Vladimi

Re: [PATCH 1/4] media: ov5640: fix resolution update

2018-10-16 Thread Samuel Bobrowicz
Glad this is spurring a lot of conversation, and I’m happy to see this many contributors too. I think we have all solved many of these problems (and the many others) offline, and now it’s the hard part to try to glue them all together. I decided to jump back in the mix with these patches because

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

2018-10-16 Thread jacopo mondi
Hello Maxime, a few comments I have collected while testing the series. Please see below. On Thu, Oct 11, 2018 at 11:20:56AM +0200, Maxime Ripard wrote: > The clock structure for the PCLK is quite obscure in the documentation, and > was hardcoded through the bytes array of each and every mode.

Re: [PATCH v4 00/12] media: ov5640: Misc cleanup and improvements

2018-10-16 Thread jacopo mondi
Hello Maxime, On Thu, Oct 11, 2018 at 11:20:55AM +0200, Maxime Ripard wrote: > Hi, > > Here is a "small" series that mostly cleans up the ov5640 driver code, > slowly getting rid of the big data array for more understandable code > (hopefully). > > The biggest addition would be the clock rate comp

Re: [PATCH v11 0/5] Venus updates - PIL

2018-10-16 Thread Vikash Garodia
On 2018-10-08 19:02, Vikash Garodia wrote: This version of the series * extends the description of firmware subnode in documentation. * renames the flag suggesting the presence of tz and update code accordingly. Stanimir Varbanov (1): venus: firmware: register separate platform_device for

Re: [PATCH v3 6/6] media: video-i2c: support runtime PM

2018-10-16 Thread Akinobu Mita
2018年10月16日(火) 0:31 Sakari Ailus : > > Hi Mita-san, > > On Sun, Oct 14, 2018 at 03:02:39AM +0900, Akinobu Mita wrote: > > AMG88xx has a register for setting operating mode. This adds support > > runtime PM by changing the operating mode. > > > > The instruction for changing sleep mode to normal mo

[PATCH] media: rc: self test for IR encoders and decoders

2018-10-16 Thread Sean Young
ir-loopback can transmit IR on one rc device and check the correct scancode and protocol is decoded on a different rc device. This can be used to check IR transmission between two rc devices. Using rc-loopback, we use it to check the IR encoders and decoders themselves. No hardware is required for

Re: [PATCH 5/7] mfd: ds90ux9xx: add I2C bridge/alias and link connection driver

2018-10-16 Thread Laurent Pinchart
Hi Vladimir, On Friday, 12 October 2018 17:36:39 EEST Vladimir Zapolskiy wrote: > On 10/12/2018 04:12 PM, Laurent Pinchart wrote: > > On Friday, 12 October 2018 10:32:32 EEST Vladimir Zapolskiy wrote: > >> On 10/12/2018 09:04 AM, Lee Jones wrote: > >>> On Tue, 09 Oct 2018, Vladimir Zapolskiy wrote

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

2018-10-16 Thread Hans Verkuil
On 10/16/18 09:36, Tomasz Figa wrote: > On Tue, Aug 7, 2018 at 3:54 PM Tomasz Figa wrote: + * The driver must expose following selection targets on ``OUTPUT``: + + ``V4L2_SEL_TGT_CROP_BOUNDS`` + maximum crop bounds within the source buffer supported by the +

Re: [RFP] Which V4L2 ioctls could be replaced by better versions?

2018-10-16 Thread Hans Verkuil
On 10/03/18 10:24, Tomasz Figa wrote: > On Fri, Sep 21, 2018 at 3:14 AM Nicolas Dufresne wrote: >> >> Le jeudi 20 septembre 2018 à 16:42 +0200, Hans Verkuil a écrit : >>> Some parts of the V4L2 API are awkward to use and I think it would be >>> a good idea to look at possible candidates for that.

Re: [PATCH 4/7] mfd: ds90ux9xx: add TI DS90Ux9xx de-/serializer MFD driver

2018-10-16 Thread Laurent Pinchart
Hi Vladimir, On Saturday, 13 October 2018 18:10:25 EEST Vladimir Zapolskiy wrote: > On 10/12/2018 04:01 PM, Laurent Pinchart wrote: > > On Friday, 12 October 2018 14:47:52 EEST Kieran Bingham wrote: > >> On 12/10/18 11:58, Vladimir Zapolskiy wrote: > [snip] > > >> Essentially they are multi purpo

Re: [PATCH 4/7] mfd: ds90ux9xx: add TI DS90Ux9xx de-/serializer MFD driver

2018-10-16 Thread Laurent Pinchart
Hi Vladimir, On Friday, 12 October 2018 16:59:27 EEST Vladimir Zapolskiy wrote: > On 10/12/2018 04:01 PM, Laurent Pinchart wrote: > > On Friday, 12 October 2018 14:47:52 EEST Kieran Bingham wrote: > >> On 12/10/18 11:58, Vladimir Zapolskiy wrote: > >>> On 10/12/2018 12:20 PM, Kieran Bingham wrote:

HI

2018-10-16 Thread Lisa
I am sgt lisa. am sending this brief letter to solicit your partnership to transfer $3.5 M million US Dollars. I shall send you more information and procedures when I receive positive response from you. sgt lisa. (sgtlis...@gmail.com)

Re: [PATCH 3/7] dt-bindings: pinctrl: ds90ux9xx: add description of TI DS90Ux9xx pinmux

2018-10-16 Thread Laurent Pinchart
Hi Vladimir, On Saturday, 13 October 2018 16:47:48 EEST Vladimir Zapolskiy wrote: > On 10/12/2018 03:01 PM, Laurent Pinchart wrote: > > On Tuesday, 9 October 2018 00:12:01 EEST Vladimir Zapolskiy wrote: > >> From: Vladimir Zapolskiy > >> > >> TI DS90Ux9xx de-/serializers have a capability to mul

Re: [PATCH 6/8] drm: sti: don't pass GFP_DMA32 to dma_alloc_wc

2018-10-16 Thread Benjamin Gaignard
Le lun. 15 oct. 2018 à 11:12, Benjamin Gaignard a écrit : > > Le sam. 13 oct. 2018 à 17:17, Christoph Hellwig a écrit : > > > > The DMA API does its own zone decisions based on the coherent_dma_mask. > > > > Signed-off-by: Christoph Hellwig > > Reviewed-by: Benjamin Gaignard Christoph do you p

Re: [PATCH 1/7] dt-bindings: mfd: ds90ux9xx: add description of TI DS90Ux9xx ICs

2018-10-16 Thread Laurent Pinchart
Hi Vladimir, On Saturday, 13 October 2018 17:28:30 EEST Vladimir Zapolskiy wrote: > On 10/12/2018 02:44 PM, Laurent Pinchart wrote: > > On Tuesday, 9 October 2018 00:11:59 EEST Vladimir Zapolskiy wrote: > >> From: Sandeep Jain > >> > >> The change adds device tree binding description of TI DS90U

Re: [PATCH 1/4] media: ov5640: fix resolution update

2018-10-16 Thread Laurent Pinchart
Hi Hugues, On Monday, 15 October 2018 18:13:12 EEST Hugues FRUCHET wrote: > Hi Laurent, Jacopo, Sam, > > I'm also OK to change to a simpler alternative; > - drop the "restore" step > - send the whole init register sequence + mode changes + format changes > at streamon > > is this what you have

Re: [PATCH v7] media: add imx319 camera sensor driver

2018-10-16 Thread Sakari Ailus
Hi Tomasz, On Fri, Oct 12, 2018 at 05:06:56PM +0900, Tomasz Figa wrote: > On Fri, Oct 12, 2018 at 4:58 PM Sakari Ailus > wrote: > > > > Hi Tomasz, > > > > On Fri, Oct 12, 2018 at 01:51:10PM +0900, Tomasz Figa wrote: > > > Hi Sakari, > > > > > > On Wed, Sep 26, 2018 at 11:38 AM wrote: > > > > > >

Re: [PATCH] media: venus: add support for selection rectangles

2018-10-16 Thread Stanimir Varbanov
Hi Malathi, On 10/09/2018 10:53 AM, Malathi Gottam wrote: > Handles target type crop by setting the new active rectangle > to hardware. The new rectangle should be within YUV size. > > Signed-off-by: Malathi Gottam > --- > drivers/media/platform/qcom/venus/venc.c | 19 +-- > 1 f

Re: [PATCH 1/4] media: ov5640: fix resolution update

2018-10-16 Thread Hugues FRUCHET
Hi Jacopo, On 10/15/2018 05:24 PM, jacopo mondi wrote: > Hi Hugues, > > On Mon, Oct 15, 2018 at 03:13:12PM +, Hugues FRUCHET wrote: >> Hi Laurent, Jacopo, Sam, >> >> I'm also OK to change to a simpler alternative; >> - drop the "restore" step > > Do you mean the restore step at the end of 'o

Re: [PATCH v4 12/12] ov5640: Enforce a mode change when changing the framerate

2018-10-16 Thread Hugues FRUCHET
You're welcome ;) On 10/16/2018 09:10 AM, Maxime Ripard wrote: > Hi Hugues, > > On Mon, Oct 15, 2018 at 01:57:40PM +, Hugues FRUCHET wrote: >> This is already fixed in media tree: >> 0929983e49c81c1d413702cd9b83bb06c4a2555c media: ov5640: fix framerate update > > My bad then, I missed it, th

[ragnatech:media-tree] BUILD SUCCESS 490d84f6d73c12f4204241cff8651eed60aae914

2018-10-16 Thread kbuild test robot
tree/branch: git://git.ragnatech.se/linux media-tree branch HEAD: 490d84f6d73c12f4204241cff8651eed60aae914 media: cec: forgot to cancel delayed work elapsed time: 1093m configs tested: 210 The following configs have been built successfully. More configs may be tested in the coming days. alph

[PATCH] cec: report Vendor ID after initialization

2018-10-16 Thread Hans Verkuil
The CEC specification requires that the Vendor ID (if any) is reported after a logical address was claimed. This was never done, so add support for this. Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/cec/cec-adap.c b/drivers/media/cec/cec-adap.c index 31d1f4ab915e..ee4decc1cd64 1006

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

2018-10-16 Thread Tomasz Figa
On Tue, Aug 7, 2018 at 3:54 PM Tomasz Figa wrote: > > Hi Hans, > > On Wed, Jul 25, 2018 at 10:57 PM Hans Verkuil wrote: > > > > On 24/07/18 16:06, Tomasz Figa wrote: [snip] > > > +4. The client may set the raw source format on the ``OUTPUT`` queue via > > > + :c:func:`VIDIOC_S_FMT`. > > > + > >

Re: [PATCH v4 12/12] ov5640: Enforce a mode change when changing the framerate

2018-10-16 Thread Maxime Ripard
Hi Hugues, On Mon, Oct 15, 2018 at 01:57:40PM +, Hugues FRUCHET wrote: > This is already fixed in media tree: > 0929983e49c81c1d413702cd9b83bb06c4a2555c media: ov5640: fix framerate update My bad then, I missed it, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineeri