Re: [RFC 2.6.11-rc2-mm2 0/7] mm: manual page migration -- overview

2005-02-14 Thread Steve Longerbeam
Andi Kleen wrote: For our use, the batch scheduler will give an intermediary program a list of processes and a series of from-to node pairs. That process would then ensure all the processes are stopped, scan their VMAs to determine what regions are mapped by more than one process, which are

BUG in shared_policy_replace() ?

2005-01-18 Thread Steve Longerbeam
Hi Andi, Why free the shared policy created to split up an old policy that spans the whole new range? Ie, see patch. Steve --- mm/mempolicy.c.orig 2005-01-18 16:13:35.573273351 -0800 +++ mm/mempolicy.c 2005-01-18 16:24:23.940608135 -0800 @@ -1052,10 +1052,6 @@ if (new)

Re: BUG in shared_policy_replace() ?

2005-01-19 Thread Steve Longerbeam
Hugh Dickins wrote: On Tue, 18 Jan 2005, Steve Longerbeam wrote: Why free the shared policy created to split up an old policy that spans the whole new range? Ie, see patch. I think you're misreading it. That code comes from when I changed it over from sp-sem to sp-lock. If it finds

Re: BUG in shared_policy_replace() ?

2005-01-19 Thread Steve Longerbeam
Andi Kleen wrote: got it, except that there is no new2 = NULL; in 2.6.10-mm2! Looks like it was misplaced, because I do see it now in 2.6.10. I double checked 2.6.10 and the code also looks correct me, working as described by Hugh. Optimistic locking can be ugly :) yeah, 2.6.10 makes

Re: BUG in shared_policy_replace() ?

2005-01-19 Thread Steve Longerbeam
Andi Kleen wrote: yeah, 2.6.10 makes sense to me too. But I'm working in -mm2, and the new2 = NULL line is missing, hence my initial confusion. Trivial patch to -mm2 attached. Just want to make sure it has been, or will be, put back in. That sounds weird. Can you figure out which patch in mm

Re: BUG in shared_policy_replace() ?

2005-01-19 Thread Steve Longerbeam
Andi Kleen wrote: On Wed, Jan 19, 2005 at 10:59:16AM -0800, Steve Longerbeam wrote: Andi Kleen wrote: yeah, 2.6.10 makes sense to me too. But I'm working in -mm2, and the new2 = NULL line is missing, hence my initial confusion. Trivial patch to -mm2 attached. Just want to make sure it has

[PATCH v2 5/7] imx-drm: encoder prepare/mode_set must use adjusted mode

2014-12-18 Thread Steve Longerbeam
The encoder -prepare() and -mode_set() methods need to use the hw adjusted mode, not the original mode. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/drm/imx/imx-hdmi.c |4 ++-- drivers/gpu/drm/imx/imx-ldb.c |6 +++--- drivers/gpu/drm/imx

[PATCH v2 2/7] gpu: ipu-di: remove some non-functional code

2014-12-18 Thread Steve Longerbeam
h_total and v_total were calculated in ipu_di_init_sync_panel() but never actually used. Remove. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-di.c |6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-di.c b/drivers/gpu/ipu

[PATCH v2 6/7] gpu: ipu-v3: Use videomode in struct ipu_di_signal_cfg

2014-12-18 Thread Steve Longerbeam
This patch changes struct ipu_di_signal_cfg to use struct videomode to define video timings and flags. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/drm/imx/ipuv3-crtc.c | 26 +++ drivers/gpu/ipu-v3/ipu-di.c | 89

[PATCH v2 4/7] imx-drm: ipuv3-crtc: Implement mode_fixup

2014-12-18 Thread Steve Longerbeam
. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/drm/imx/ipuv3-crtc.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/imx/ipuv3-crtc.c b/drivers/gpu/drm/imx/ipuv3-crtc.c index 11e84a2..fb16026 100644 --- a/drivers/gpu/drm/imx/ipuv3-crtc.c

[PATCH v2 7/7] gpu: ipu-di: Switch to DIV_ROUND_CLOSEST for DI clock divider calc

2014-12-18 Thread Steve Longerbeam
We can use the DIV_ROUND_CLOSEST() macro when calculating the DI clock divider, rounded to nearest int. Suggested-by: Philipp Zabel p.za...@pengutronix.de Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-di.c |9 +++-- 1 file changed, 3 insertions

[PATCH v2 1/7] gpu: ipu-di: Add ipu_di_adjust_videomode()

2014-12-18 Thread Steve Longerbeam
restrictions. The function can be called from the drm_crtc_helper_funcs-mode_fixup() methods. Signed-off-by: Jiada Wang jiada_w...@mentor.com Signed-off-by: Deepak Das deepak_...@mentor.com Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/ipu-v3/ipu-di.c | 29

[PATCH v2 0/7] imx-drm: ipuv3-crtc: Implement mode_fixup

2014-12-18 Thread Steve Longerbeam
to convert a drm_display_mode to a videomode before passing the mode to ipu_di_adjust_videomode() for fixup. Also some related code cleanup: 'struct ipu_di_signal_cfg' should use 'struct videomode' for mode timings. Jiada Wang (1): gpu: ipu-di: Add ipu_di_adjust_videomode() Steve Longerbeam (6): gpu

[PATCH v2 3/7] drm_modes: add videomode_from_drm_display_mode

2014-12-18 Thread Steve Longerbeam
Add conversion from drm_display_mode to videomode. Signed-off-by: Steve Longerbeam steve_longerb...@mentor.com --- drivers/gpu/drm/drm_modes.c | 40 include/drm/drm_modes.h |2 ++ 2 files changed, 42 insertions(+) diff --git a/drivers/gpu/drm

Re: [PATCH v2 3/7] drm_modes: add videomode_from_drm_display_mode

2014-12-19 Thread Steve Longerbeam
On 12/19/2014 03:03 AM, Philipp Zabel wrote: +EXPORT_SYMBOL_GPL(videomode_from_drm_display_mode); Is it ok for drm_modes to export a function that doesn't start with drm_ ? We could just rename this to drm_display_mode_to_videomode if necessary. I can fix it up as I apply it, but I'd like to

Re: i.MX6 CSC and scaler

2014-12-15 Thread Steve Longerbeam
-2013 Mentor Graphics Inc. * Steve Longerbeam steve_longerb...@mentor.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the * License, or (at your

Re: [PATCH v3 3/9] media: adv7180: add support for NEWAVMODE

2016-07-25 Thread Steve Longerbeam
On 07/25/2016 12:36 PM, Ian Arkver wrote: On 25/07/16 18:55, Steve Longerbeam wrote: On 07/25/2016 05:04 AM, Ian Arkver wrote: On 23/07/16 18:00, Steve Longerbeam wrote: +#define ADV7180_VSYNC_FIELD_CTL_1_NEWAVMODE 0x02 See below re this value. Hi Ian, I double-checked the ADV7180

Re: [PATCH v3 3/9] media: adv7180: add support for NEWAVMODE

2016-07-25 Thread Steve Longerbeam
On 07/25/2016 03:24 PM, Ian Arkver wrote: > On 25/07/16 23:04, Steve Longerbeam wrote: >> >> >> On 07/25/2016 12:36 PM, Ian Arkver wrote: >>> On 25/07/16 18:55, Steve Longerbeam wrote: >>>> On 07/25/2016 05:04 AM, Ian Arkver wrote: >&

Re: [PATCH v3 3/9] media: adv7180: add support for NEWAVMODE

2016-07-25 Thread Steve Longerbeam
On 07/25/2016 05:04 AM, Ian Arkver wrote: > On 23/07/16 18:00, Steve Longerbeam wrote: >> Parse the optional v4l2 endpoint DT node. If the bus type is >> V4L2_MBUS_BT656 and the endpoint node specifies "newavmode", >> configure the BT.656 bus in NEWAVMODE. >&g

Re: [PATCH v2 11/13] gpu: ipu-ic: Add complete image conversion support with tiling

2016-07-28 Thread Steve Longerbeam
Hi Philipp, On 07/26/2016 03:08 AM, Philipp Zabel wrote: +/* + * The IC Resizer has a restriction that the output frame from the + * resizer must be 1024 or less in both width (pixels) and height + * (lines). + * + * The image conversion support attempts to split up a conversion when + *

Re: [PATCH v2 05/13] gpu: ipu-v3: Add IDMA channel linking support

2016-07-28 Thread Steve Longerbeam
On 07/26/2016 03:06 AM, Philipp Zabel wrote: Am Dienstag, den 19.07.2016, 18:11 -0700 schrieb Steve Longerbeam: Adds functions to link and unlink IDMAC source channels to sink channels. So far the following links are supported: IPUV3_CHANNEL_IC_PRP_ENC_MEM -> IPUV3_CHANNEL_MEM_ROT_

[PATCH v3 09/12] gpu: ipu-v3: Add Video Deinterlacer unit

2016-07-31 Thread Steve Longerbeam
Adds the Video Deinterlacer (VDIC) unit. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v3: - renamed and exported ipu_vdi_set_top_field_man() to ipu_vdi_set_field_order(). Args include std and field to determine correct field order. - exported ipu_vdi_set_

[PATCH v3 11/12] gpu: ipu-ic: Add complete image conversion support with tiling

2016-07-31 Thread Steve Longerbeam
ipu_image_convert_unprepare(struct image_converter_ctx *ctx); Unprepares the conversion context. Any active or pending runs will be aborted by calling image_convert_abort(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v3: no changes v2: no changes --- drivers/gpu/ipu-

[PATCH v3 12/12] gpu: ipu-ic: allow multiple handles to ic

2016-07-31 Thread Steve Longerbeam
a handle to the IC at a time, so we should be ok there. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v3: no changes v2: no changes --- drivers/gpu/ipu-v3/ipu-ic.c | 25 + 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/drivers/gpu/ipu-

[PATCH v3 06/12] gpu: ipu-v3: Fix CSI data format for 16-bit media bus formats

2016-07-31 Thread Steve Longerbeam
The CSI data format was being programmed incorrectly for the 1x16 media bus formats. The CSI data format for 16-bit must be bayer/generic (CSI_SENS_CONF_DATA_FMT_BAYER). Suggested-by: Carsten Resch <carsten.re...@de.bosch.com> Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com&

Re: [PATCH v3 00/12] IPUv3 prep for i.MX5/6 v4l2 staging drivers, v3

2016-07-31 Thread Steve Longerbeam
On 07/31/2016 12:42 PM, Steve Longerbeam wrote: > In this version: > > - API changes to ipu-vdi.c in "gpu: ipu-v3: Add Video Deinterlacer unit". > - "gpu: ipu-v3: Add FSU channel linking support" is new but based on > previous patch "gpu: ipu-v3: Add IDM

[PATCH v3 03/12] gpu: ipu-v3: Add ipu_get_num()

2016-07-31 Thread Steve Longerbeam
Adds of-alias id to ipu_soc and retrieve with ipu_get_num(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v3: no changes v2: no changes --- drivers/gpu/ipu-v3/ipu-common.c | 8 drivers/gpu/ipu-v3/ipu-prv.h| 1 + include/video/imx-ipu-v3.h | 1 + 3

[PATCH v3 05/12] gpu: ipu-v3: set correct full sensor frame for PAL/NTSC

2016-07-31 Thread Steve Longerbeam
Set the sensor full frame based on whether the passed in mbus_fmt is 720x480 (NTSC) or 720x576 (PAL). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v3: no changes v2: no changes --- drivers/gpu/ipu-v3/ipu-csi.c | 20 +--- 1 file changed, 13 insertions

[PATCH v3 04/12] gpu: ipu-v3: Add VDI input IDMAC channels

2016-07-31 Thread Steve Longerbeam
Adds the VDIC field input IDMAC channels. These channels transfer fields F(n-1), F(n), and F(N+1) from memory to the VDIC (channels 8, 9, 10 respectively). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v3: no changes v2: - made the channel names more descriptive:

[PATCH v3 01/12] gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset()

2016-07-31 Thread Steve Longerbeam
Adds ipu_cpmem_set_uv_offset(), to set planar U/V offsets. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v3: no changes v2: no changes --- drivers/gpu/ipu-v3/ipu-cpmem.c | 7 +++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 8 insertions(+) diff

[PATCH v3 10/12] gpu: ipu-v3: Add FSU channel linking support

2016-07-31 Thread Steve Longerbeam
SI_DIRECT -> IPUV3_CHANNEL_CSI_VDI_PREV More links can be added to the fsu_link_info[] array. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-common.c | 131 drivers/gpu/ipu-v3/ipu-prv.h| 27 + include/video/imx-ipu-v3.h

[PATCH v3 07/12] gpu: ipu-v3: Fix IRT usage

2016-07-31 Thread Steve Longerbeam
There can be multiple IC tasks using the IRT, so the IRT needs a separate use counter. Create a private ipu_irt_enable() to enable the IRT module when any IC task requires rotation, and ipu_irt_disable() when a task no longer needs the IRT. Signed-off-by: Steve Longerbeam <steve_long

[PATCH v3 02/12] gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize()

2016-07-31 Thread Steve Longerbeam
Adds ipu_cpmem_get_burstsize(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v3: no changes v2: no changes --- drivers/gpu/ipu-v3/ipu-cpmem.c | 6 ++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-cpm

[PATCH v3 08/12] gpu: ipu-v3: rename CSI client device

2016-07-31 Thread Steve Longerbeam
Rename the CSI client device in the client_reg[] table to "imx-ipuv3-csi". Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v3: no changes v2: no changes --- drivers/gpu/ipu-v3/ipu-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH v3 00/12] IPUv3 prep for i.MX5/6 v4l2 staging drivers, v3

2016-07-31 Thread Steve Longerbeam
In this version: - API changes to ipu-vdi.c in "gpu: ipu-v3: Add Video Deinterlacer unit". - "gpu: ipu-v3: Add FSU channel linking support" is new but based on previous patch "gpu: ipu-v3: Add IDMA channel linking support". No other changes from previous version.

Re: [PATCH v3 10/12] gpu: ipu-v3: Add FSU channel linking support

2016-08-01 Thread Steve Longerbeam
On 08/01/2016 02:13 AM, Philipp Zabel wrote: > Am Sonntag, den 31.07.2016, 12:42 -0700 schrieb Steve Longerbeam: >> Adds functions to link and unlink source channels to sink >> channels in the FSU: >> >> int ipu_fsu_link(struct ipu_soc *ipu, int src_ch, int sink_ch); &

[PATCH v4 4/8] media: adv7180: add power pin control

2016-08-03 Thread Steve Longerbeam
Some targets control the ADV7180 power pin via a gpio, so add optional support for "powerdown" pin control. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Tested-by: Tim Harvey <thar...@gateworks.com> Acked-by: Tim Harvey <thar...@gateworks.com> Ack

[PATCH v4 8/8] media: adv7180: enable lock/unlock interrupts

2016-08-03 Thread Steve Longerbeam
Enable the SD lock/unlock interrupts and send V4L2_EVENT_SRC_CH_LOCK_STATUS in the interrupt handler on a detected lock/unlock. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v4: no changes v3: no changes v2: - last version of this patch was based on the old re

[PATCH v4 6/8] media: adv7180: change mbus format to UYVY

2016-08-03 Thread Steve Longerbeam
Change the media bus format from YUYV8_2X8 to UYVY8_2X8. Colors now look correct when capturing with the i.mx6 backend. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Tested-by: Tim Harvey <thar...@gateworks.com> Acked-by: Tim Harvey <thar...@gateworks.com> Ac

[PATCH v4 1/8] media: adv7180: fix field type

2016-08-03 Thread Steve Longerbeam
From: Steve Longerbeam <slongerb...@gmail.com> The ADV7180 and ADV7182 transmit whole fields, bottom field followed by top (or vice-versa, depending on detected video standard). So for chips that do not have support for explicitly setting the field mode via I2P, set the fiel

[PATCH v4 7/8] v4l: Add signal lock status to source change events

2016-08-03 Thread Steve Longerbeam
Add a signal lock status change to the source changes bitmask. This indicates there was a signal lock or unlock event detected at the input of a video decoder. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Cc: Mauro Carvalho Chehab <mche...@osg.samsung.com> --- v4:

[PATCH v4 0/8] adv7180 subdev fixes, v4

2016-08-03 Thread Steve Longerbeam
Steve Longerbeam (8): media: adv7180: fix field type media: adv7180: define more registers media: adv7180: add support for NEWAVMODE media: adv7180: add power pin control media: adv7180: implement g_parm media: adv7180: change mbus format to UYVY v4l: Add signal lock status to source

[PATCH v4 5/8] media: adv7180: implement g_parm

2016-08-03 Thread Steve Longerbeam
Implement g_parm to return the current standard's frame period. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Tested-by: Tim Harvey <thar...@gateworks.com> Acked-by: Tim Harvey <thar...@gateworks.com> --- v4: no changes v3: no changes v2: no changes --- drivers

[PATCH v4 3/8] media: adv7180: add support for NEWAVMODE

2016-08-03 Thread Steve Longerbeam
Parse the optional v4l2 endpoint DT node. If the bus type is V4L2_MBUS_BT656 and the endpoint node specifies "newavmode", configure the BT.656 bus in NEWAVMODE. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v4: no changes v3: - the newavmode endpoint propert

[PATCH v4 2/8] media: adv7180: define more registers

2016-08-03 Thread Steve Longerbeam
Replace hard-coded addresses with new register macro defines. No functional changes. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Acked-by: Lars-Peter Clausen <l...@metafoo.de> --- v4: no changes v3: no changes --- drivers/media/i2c/ad

Re: [PATCH 12/16] gpu: ipu-v3: Fix CSI0 blur in NTSC format

2016-07-13 Thread Steve Longerbeam
On 07/10/2016 09:33 AM, Steve Longerbeam wrote: > > > On 07/08/2016 10:34 AM, Philipp Zabel wrote: >> Am Donnerstag, den 07.07.2016, 16:03 -0700 schrieb Steve Longerbeam: >>> From: Suresh Dhandapani <suresh.dhandap...@in.bosch.com> >>> >>> This pat

Re: [PATCH 02/16] gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset()

2016-07-13 Thread Steve Longerbeam
Hi Philipp, On 07/08/2016 10:34 AM, Philipp Zabel wrote: > Am Donnerstag, den 07.07.2016, 16:03 -0700 schrieb Steve Longerbeam: >> Adds ipu_cpmem_set_uv_offset(), to set planar U/V offsets. >> >> Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> >&g

Re: [PATCH 05/16] gpu: ipu-v3: Add IDMA channel linking support

2016-07-13 Thread Steve Longerbeam
Hi Philipp, On 07/08/2016 10:34 AM, Philipp Zabel wrote: > > Please use the defines here: > IPUV3_CHANNEL_IC_PRP_ENC_MEM > IPUV3_CHANNEL_MEM_ROT_ENC > Right, I will fix in next version. Steve

[PATCH v2 09/13] gpu: ipu-v3: Fix CSI data format for 16-bit media bus formats

2016-07-19 Thread Steve Longerbeam
The CSI data format was being programmed incorrectly for the 1x16 media bus formats. The CSI data format for 16-bit must be bayer/generic (CSI_SENS_CONF_DATA_FMT_BAYER). Suggested-by: Carsten Resch <carsten.re...@de.bosch.com> Signed-off-by: Steve Longerbeam <steve_longerb...@m

[PATCH v2 06/13] gpu: ipu-v3: Add ipu_set_vdi_src_mux()

2016-07-19 Thread Steve Longerbeam
Adds ipu_set_vdi_src_mux() that selects the VDIC input (from CSI or memory). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v2: - added macros for the VDI source select bits in register IPU_FS_PROC_FLOW1. --- drivers/gpu/ipu-v3/ipu-common.c | 20 d

[PATCH v2 11/13] gpu: ipu-ic: Add complete image conversion support with tiling

2016-07-19 Thread Steve Longerbeam
ipu_image_convert_unprepare(struct image_converter_ctx *ctx); Unprepares the conversion context. Any active or pending runs will be aborted by calling image_convert_abort(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-ic.c

[PATCH v2 12/13] gpu: ipu-ic: allow multiple handles to ic

2016-07-19 Thread Steve Longerbeam
a handle to the IC at a time, so we should be ok there. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-ic.c | 25 + 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-ic.c b/drivers/gpu/ipu-v3/ip

[PATCH v2 13/13] gpu: ipu-v3: rename CSI client device

2016-07-19 Thread Steve Longerbeam
Rename the CSI client device in the client_reg[] table to "imx-ipuv3-csi". Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-common.c b

[PATCH v2 10/13] gpu: ipu-v3: Fix IRT usage

2016-07-19 Thread Steve Longerbeam
There can be multiple IC tasks using the IRT, so the IRT needs a separate use counter. Create a private ipu_irt_enable() to enable the IRT module when any IC task requires rotation, and ipu_irt_disable() when a task no longer needs the IRT. Signed-off-by: Steve Longerbeam <steve_long

[PATCH v2 03/13] gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize()

2016-07-19 Thread Steve Longerbeam
Adds ipu_cpmem_get_burstsize(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-cpmem.c | 6 ++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-cpmem.c b/drivers/gpu/ipu-v3/ipu-cpmem.c

[PATCH v2 05/10] media: adv7180: add power pin control

2016-07-19 Thread Steve Longerbeam
Some targets control the ADV7180 power pin via a gpio, so add optional support for "powerdown" pin control. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Tested-by: Tim Harvey <thar...@gateworks.com> Acked-by: Tim Harvey <thar...@gateworks.com&g

[PATCH v2 03/10] media: adv7180: define more registers

2016-07-19 Thread Steve Longerbeam
Replace hard-coded addresses with new register macro defines. No functional changes. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/i2c/adv7180.c | 73 ++--- 1 file changed, 49 insertions(+), 24 deletions(-) diff

[PATCH v2 04/10] media: adv7180: add support for NEWAVMODE

2016-07-19 Thread Steve Longerbeam
Parse the optional v4l2 endpoint DT node. If the V4L2_MBUS_NEWAVMODE parallel bus flag is set, configure the BT.656 bus in NEWAVMODE. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/media/i2c/adv7180.c | 47 ++--- 1 file c

[PATCH v2 00/10] adv7180 subdev fixes, v2

2016-07-19 Thread Steve Longerbeam
DE is used in conjunction. The backend needs to be aware of NEWAVMODE so that it can make adjustments to the AV code detection. That's the biggest addition in this version, besides the requested feedback changes from last version. Steve Longerbeam (10): v4l: of: add "newavmode" property for A

[PATCH v2 10/10] media: adv7180: fix field type

2016-07-19 Thread Steve Longerbeam
info on field order of PAL vs NTSC, so follow what is in adv7183.c). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v2: - the init of state->curr_norm in probe needs to be moved up, ahead of the init of state->field. --- drivers/media/i2c/ad

[PATCH v2 09/10] media: adv7180: enable lock/unlock interrupts

2016-07-19 Thread Steve Longerbeam
Enable the SD lock/unlock interrupts and send V4L2_EVENT_SRC_CH_LOCK_STATUS in the interrupt handler on a detected lock/unlock. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v2: - last version of this patch was based on the old reverted autodetect code. This versi

[PATCH v2 08/10] v4l: Add signal lock status to source change events

2016-07-19 Thread Steve Longerbeam
Add a signal lock status change to the source changes bitmask. This indicates there was a signal lock or unlock event detected at the input of a video decoder. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Cc: Mauro Carvalho Chehab <mche...@osg.samsung.com> --- D

Re: [PATCH 12/16] gpu: ipu-v3: Fix CSI0 blur in NTSC format

2016-07-19 Thread Steve Longerbeam
On 07/19/2016 06:32 AM, Philipp Zabel wrote: > Am Samstag, den 16.07.2016, 13:24 -0700 schrieb Steve Longerbeam: > [...] >>> Hmm, do you mean define something like a V4L2_MBUS_BT656_NEWAVMODE, >>> and then add a new "newavmode" boolean DT binding parsed by >&

[PATCH v2 02/10] media: adv7180: Fix broken interrupt register access

2016-07-19 Thread Steve Longerbeam
Access to the interrupt page registers has been broken since at least commit 3999e5d01da7 ("[media] adv7180: Do implicit register paging"). That commit forgot to add the interrupt page number to the register defines. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com>

[PATCH v2 01/10] v4l: of: add "newavmode" property for Analog Devices codecs

2016-07-19 Thread Steve Longerbeam
This patch adds a "newavmode" boolean property as part of the v4l2 endpoint properties. This indicates an Analog Devices decoder is generating EAV/SAV codes to suit Analog Devices encoders. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Cc: Mauro Carva

[PATCH v2 07/10] media: adv7180: change mbus format to UYVY

2016-07-19 Thread Steve Longerbeam
Change the media bus format from YUYV8_2X8 to UYVY8_2X8. Colors now look correct when capturing with the i.mx6 backend. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Tested-by: Tim Harvey <thar...@gateworks.com> Acked-by: Tim Harvey <thar...@gateworks.com> Ac

[PATCH v2 06/10] media: adv7180: implement g_parm

2016-07-19 Thread Steve Longerbeam
Implement g_parm to return the current standard's frame period. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> Tested-by: Tim Harvey <thar...@gateworks.com> Acked-by: Tim Harvey <thar...@gateworks.com> --- drivers/media/i2c/adv7180.c | 22 ++

[PATCH v2 01/13] gpu: ipu-v3: Add Video Deinterlacer unit

2016-07-19 Thread Steve Longerbeam
Adds the Video Deinterlacer (VDIC) unit. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v2: - removed include of module.h - corrected V4L2 field type checks - cleaned up use_count decrement in ipu_vdi_disable() --- drivers/gpu/ipu-v3/Makefile | 2 +- drivers/gpu/

[PATCH v2 02/13] gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset()

2016-07-19 Thread Steve Longerbeam
Adds ipu_cpmem_set_uv_offset(), to set planar U/V offsets. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-cpmem.c | 7 +++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-cpmem.c b/d

[PATCH v2 07/13] gpu: ipu-v3: Add VDI input IDMAC channels

2016-07-19 Thread Steve Longerbeam
Adds the VDIC field input IDMAC channels. These channels transfer fields F(n-1), F(n), and F(N+1) from memory to the VDIC (channels 8, 9, 10 respectively). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v2: - made the channel names more descriptive: "_PREV"

[PATCH v2 05/13] gpu: ipu-v3: Add IDMA channel linking support

2016-07-19 Thread Steve Longerbeam
_PP More links can be added to the idmac_link_info[] array. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- v2: - replaced hardcoded channel numbers in idmac_link_info[] with above channel names. --- drivers/gpu/ipu-v3/ipu-common.c | 118 ++

[PATCH v2 04/13] gpu: ipu-v3: Add ipu_get_num()

2016-07-19 Thread Steve Longerbeam
Adds of-alias id to ipu_soc and retrieve with ipu_get_num(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-common.c | 8 drivers/gpu/ipu-v3/ipu-prv.h| 1 + include/video/imx-ipu-v3.h | 1 + 3 files changed, 10 insertions(+) diff

[PATCH v2 08/13] gpu: ipu-v3: set correct full sensor frame for PAL/NTSC

2016-07-19 Thread Steve Longerbeam
Set the sensor full frame based on whether the passed in mbus_fmt is 720x480 (NTSC) or 720x576 (PAL). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-csi.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/d

[PATCH v2 00/13] IPUv3 prep for i.MX5/6 v4l2 staging drivers, v2

2016-07-19 Thread Steve Longerbeam
These updates to IPUv3 are needed for media staging drivers for i.MX5/6 video capture and mem2mem. Steve Longerbeam (13): gpu: ipu-v3: Add Video Deinterlacer unit gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset() gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize() gpu: ipu-v3: Add ipu_get_num

Re: [PATCH v2 01/10] v4l: of: add "newavmode" property for Analog Devices codecs

2016-07-20 Thread Steve Longerbeam
On 07/20/2016 12:37 AM, Hans Verkuil wrote: > On 07/20/2016 02:03 AM, Steve Longerbeam wrote: >> This patch adds a "newavmode" boolean property as part of the v4l2 endpoint >> properties. This indicates an Analog Devices decoder is generating EAV/SAV >> codes

Re: [PATCH 07/16] gpu: ipu-v3: Add VDI input IDMAC channels

2016-07-15 Thread Steve Longerbeam
On 07/15/2016 05:45 AM, Philipp Zabel wrote: Am Donnerstag, den 07.07.2016, 16:03 -0700 schrieb Steve Longerbeam: Adds the VDIC field input IDMAC channels. These channels transfer fields F(n-1), F(n), and F(N+1) from memory to the VDIC (channels 8, 9, 10 respectively). Signed-off-by: Steve

Re: [PATCH 06/16] gpu: ipu-v3: Add ipu_set_vdi_src_mux()

2016-07-15 Thread Steve Longerbeam
On 07/15/2016 05:48 AM, Philipp Zabel wrote: Am Donnerstag, den 07.07.2016, 16:03 -0700 schrieb Steve Longerbeam: Adds ipu_set_vdi_src_mux() that selects the VDIC input (from CSI or memory). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-co

Re: [PATCH 08/16] gpu: ipu-v3: Add ipu_csi_set_src()

2016-07-15 Thread Steve Longerbeam
On 07/15/2016 05:49 AM, Philipp Zabel wrote: Am Donnerstag, den 07.07.2016, 16:03 -0700 schrieb Steve Longerbeam: +{ + ipu_set_csi_src_mux(csi->ipu, csi->id, select_mipi_csi2); + + return 0; +} +EXPORT_SYMBOL_GPL(ipu_csi_set_src); + Couldn't you just replace ipu_set_csi_s

Re: [PATCH 09/16] gpu: ipu-v3: Add ipu_ic_set_src()

2016-07-15 Thread Steve Longerbeam
On 07/15/2016 05:45 AM, Philipp Zabel wrote: Am Donnerstag, den 07.07.2016, 16:03 -0700 schrieb Steve Longerbeam: +int ipu_ic_set_src(struct ipu_ic *ic, int csi_id, bool vdi) +{ + struct ipu_ic_priv *priv = ic->priv; + + ipu_set_ic_src_mux(priv->ipu, csi_i

Re: [PATCH 01/16] gpu: ipu-v3: Add Video Deinterlacer unit

2016-07-15 Thread Steve Longerbeam
On 07/10/2016 05:02 PM, Paul Gortmaker wrote: +#include +#include You have a u32 field in a struct called "modules" but aside from that, I do not see anything in this code requiring module.h -- did I miss something? You might want export.h for EXPORT_SYMBOL though. Hi Paul, yes

Re: [PATCH 12/16] gpu: ipu-v3: Fix CSI0 blur in NTSC format

2016-07-16 Thread Steve Longerbeam
On 07/15/2016 04:09 PM, Steve Longerbeam wrote: On 07/15/2016 05:58 AM, Philipp Zabel wrote: Am Mittwoch, den 13.07.2016, 16:02 -0700 schrieb Steve Longerbeam: On 07/10/2016 09:33 AM, Steve Longerbeam wrote: On 07/08/2016 10:34 AM, Philipp Zabel wrote: Am Donnerstag, den 07.07.2016, 16

Re: [PATCH 12/16] gpu: ipu-v3: Fix CSI0 blur in NTSC format

2016-07-15 Thread Steve Longerbeam
On 07/15/2016 05:58 AM, Philipp Zabel wrote: Am Mittwoch, den 13.07.2016, 16:02 -0700 schrieb Steve Longerbeam: On 07/10/2016 09:33 AM, Steve Longerbeam wrote: On 07/08/2016 10:34 AM, Philipp Zabel wrote: Am Donnerstag, den 07.07.2016, 16:03 -0700 schrieb Steve Longerbeam: From: Suresh

Re: [PATCH 12/16] gpu: ipu-v3: Fix CSI0 blur in NTSC format

2016-07-10 Thread Steve Longerbeam
On 07/08/2016 10:34 AM, Philipp Zabel wrote: Am Donnerstag, den 07.07.2016, 16:03 -0700 schrieb Steve Longerbeam: From: Suresh Dhandapani <suresh.dhandap...@in.bosch.com> This patch will change the register IPU_CSI0_CCIR_CODE_2 value from 0x40596 to 0x405A6. The change is r

[PATCH 00/16] IPUv3 prep for i.MX5/6 v4l2 staging drivers

2016-07-07 Thread Steve Longerbeam
These updates to IPUv3 are needed for media staging drivers for i.MX5/6 video capture and mem2mem. Steve Longerbeam (15): gpu: ipu-v3: Add Video Deinterlacer unit gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset() gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize() gpu: ipu-v3: Add ipu_get_num

[PATCH 16/16] gpu: ipu-v3: rename CSI client device

2016-07-07 Thread Steve Longerbeam
Rename the CSI client device in the client_reg[] table to "imx-ipuv3-csi". Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-common.c b

[PATCH 14/16] gpu: ipu-ic: Add complete image conversion support with tiling

2016-07-07 Thread Steve Longerbeam
This patch implements complete image conversion support to ipu-ic, with tiling to support scaling to and from images up to 4096x4096. Image rotation is also supported. The internal API is subsystem agnostic (no V4L2 dependency except for the use of V4L2 fourcc pixel formats). Callers prepare for

[PATCH 10/16] gpu: ipu-v3: set correct full sensor frame for PAL/NTSC

2016-07-07 Thread Steve Longerbeam
Set the sensor full frame based on whether the passed in mbus_fmt is 720x480 (NTSC) or 720x576 (PAL). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-csi.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/d

[PATCH 04/16] gpu: ipu-v3: Add ipu_get_num()

2016-07-07 Thread Steve Longerbeam
Adds of-alias id to ipu_soc and retrieve with ipu_get_num(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-common.c | 8 drivers/gpu/ipu-v3/ipu-prv.h| 1 + include/video/imx-ipu-v3.h | 1 + 3 files changed, 10 insertions(+) diff

[PATCH 02/16] gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset()

2016-07-07 Thread Steve Longerbeam
Adds ipu_cpmem_set_uv_offset(), to set planar U/V offsets. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-cpmem.c | 7 +++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-cpmem.c b/d

[PATCH 13/16] gpu: ipu-v3: Fix IRT usage

2016-07-07 Thread Steve Longerbeam
There can be multiple IC tasks using the IRT, so the IRT needs a separate use counter. Create a private ipu_irt_enable() to enable the IRT module when any IC task requires rotation, and ipu_irt_disable() when a task no longer needs the IRT. Signed-off-by: Steve Longerbeam <steve_long

[PATCH 05/16] gpu: ipu-v3: Add IDMA channel linking support

2016-07-07 Thread Steve Longerbeam
_PP More links can be added to the idmac_link_info[] array. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-common.c | 112 include/video/imx-ipu-v3.h | 3 ++ 2 files changed, 115 insertions(+) diff --gi

[PATCH 01/16] gpu: ipu-v3: Add Video Deinterlacer unit

2016-07-07 Thread Steve Longerbeam
Adds the Video Deinterlacer (VDIC) unit. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/Makefile | 2 +- drivers/gpu/ipu-v3/ipu-common.c | 11 ++ drivers/gpu/ipu-v3/ipu-prv.h| 6 + drivers/gpu/ipu-v3/ipu-vdi.c

[PATCH 08/16] gpu: ipu-v3: Add ipu_csi_set_src()

2016-07-07 Thread Steve Longerbeam
Adds ipu_csi_set_src() which is just a wrapper around ipu_set_csi_src_mux(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-csi.c | 8 include/video/imx-ipu-v3.h | 1 + 2 files changed, 9 insertions(+) diff --git a/drivers/gpu/ipu-

[PATCH 09/16] gpu: ipu-v3: Add ipu_ic_set_src()

2016-07-07 Thread Steve Longerbeam
Adds ipu_ic_set_src() which is just aa wrapper around ipu_set_ic_src_mux(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-ic.c | 10 ++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/gpu/ipu-

[PATCH 11/16] gpu: ipu-v3: Fix CSI data format for 16-bit media bus formats

2016-07-07 Thread Steve Longerbeam
The CSI data format was being programmed incorrectly for the 1x16 media bus formats. The CSI data format for 16-bit must be bayer/generic (CSI_SENS_CONF_DATA_FMT_BAYER). Suggested-by: Carsten Resch <carsten.re...@de.bosch.com> Signed-off-by: Steve Longerbeam <steve_longerb...@m

[PATCH 12/16] gpu: ipu-v3: Fix CSI0 blur in NTSC format

2016-07-07 Thread Steve Longerbeam
From: Suresh Dhandapani This patch will change the register IPU_CSI0_CCIR_CODE_2 value from 0x40596 to 0x405A6. The change is related to the Start of field 1 first blanking line command bit[5-3] for NTSC format only. This change is dependent with ADV chip where

[PATCH 03/16] gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize()

2016-07-07 Thread Steve Longerbeam
Adds ipu_cpmem_get_burstsize(). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-cpmem.c | 6 ++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-cpmem.c b/drivers/gpu/ipu-v3/ipu-cpmem.c

[PATCH 06/16] gpu: ipu-v3: Add ipu_set_vdi_src_mux()

2016-07-07 Thread Steve Longerbeam
Adds ipu_set_vdi_src_mux() that selects the VDIC input (from CSI or memory). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-common.c | 20 include/video/imx-ipu-v3.h | 1 + 2 files changed, 21 insertions(+) diff

[PATCH 07/16] gpu: ipu-v3: Add VDI input IDMAC channels

2016-07-07 Thread Steve Longerbeam
Adds the VDIC field input IDMAC channels. These channels transfer fields F(n-1), F(n), and F(N+1) from memory to the VDIC (channels 8, 9, 10 respectively). Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- include/video/imx-ipu-v3.h | 3 +++ 1 file changed, 3 insertions(+)

[PATCH 15/16] gpu: ipu-ic: allow multiple handles to ic

2016-07-07 Thread Steve Longerbeam
a handle to the IC at a time, so we should be ok there. Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com> --- drivers/gpu/ipu-v3/ipu-ic.c | 25 + 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-ic.c b/drivers/gpu/ipu-v3/ip

  1   2   3   4   5   6   7   8   9   10   >