Re: [PATCH] media: imx.rst: Update the imx6-sabreauto ADV7180 instructions

2019-10-16 Thread Steve Longerbeam
On 10/16/19 11:54 AM, Fabio Estevam wrote: On Wed, Oct 16, 2019 at 2:31 PM Steve Longerbeam wrote: If /dev/video2 is the "ipu1_ic_prpvf capture" node, it's because FIM is not yet available on those nodes. The FIM is only available on the "ipuX_csiY capture" nodes

Re: [PATCH] media: imx.rst: Update the imx6-sabreauto ADV7180 instructions

2019-10-16 Thread Steve Longerbeam
On 10/16/19 6:04 AM, Fabio Estevam wrote: Hi Steve, On Tue, Oct 15, 2019 at 10:18 PM Steve Longerbeam wrote: Here's a quick example that uses the end-of-frame method to measure fi's (all other FIM controls are left at the default values): v4l2-ctl -d0 --set-ctrl=fim_enable=1

Re: [PATCH] media: imx.rst: Update the imx6-sabreauto ADV7180 instructions

2019-10-15 Thread Steve Longerbeam
On 10/15/19 12:11 PM, Fabio Estevam wrote: Hi Steve, On Tue, Oct 15, 2019 at 3:19 PM Steve Longerbeam wrote: I submitted the ICAP driver patch quite a while ago, it was ~2 yrs ago I think. Can't seem to find the link unfortunately. I'll work on updating the driver and retestin

Re: [PATCH v3 4/4] media: imx.rst: Pass the v4l2-ctl configuration

2019-10-15 Thread Steve Longerbeam
On 10/15/19 9:00 AM, Fabio Estevam wrote: Pass the v4l2-ctl configuration for the imx6q-sabreauto PAL example for completeness and consistency. Suggested-by: Steve Longerbeam Signed-off-by: Fabio Estevam Acked-by: Steve Longerbeam --- Changes since v2: - Newly introduced patch

Re: [PATCH v3 3/4] media: imx.rst: Provide instructions for the i.MX6DL sabreauto

2019-10-15 Thread Steve Longerbeam
csi1:0 [5.169953] imx-media: adv7180 4-0021:0 -> ipu1_csi0_mux:4 To avoid confusion, add an entry that shows how to setup the links and configure the pads that are specific to the i.MX6DL sabrea Signed-off-by: Fabio Estevam Acked-by: Steve Longerbeam --- Changes since v2: - Fix I2C an

Re: [PATCH] media: imx.rst: Update the imx6-sabreauto ADV7180 instructions

2019-10-15 Thread Steve Longerbeam
case, but such config symbol does not exist in mainline. It seems we still need the input capture support to be able to measuring frame intervals. Maybe Steve can shed some light on this? I submitted the ICAP driver patch quite a while ago, it was ~2 yrs ago I think. Can't seem to fin

Re: [PATCH v2 3/3] media: imx.rst: Provide instructions for the i.MX6DL sabreauto

2019-10-14 Thread Steve Longerbeam
27;ipu1_ic_prp':2 [fmt:AYUV32/720x576 field:none]" + media-ctl -V "'ipu1_ic_prpvf':1 [fmt:AYUV32/720x576 field:none]" Please add (after above line): # Configure "ipu1_ic_prpvf capture" interface (assumed at /dev/video1) v4l2-ctl -d1 --set-fmt-video=fie

Re: [PATCH v2 2/3] media: imx.rst: Provide a real example for the output format

2019-10-14 Thread Steve Longerbeam
On 10/14/19 6:54 AM, Fabio Estevam wrote: In the i.MX6Q sabreauto pipeline example, it is better to provide a real example for the output format, so do it just like in the previous lines for consistency. Signed-off-by: Fabio Estevam Acke-by: Steve Longerbeam --- Changes since v1

Re: [PATCH v2 1/3] media: imx.rst: Specify the sabreauto variant

2019-10-14 Thread Steve Longerbeam
. Signed-off-by: Fabio Estevam Acked-by: Steve Longerbeam --- Changes since v1: - New patch Documentation/media/v4l-drivers/imx.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/media/v4l-drivers/imx.rst b/Documentation/media/v4l-drivers/imx.rst index

Re: [PATCH] media: imx.rst: Update the imx6-sabreauto ADV7180 instructions

2019-10-12 Thread Steve Longerbeam
On 10/12/19 1:14 PM, Steve Longerbeam wrote: Hi Fabio, On 10/10/19 8:44 AM, Fabio Estevam wrote: In kernel 5.3.x the I2C bus that the adv7180 is under has changed from bus 3 to 4 and the ipu_csi0_mux numbers has also changed as shown by the kernel log below: [    5.159423] imx-media

Re: [PATCH] media: imx.rst: Update the imx6-sabreauto ADV7180 instructions

2019-10-12 Thread Steve Longerbeam
I'd be curious in learning how you came about that pad number. Also, in the last line pass the fmt field explicitly as done in the previous lines. Thanks for catching that, it was left over from a pipeline configuration script of mine. Steve Signed-off-by: Fabio Estevam --- Doc

Re: ADV7180 Capture with i.MX53

2019-10-09 Thread Steve Longerbeam
between i.mx53 and i.mx6, at least according to the reference manuals, so the non-standard V-bit position set by adv7180, and adjusted for by the CSI, should work for i.mx53 just like it does for i.mx6. But it's possible there are some undocumented differences in the CSI between these SoC

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Steve Longerbeam
On 10/8/19 10:20 AM, Ian Arkver wrote: On 08/10/2019 18:14, Steve Longerbeam wrote: On 10/8/19 9:55 AM, Tim Harvey wrote: On Tue, Oct 8, 2019 at 4:21 AM Fabio Estevam wrote: On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: So now I need to see if I can get Gstreamer to accept a

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Steve Longerbeam
he video looks like a broken old TV scrolling the image horizontally: https://www.dropbox.com/s/2yef8egn6s8z7ff/mx53_adv7180_capture.mp4?dl=0 This would be because of the initial corrupt frames that this and many other decoders produce while waiting for proper sync. I

Re: ADV7180 Capture with i.MX53

2019-10-07 Thread Steve Longerbeam
On 10/7/19 5:46 PM, Fabio Estevam wrote: Hi Steve, On Mon, Oct 7, 2019 at 9:37 PM Steve Longerbeam wrote: The adv7180 driver in 5.3.x doesn't support seq-bt, only alternate. So pad format should be "[fmt:UYVY2X8/720x240 field:alternate]". Thanks for the suggestion. Af

Re: ADV7180 Capture with i.MX53

2019-10-07 Thread Steve Longerbeam
Hi Fabio, On 10/7/19 5:15 PM, Fabio Estevam wrote: Hi Steve, Are you still able to capture from the camera on the imx53-smd board with kernel 5.3.x? I haven't tried the SMD board in a while, it's possible something broke, but see below... I have a custom board with a ADV7180 a

Re: [PATCH 00/22] media: imx: Create media links in bound notifiers

2019-08-30 Thread Steve Longerbeam
Hi Sakari, Hans, etc. Can you take a look at this series at some point? I think there's some good stuff in here. Thanks, Steve On 8/5/19 4:34 PM, Steve Longerbeam wrote: This series moves media link creation into the notifier bound callbacks in the subdevices required by imx. B

[PATCH v2 0/2] media: imx: Fix subdev unregister/register issues

2019-08-24 Thread Steve Longerbeam
istory: v2: - Add missing local var ic_priv in prp_registered() in first patch. Steve Longerbeam (2): media: imx: Move capture device init to registered media: imx: Move pads init to probe drivers/staging/media/imx/imx-ic-prp.c| 25 - drivers/staging/media/imx/imx-ic-prpencv

[PATCH 0/2] media: imx: Fix subdev unregister/register issues

2019-08-23 Thread Steve Longerbeam
attempt to register a stale video capture device resulting in the kobject "tried to init an initialized object" backtrace. - pad graph objects are added to the media device pad list twice, resulting in list corruption on the pad list. The following two patches fix those issu

Re: [PATCH v9] media: imx: add csc/scaler mem2mem device

2019-08-16 Thread Steve Longerbeam
Hi Philipp, If you haven't already, can you please test rotation with this version, with both non-tiled and tiled scaling conversions. I found rotation was broken in v8. Steve On 8/14/19 5:24 AM, Philipp Zabel wrote: Add a single imx-media mem2mem video device that uses the IPU

Re: [PATCH v3] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-08-15 Thread Steve Longerbeam
On 8/14/19 12:16 AM, Sakari Ailus wrote: Hi Steve, On Tue, Aug 13, 2019 at 04:27:06PM -0700, Steve Longerbeam wrote: Hi Sakari, On 8/13/19 1:28 AM, Sakari Ailus wrote: Hi Steve, On Thu, Aug 08, 2019 at 11:02:29AM -0700, Steve Longerbeam wrote: On 8/8/19 1:53 AM, Philipp Zabel wrote: Hi

Re: [PATCH v3] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-08-13 Thread Steve Longerbeam
Hi Sakari, On 8/13/19 1:28 AM, Sakari Ailus wrote: Hi Steve, On Thu, Aug 08, 2019 at 11:02:29AM -0700, Steve Longerbeam wrote: On 8/8/19 1:53 AM, Philipp Zabel wrote: Hi Sakari, On Thu, 2019-08-08 at 11:26 +0300, Sakari Ailus wrote: [...] Have you checked how it works if you simply leave

Re: [PATCH v3] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-08-10 Thread Steve Longerbeam
On 8/8/19 11:02 AM, Steve Longerbeam wrote: On 8/8/19 1:53 AM, Philipp Zabel wrote: Hi Sakari, On Thu, 2019-08-08 at 11:26 +0300, Sakari Ailus wrote: [...] Have you checked how it works if you simply leave out this test? Whether this works or not depends on the sensor used, and for some

Re: [PATCH v3] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-08-08 Thread Steve Longerbeam
ore, so these timing issues are likely to be an issue on other SoC's that use this core. The CSI-2 chapter in the imx6 reference manual is lifted/hacked-up from designware docs. It would be a good idea to get the full documentation on the Synopsys DesignWare MIPI CSI-2 Host and Devi

[PATCH 18/22] media: imx: csi: Create media links in bound notifier

2019-08-05 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the CSI sink pad. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 24 +++ 1 file changed, 24 insertions(+) diff --git a/drivers/staging/

[PATCH 00/22] media: imx: Create media links in bound notifiers

2019-08-05 Thread Steve Longerbeam
nly needs to verify that the media graph is unchanged, no stream testing is required. If the media graph is broken, it means the subdevice(s) that bind to the drivers listed above need to implement the .get_fwnode_pad op. Steve Longerbeam (22): media: entity: Pass entity to get_fwnode_pad o

Re: [PATCH v3] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Steve Longerbeam
Thanks Fabio, Reviewed-by: Steve Longerbeam On 6/27/19 3:29 PM, Fabio Estevam wrote: From: Ezequiel Garcia Not all sensors will be able to guarantee a proper initial state. This may be either because the driver is not properly written, or (probably unlikely) because the hardware won&#

Re: [PATCH v2] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Steve Longerbeam
that the sensor driver needs to be fixed. (Phillip) - Keep printing the phy_state information (Phillip) - Do not change csi2_dphy_wait_clock_lane() (Phillip/Steve) drivers/staging/media/imx/imx6-mipi-csi2.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/st

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Steve Longerbeam
ster output though, if only as dev_dbg(). It contains useful output for debugging, for example if only some of the lanes are in stop state, which could indicate an issue with connections or lane configuration. Agreed! Steve

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-26 Thread Steve Longerbeam
Hi Fabio, On 6/26/19 4:22 PM, Fabio Estevam wrote: Hi Steve, On Wed, Jun 26, 2019 at 6:19 PM Steve Longerbeam wrote: Did you only get the LP-11 timeout warning message with this patch on the OV5645, or both the LP-11 timeout and clock lane timeout warnings? With this patch applied I get

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-26 Thread Steve Longerbeam
lane timeout warnings? As I said it's OK to relax the LP-11 timeout to be warning only, but clock lane timeout should remain an error, since without an active clock on the clock lane it's guaranteed that no data will be received from the sensor. Steve Tested-by: Fabio Estevam

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-26 Thread Steve Longerbeam
th other CSI-2 receivers whose internal state machine require starting in the LP-11 state. Agreed, if it's possible the sensor driver should be fixed to enter LP-11 at power on. Steve Which sensor are you using ? Signed-off-by: Ezequiel Garcia --- drivers/staging/media/imx/imx

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-25 Thread Steve Longerbeam
Thanks, there was earlier talk of relaxing those CSI-2 bus startup requirements, but somehow it fell through the cracks. Acked-by: Steve Longerbeam On 6/25/19 1:39 PM, Ezequiel Garcia wrote: Not all sensors will be able to guarantee a proper initial state. This may be either because the

Re: [PATCH v8] media: imx: add mem2mem device

2019-06-11 Thread Steve Longerbeam
: g...@github.com:slongerbeam/mediatree.git, branch imx/mem2mem.v8. Btw, some bugs have been found and fixed in ipu-image-convert.c. I will be posting a patch-set shortly. You can review branch imx/bgthree-2136 in my fork for the changes. Steve On 4/18/19 9:44 AM, Philipp Zabel wrote: Add a single imx-

[PATCH v8 0/5] media: imx: Add Rec.709 and limited range encoding support

2019-05-21 Thread Steve Longerbeam
if inf == outf, the identity matrix can be used. Reported by Tim Harvey. - move ic_route check above default colorimetry checks, and fill default colorspace for ic_route, otherwise it's not possible to set BT.709 encoding for ic routes. Steve Longerbeam (5): gpu: ipu-v3: ipu-ic: Fix s

Re: [PATCH v7 2/5] gpu: ipu-v3: ipu-ic: Fully describe colorspace conversions

2019-05-21 Thread Steve Longerbeam
ot;gpu: ipu-v3: ipu-ic: allow to manually set resize coefficients") d2a34232580a ("gpu: ipu-v3: add driver for Prefetch Resolve Engine") d32d98642de6 ("[media] Driver for Toshiba TC358743 HDMI to CSI-2 bridge") dd65d2a93b0c ("gpu: ipu-v3: image-convert: prepare for per-tile configuration") e130291212df ("[media] media: Add i.MX media core driver") ea9c260514c1 ("gpu: ipu-v3: add driver for Prefetch Resolve Gasket") f0d9c8924e2c ("[media] media: imx: Add IC subdev drivers") f5dde49b8f36 ("[media] adv7180: Prepare for multi-chip support") How should we proceed with this patch? It will be too difficult to backport this patch to stable trees, so the Fixes: tag should just be removed. I will resubmit this series without it. Steve

[PATCH v5 0/9] Switch to sync registration for IPU subdevs

2019-05-10 Thread Steve Longerbeam
e upstream/downstream search functions, which no longer require the media device. - Add a patch to remove getting media device from v4l2_dev driver data. Steve Longerbeam (9): Revert "media: staging/imx: add media device to capture register" media: staging/imx: Switch to sync

Re: [PATCH v4 0/8] Switch to sync registration for IPU subdevs

2019-05-10 Thread Steve Longerbeam
On 5/10/19 9:43 AM, Steve Longerbeam wrote: On 5/10/19 4:18 AM, Hans Verkuil wrote: On 5/6/19 11:16 PM, Rui Miguel Silva wrote: Hi Steve, On Fri 03 May 2019 at 23:43, Steve Longerbeam wrote: Switch to sync registration for the IPU internal sub-devices, re-organize modules, and a few

Re: [PATCH v4 0/8] Switch to sync registration for IPU subdevs

2019-05-10 Thread Steve Longerbeam
On 5/10/19 4:18 AM, Hans Verkuil wrote: On 5/6/19 11:16 PM, Rui Miguel Silva wrote: Hi Steve, On Fri 03 May 2019 at 23:43, Steve Longerbeam wrote: Switch to sync registration for the IPU internal sub-devices, re-organize modules, and a few other miscellaneous cleanups. Thanks for the

[PATCH v4 0/8] Switch to sync registration for IPU subdevs

2019-05-03 Thread Steve Longerbeam
getting media device from v4l2_dev driver data. Steve Longerbeam (8): media: staging/imx: Switch to sync registration for IPU subdevs media: staging/imx: Pass device to alloc/free_dma_buf media: staging/imx: Move add_video_device into capture_device_register Revert "media: imx: Set ca

[PATCH v4 7/8] media: staging/imx: Improve pipeline searching

2019-05-03 Thread Steve Longerbeam
searches for video devices. - Remove imxmd pointer arg from all of the functions above, it was never used in those functions. With that change the i.MX5/6 CSI, VDIC, and IC sub-devices no longer require the media_device. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic

[PATCH v4 5/8] media: staging/imx: Remove capture_device_set_format

2019-05-03 Thread Steve Longerbeam
ormat with the source before streaming starts. Signed-off-by: Steve Longerbeam --- Changes in v4: - add **cc arg to __capture_try_fmt_vid_cap() to validate colorspace, instead of calling ipu_pixelformat_to_colorspace(). - add error message if capture format validation failed. --- drivers/staging

[PATCH v3 0/8] Switch to sync registration for IPU subdevs

2019-04-30 Thread Steve Longerbeam
pipeline upstream/downstream search functions, which no longer require the media device. - Add a patch to remove getting media device from v4l2_dev driver data. Steve Longerbeam (8): media: staging/imx: Switch to sync registration for IPU subdevs media: staging/imx: Pass device to alloc

[PATCH v2 0/8] Switch to sync registration for IPU subdevs

2019-04-28 Thread Steve Longerbeam
media device from v4l2_dev driver data. Steve Longerbeam (8): media: staging/imx: Switch to sync registration for IPU subdevs media: staging/imx: Pass device to alloc/free_dma_buf media: staging/imx: Move add_video_device into capture_device_register Revert "media: imx: Set capture co

Re: [PATCH] media: staging/imx: add media device to capture register

2019-04-28 Thread Steve Longerbeam
Hi Rui, On second thought, there is no reason to pass the media device to imx_media_capture_device_register(), because it is already available via v4l2_dev->mdev. I will be posting a patch in v2 of the "Switch to sync registration for IPU subdevs" series that fixes this. Steve

[PATCH 0/6] Switch to sync registration for IPU subdevs

2019-04-25 Thread Steve Longerbeam
Switch to sync registration for the IPU internal sub-devices, re-organize modules, and a few other miscellaneous cleanups. Steve Longerbeam (6): media: staging/imx: Switch to sync registration for IPU subdevs media: staging/imx: Pass device to alloc/free_dma_buf media: staging/imx: Move

Re: [PATCH] media: staging/imx: add media device to capture register

2019-04-18 Thread Steve Longerbeam
Acked-by: Steve Longerbeam On 4/12/19 9:44 AM, Rui Miguel Silva wrote: When register the capture media device it is assumed that the device data is the media device. In the imx6 case is but in the imx7 is not case. The device data is the csi structure. Add the explicit argument of the media

[PATCH v7 0/5] media: imx: Add Rec.709 and limited range encoding support

2019-04-06 Thread Steve Longerbeam
sible to set BT.709 encoding for ic routes. Steve Longerbeam (5): gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM gpu: ipu-v3: ipu-ic: Fully describe colorspace conversions gpu: ipu-v3: ipu-ic-csc: Add support for limited range encoding gpu: ipu-v3: ipu-ic-csc: Add support for

Re: [PATCH v6 5/7] gpu: ipu-v3: ipu-ic: Add support for limited range encoding

2019-03-08 Thread Steve Longerbeam
On 3/8/19 3:57 AM, Philipp Zabel wrote: On Thu, 2019-03-07 at 15:33 -0800, Steve Longerbeam wrote: Add support for the following conversions: - YUV full-range to YUV limited-range - YUV limited-range to YUV full-range - YUV limited-range to RGB full-range - RGB full-range to YUV limited

Re: [PATCH v6 3/7] gpu: ipu-v3: ipu-ic: Fully describe colorspace conversions

2019-03-08 Thread Steve Longerbeam
On 3/8/19 3:46 AM, Philipp Zabel wrote: On Thu, 2019-03-07 at 15:33 -0800, Steve Longerbeam wrote: Only providing the input and output RGB/YUV space to the IC task init functions is not sufficient. To fully characterize a colorspace conversion, the colorspace (chromaticities), Y'

Re: [PATCH v6 2/7] gpu: ipu-v3: ipu-ic: Fix BT.601 coefficients

2019-03-08 Thread Steve Longerbeam
On 3/8/19 2:23 AM, Philipp Zabel wrote: Hi Steve, On Thu, 2019-03-07 at 15:33 -0800, Steve Longerbeam wrote: The ycbcr2rgb and inverse rgb2ycbcr tables define the BT.601 Y'CbCr encoding coefficients. The rgb2ycbcr table specifically describes the BT.601 encoding from full range RGB to

[PATCH v6 4/7] gpu: ipu-v3: ipu-ic: Add support for Rec.709 encoding

2019-03-07 Thread Steve Longerbeam
Add support for Rec.709 encoding and inverse encoding. Reported-by: Tim Harvey Signed-off-by: Steve Longerbeam --- Changes in v5: - moved API changes to a previous patch. - moved CSC coeff calc to new function calc_csc_coeffs(). Changes in v4: - fix compile error. Chnges in v3: - none. Changes

[PATCH v6 5/7] gpu: ipu-v3: ipu-ic: Add support for limited range encoding

2019-03-07 Thread Steve Longerbeam
RGB limited-range coefficients. [M_b, O_b] = YUV limited-range to YUV full-range coefficients. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-ic.c | 281 +--- 1 file changed, 263 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-ic.c b

[PATCH v6 6/7] media: imx: Try colorimetry at both sink and source pads

2019-03-07 Thread Steve Longerbeam
sink and source pad try_fmt's. The unrelated check for uninitialized field value is moved out to appropriate places in each subdev try_fmt. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prp.c | 6 +- drivers/staging/media/imx/imx-ic-prpencvf.c | 8 +-- drivers/st

[PATCH v6 0/7] media: imx: Add support for BT.709 encoding

2019-03-07 Thread Steve Longerbeam
ult colorimetry checks, and fill default colorspace for ic_route, otherwise it's not possible to set BT.709 encoding for ic routes. Steve Longerbeam (7): gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM gpu: ipu-v3: ipu-ic: Fix BT.601 coefficients gpu: ipu-v3: ipu-ic: Fully

[PATCH v6 2/7] gpu: ipu-v3: ipu-ic: Fix BT.601 coefficients

2019-03-07 Thread Steve Longerbeam
Converter unit") Suggested-by: Philipp Zabel Signed-off-by: Steve Longerbeam Cc: sta...@vger.kernel.org --- drivers/gpu/ipu-v3/ipu-ic.c | 61 ++--- 1 file changed, 37 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-ic.c b/drivers/gpu/ipu-v3

[PATCH v6 1/7] gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM

2019-03-07 Thread Steve Longerbeam
The saturation bit was being set at bit 9 in the second 32-bit word of the TPMEM CSC. This isn't correct, the saturation bit is bit 42, which is bit 10 of the second word. Fixes: 1aa8ea0d2bd5d ("gpu: ipu-v3: Add Image Converter unit") Signed-off-by: Steve Longerbeam Cc: sta...@

[PATCH v6 3/7] gpu: ipu-v3: ipu-ic: Fully describe colorspace conversions

2019-03-07 Thread Steve Longerbeam
eters are moved to a new function calc_csc_coeffs(), called by init_csc(). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-ic.c | 136 +--- drivers/gpu/ipu-v3/ipu-image-convert.c | 27 ++-- drivers/staging/media/imx/imx-ic-prpencvf.c | 22 +++- in

[PATCH v6 7/7] media: imx: Allow BT.709 encoding for IC routes

2019-03-07 Thread Steve Longerbeam
The IC now supports BT.709 Y'CbCr encoding, in addition to existing BT.601 encoding, so allow both, for pipelines that route through the IC. Reported-by: Tim Harvey Signed-off-by: Steve Longerbeam --- Changes in v5: - rebased this patch on top of repurposing the functi

[PATCH] media: imx: vdic: Fix wrong CSI group ID

2019-03-01 Thread Steve Longerbeam
The i.MX7 capture support forgot to change the group ID for the CSI to the IPU CSI in VDIC sub-device, it was left at the i.MX7 CSI group ID. Fixes: 67673ed55084 ("media: staging/imx: rearrange group id to take in account IPU") Signed-off-by: Steve Longerbeam --- drivers/staging/med

Re: [PATCH] media: imx: vdic: add frame skipping support

2019-02-21 Thread Steve Longerbeam
* TODO: implement VDIC frame skipping -*/ - fi->interval = *input_fi; - if (priv->csi_direct) - fi->interval.denominator *= 2; + priv->skip = vdic_find_best_skip(output_fi, &fi->interval);

[PATCH v2 1/4] media: imx: csi: Allow unknown nearest upstream entities

2019-02-20 Thread Steve Longerbeam
("media: staging/imx: get CSI bus type from nearest upstream entity") Signed-off-by: Steve Longerbeam Cc: sta...@vger.kernel.org --- drivers/staging/media/imx/imx-media-csi.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/staging/med

[PATCH v2 2/4] media: imx: Clear fwnode link struct for each endpoint iteration

2019-02-20 Thread Steve Longerbeam
connects directly to ipu1_csi0 and has a single source port with no "reg" property. Fixes: 621b08eabcddb ("media: staging/imx: remove static media link arrays") Signed-off-by: Steve Longerbeam Cc: sta...@vger.kernel.org --- drivers/staging/media/imx/imx-media-of.c | 15 +--

[PATCH v2 3/4] media: imx: Rename functions that add IPU-internal subdevs

2019-02-20 Thread Steve Longerbeam
For the functions that add and remove the internal IPU subdevice descriptors, rename them to make clear they are the subdevs internal to the IPU. Also rename the platform data structure for the internal IPU subdevices. No functional changes. Signed-off-by: Steve Longerbeam Acked-by: Philipp

[PATCH v2 4/4] media: imx: Don't register IPU subdevs/links if CSI port missing

2019-02-20 Thread Steve Longerbeam
The second IPU internal sub-devices were being registered and links to them created even when the second IPU is not present. This is wrong for i.MX6 S/DL and i.MX53 which have only a single IPU. Fixes: e130291212df5 ("[media] media: Add i.MX media core driver") Signed-off-by: Steve

[PATCH v2 0/4] media: imx: Various fixes for i.MX5 support

2019-02-20 Thread Steve Longerbeam
Some fixes and improvements to support video capture on i.MX5. History: v2: - Rebased with merge of imx7 capture patches. Steve Longerbeam (4): media: imx: csi: Allow unknown nearest upstream entities media: imx: Clear fwnode link struct for each endpoint iteration media: imx: Rename

[PATCH] media: imx: vdic: Restore default case to prepare_vdi_in_buffers()

2019-02-19 Thread Steve Longerbeam
nitialized symbol 'curr_phys'. drivers/staging/media/imx/imx-media-vdic.c:238 prepare_vdi_in_buffers() error: uninitialized symbol 'next_phys'. Fixes: 6e537b58de772 ("media: imx: vdic: rely on VDIC for correct field order") Reported-by: Hans Verkuil Signed-off-by: Stev

[PATCH v5 5/7] gpu: ipu-v3: ipu-ic: Add support for limited range encoding

2019-02-19 Thread Steve Longerbeam
RGB limited-range coefficients. [M_b, O_b] = YUV limited-range to YUV full-range coefficients. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-ic.c | 281 +--- 1 file changed, 263 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-ic.c b

[PATCH v5 6/7] media: imx: Try colorimetry at both sink and source pads

2019-02-19 Thread Steve Longerbeam
sink and source pad try_fmt's. The unrelated check for uninitialized field value is moved out to appropriate places in each subdev try_fmt. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prp.c | 6 +- drivers/staging/media/imx/imx-ic-prpencvf.c | 8 +-- drivers/st

[PATCH v5 7/7] media: imx: Allow BT.709 encoding for IC routes

2019-02-19 Thread Steve Longerbeam
The IC now supports BT.709 Y'CbCr encoding, in addition to existing BT.601 encoding, so allow both, for pipelines that route through the IC. Reported-by: Tim Harvey Signed-off-by: Steve Longerbeam --- Changes in v5: - rebased this patch on top of repurposing the functi

[PATCH v5 1/7] gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM

2019-02-19 Thread Steve Longerbeam
The saturation bit was being set at bit 9 in the second 32-bit word of the TPMEM CSC. This isn't correct, the saturation bit is bit 42, which is bit 10 of the second word. Fixes: 1aa8ea0d2bd5d ("gpu: ipu-v3: Add Image Converter unit") Signed-off-by: Steve Longerbeam Cc: sta...@

[PATCH v5 4/7] gpu: ipu-v3: ipu-ic: Add support for Rec.709 encoding

2019-02-19 Thread Steve Longerbeam
Add support for Rec.709 encoding and inverse encoding. The determination of the CSC coefficients based on the input/output colorspace parameters are moved to a new function calc_csc_coeffs(). Reported-by: Tim Harvey Signed-off-by: Steve Longerbeam --- Changes in v5: - moved API changes to a

[PATCH v5 2/7] gpu: ipu-v3: ipu-ic: Fix BT.601 coefficients

2019-02-19 Thread Steve Longerbeam
Converter unit") Suggested-by: Philipp Zabel Signed-off-by: Steve Longerbeam Cc: sta...@vger.kernel.org --- drivers/gpu/ipu-v3/ipu-ic.c | 63 ++--- 1 file changed, 38 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-ic.c b/drivers/gpu/ipu-v3

[PATCH v5 3/7] gpu: ipu-v3: ipu-ic: Fully describe colorspace conversions

2019-02-19 Thread Steve Longerbeam
nge. - can only encode using BT.601 standard (follow-up patch will add Rec.709 encoding support). - cannot convert colorspaces from input to output, the input and output colorspace chromaticities must be the same. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-ic.c

[PATCH v5 0/7] media: imx: Add support for BT.709 encoding

2019-02-19 Thread Steve Longerbeam
since if inf == outf, the identity matrix can be used. Reported by Tim Harvey. - move ic_route check above default colorimetry checks, and fill default colorspace for ic_route, otherwise it's not possible to set BT.709 encoding for ic routes. Steve Longerbeam (7): gpu: ipu-v3: ipu-ic

Re: imx: smatch errors

2019-02-17 Thread Steve Longerbeam
Hi Hans, pardon the delay, I will post a patch for this tomorrow. Steve On 2/16/19 1:27 AM, Hans Verkuil wrote: On 2/7/19 3:33 PM, Hans Verkuil wrote: Hi Steve, It turns out that the daily build never compiled the staging media drivers, which included imx. Now that I enabled it I get these

Re: [PATCH v4 1/4] gpu: ipu-v3: ipu-ic: Rename yuv2rgb encoding matrices

2019-02-14 Thread Steve Longerbeam
On 2/13/19 2:35 AM, Philipp Zabel wrote: On Tue, 2019-02-12 at 09:42 -0800, Steve Longerbeam wrote: [...] But what about this "SAT_MODE" field in the IC task parameter memory? That just controls the saturation. The result after the matrix multiplication is either saturated to [0..

Re: [PATCH v4 3/4] gpu: ipu-v3: ipu-ic: Add support for BT.709 encoding

2019-02-12 Thread Steve Longerbeam
On 2/12/19 3:34 AM, Philipp Zabel wrote: Hi Steve, On Mon, 2019-02-11 at 17:20 -0800, Steve Longerbeam wrote: [...] Should we support YUV BT.601 <-> YUV REC.709 conversions? That would require separate encodings for input and output. How about if we pass the input and output encodi

Re: [PATCH v4 1/4] gpu: ipu-v3: ipu-ic: Rename yuv2rgb encoding matrices

2019-02-12 Thread Steve Longerbeam
On 2/12/19 2:17 AM, Philipp Zabel wrote: Hi Steve, On Mon, 2019-02-11 at 10:24 -0800, Steve Longerbeam wrote: [...] Looking more closely at these coefficients now, I see you are right, they are the BT.601 YUV full-range coefficients (Y range 0 to 1, U and V range -0.5 to 0.5). Well, not

Re: [PATCH v4 3/4] gpu: ipu-v3: ipu-ic: Add support for BT.709 encoding

2019-02-11 Thread Steve Longerbeam
On 2/11/19 2:12 AM, Philipp Zabel wrote: On Fri, 2019-02-08 at 17:47 -0800, Steve Longerbeam wrote: Pass v4l2 encoding enum to the ipu_ic task init functions, and add support for the BT.709 encoding and inverse encoding matrices. Reported-by: Tim Harvey Signed-off-by: Steve Longerbeam

Re: [PATCH v4 1/4] gpu: ipu-v3: ipu-ic: Rename yuv2rgb encoding matrices

2019-02-11 Thread Steve Longerbeam
On 2/11/19 1:58 AM, Philipp Zabel wrote: On Fri, 2019-02-08 at 17:47 -0800, Steve Longerbeam wrote: The ycbcr2rgb and inverse rgb2ycbcr matrices define the BT.601 encoding coefficients, so rename them to indicate that. And add some comments to make clear these are BT.601 coefficients

Re: [PATCH v4 1/4] gpu: ipu-v3: ipu-ic: Rename yuv2rgb encoding matrices

2019-02-11 Thread Steve Longerbeam
Hi Philipp, On 2/11/19 1:58 AM, Philipp Zabel wrote: On Fri, 2019-02-08 at 17:47 -0800, Steve Longerbeam wrote: The ycbcr2rgb and inverse rgb2ycbcr matrices define the BT.601 encoding coefficients, so rename them to indicate that. And add some comments to make clear these are BT.601

[PATCH v4 2/4] gpu: ipu-v3: ipu-ic: Simplify selection of encoding matrix

2019-02-08 Thread Steve Longerbeam
Simplify the selection of the Y'CbCr encoding matrices in init_csc(). A side-effect of this change is that init_csc() now allows YUV->YUV using the identity matrix, intead of returning error. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-ic.c | 12 1 file ch

[PATCH v4 4/4] media: imx: Allow BT.709 encoding for IC routes

2019-02-08 Thread Steve Longerbeam
The IC now supports BT.709 Y'CbCr encoding, in addition to existing BT.601 encoding, so allow both, for pipelines that route through the IC. Reported-by: Tim Harvey Signed-off-by: Steve Longerbeam --- Changes in v2: - move ic_route check above default colorimetry checks, and fill de

[PATCH v4 3/4] gpu: ipu-v3: ipu-ic: Add support for BT.709 encoding

2019-02-08 Thread Steve Longerbeam
Pass v4l2 encoding enum to the ipu_ic task init functions, and add support for the BT.709 encoding and inverse encoding matrices. Reported-by: Tim Harvey Signed-off-by: Steve Longerbeam --- Changes in v4: - fix compile error. Chnges in v3: - none. Changes in v2: - only return "Unsupported

[PATCH v4 0/4] media: imx: Add support for BT.709 encoding

2019-02-08 Thread Steve Longerbeam
ult colorimetry checks, and fill default colorspace for ic_route, otherwise it's not possible to set BT.709 encoding for ic routes. Steve Longerbeam (4): gpu: ipu-v3: ipu-ic: Rename yuv2rgb encoding matrices gpu: ipu-v3: ipu-ic: Simplify selection of encoding matrix gpu: ipu-v3: ipu-ic: Ad

[PATCH v4 1/4] gpu: ipu-v3: ipu-ic: Rename yuv2rgb encoding matrices

2019-02-08 Thread Steve Longerbeam
rename to ic_csc_identity. No functional changes. Signed-off-by: Steve Longerbeam --- Changes in v2: - rename ic_csc_rgb2rgb matrix to ic_csc_identity. --- drivers/gpu/ipu-v3/ipu-ic.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu

Re: [PATCH v3 3/4] gpu: ipu-v3: ipu-ic: Add support for BT.709 encoding

2019-02-08 Thread Steve Longerbeam
On 2/8/19 4:20 PM, Tim Harvey wrote: On Fri, Feb 8, 2019 at 11:28 AM Steve Longerbeam wrote: if (inf == outf) params = &ic_csc_identity; else if (inf == IPUV3_COLORSPACE_YUV) - params = &ic_csc_ycbcr2rgb_bt601; +

Re: IMX CSI capture issues with tda1997x HDMI receiver

2019-02-08 Thread Steve Longerbeam
On 2/8/19 1:23 PM, Tim Harvey wrote: On Thu, Feb 7, 2019 at 5:54 PM Steve Longerbeam wrote: Ok there is definitely something wrong when using the IC with UYVY8_1X16 (passthrough) which works with UYVY8_2X8. It looks to me like the ipu1_ic_prp isn't negotiating its format properly

[PATCH v3 2/4] gpu: ipu-v3: ipu-ic: Simplify selection of encoding matrix

2019-02-08 Thread Steve Longerbeam
Simplify the selection of the Y'CbCr encoding matrices in init_csc(). A side-effect of this change is that init_csc() now allows YUV->YUV using the identity matrix, intead of returning error. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-ic.c | 12 1 file ch

[PATCH v3 1/4] gpu: ipu-v3: ipu-ic: Rename yuv2rgb encoding matrices

2019-02-08 Thread Steve Longerbeam
rename to ic_csc_identity. No functional changes. Signed-off-by: Steve Longerbeam --- Changes in v2: - rename ic_csc_rgb2rgb matrix to ic_csc_identity. --- drivers/gpu/ipu-v3/ipu-ic.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu

[PATCH v3 3/4] gpu: ipu-v3: ipu-ic: Add support for BT.709 encoding

2019-02-08 Thread Steve Longerbeam
Pass v4l2 encoding enum to the ipu_ic task init functions, and add support for the BT.709 encoding and inverse encoding matrices. Reported-by: Tim Harvey Signed-off-by: Steve Longerbeam --- Changes in v2: - only return "Unsupported YCbCr encoding" error if inf != outf, since if i

[PATCH v3 4/4] media: imx: Allow BT.709 encoding for IC routes

2019-02-08 Thread Steve Longerbeam
The IC now supports BT.709 Y'CbCr encoding, in addition to existing BT.601 encoding, so allow both, for pipelines that route through the IC. Reported-by: Tim Harvey Signed-off-by: Steve Longerbeam --- Changes in v2: - move ic_route check above default colorimetry checks, and fill de

[PATCH v3 0/4] media: imx: Add support for BT.709 encoding

2019-02-08 Thread Steve Longerbeam
erwise it's not possible to set BT.709 encoding for ic routes. Steve Longerbeam (4): gpu: ipu-v3: ipu-ic: Rename yuv2rgb encoding matrices gpu: ipu-v3: ipu-ic: Simplify selection of encoding matrix gpu: ipu-v3: ipu-ic: Add support for BT.709 encoding media: imx: Allow BT.709 en

[PATCH v2 2/4] gpu: ipu-v3: ipu-ic: Simplify selection of encoding matrix

2019-02-08 Thread Steve Longerbeam
Simplify the selection of the Y'CbCr encoding matrices in init_csc(). A side-effect of this change is that init_csc() now allows YUV->YUV using the identity matrix, intead of returning error. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-ic.c | 12 1 file ch

[PATCH v2 0/4] media: imx: Add support for BT.709 encoding

2019-02-08 Thread Steve Longerbeam
oding" error if inf != outf, since if inf == outf, the identity matrix can be used. Reported by Tim Harvey. - move ic_route check above default colorimetry checks, and fill default colorimetry for ic_route, otherwise it's not possible to set BT.709 encoding for ic routes. Steve Longer

[PATCH v2 3/4] gpu: ipu-v3: ipu-ic: Add support for BT.709 encoding

2019-02-08 Thread Steve Longerbeam
From: Steve Longerbeam Pass v4l2 encoding enum to the ipu_ic task init functions, and add support for the BT.709 encoding and inverse encoding matrices. Reported-by: Tim Harvey Signed-off-by: Steve Longerbeam --- Changes in v2: - only return "Unsupported YCbCr encoding" error if i

[PATCH v2 4/4] media: imx: Allow BT.709 encoding for IC routes

2019-02-08 Thread Steve Longerbeam
From: Steve Longerbeam The IC now supports BT.709 Y'CbCr encoding, in addition to existing BT.601 encoding, so allow both, for pipelines that route through the IC. Reported-by: Tim Harvey Signed-off-by: Steve Longerbeam --- Changes in v2: - move ic_route check above default colorimetry c

[PATCH v2 1/4] gpu: ipu-v3: ipu-ic: Rename yuv2rgb encoding matrices

2019-02-08 Thread Steve Longerbeam
From: Steve Longerbeam The ycbcr2rgb and inverse rgb2ycbcr matrices define the BT.601 encoding coefficients, so rename them to indicate that. And add some comments to make clear these are BT.601 coefficients encoding between YUV limited range and RGB full range. The ic_csc_rgb2rgb matrix is just

Re: [PATCH 2/3] gpu: ipu-v3: ipu-ic: Add support for BT.709 encoding

2019-02-08 Thread Steve Longerbeam
On 2/8/19 8:24 AM, Tim Harvey wrote: On Sun, Feb 3, 2019 at 11:48 AM Steve Longerbeam wrote: Pass v4l2 encoding enum to the ipu_ic task init functions, and add support for the BT.709 encoding and inverse encoding matrices. Reported-by: Tim Harvey Signed-off-by: Steve Longerbeam

  1   2   3   4   5   6   7   8   9   10   >