[Patch v3 01/21] media: ti-vpe: Fix a parallel build issue

2019-10-07 Thread Benoit Parrot
When TI CAL was introduce as another driver under platform/ti-vpe adding a second entry into the ti-vpe directory in the platform Makefile caused issues during parallel build. Signed-off-by: Benoit Parrot Signed-off-by: Jyri Sarha --- drivers/media/platform/Makefile | 4 +--- 1 file changed, 1

[Patch v3 04/21] media: ti-vpe: vpe: Remove unnecessary use of container_of

2019-10-07 Thread Benoit Parrot
y. Signed-off-by: Benoit Parrot --- drivers/media/platform/ti-vpe/vpe.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index 56f60dbea15c..0e9cb0319a92 100644 --- a/drivers/medi

[Patch v3 03/21] media: ti-vpe: vpe: Add missing null pointer checks

2019-10-07 Thread Benoit Parrot
A few NULL pointer checks were missing. Add check with appropriate return code. Signed-off-by: Benoit Parrot --- drivers/media/platform/ti-vpe/vpe.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti

[Patch v3 00/21] media: vpe: maintenance

2019-10-07 Thread Benoit Parrot
R (no poll): OK (Not Supported) test USERPTR (select): OK (Not Supported) test DMABUF: Cannot test, specify --expbuf-device Total for vpe device /dev/video0: 51, Succeeded: 51, Failed: 0, Warnings: 2 ====== Benoit Parrot (18): media: ti-vpe: Fix

[Patch v3 09/21] media: ti-vpe: vpe: fix a v4l2-compliance warning about invalid pixel format

2019-10-07 Thread Benoit Parrot
invalid or not supported. Signed-off-by: Benoit Parrot Reviewed-by: Tomi Valkeinen --- drivers/media/platform/ti-vpe/vpe.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index

[Patch v3 08/21] media: ti-vpe: vpe: fix a v4l2-compliance failure causing a kernel panic

2019-10-07 Thread Benoit Parrot
Because the driver fails to properly check the 'num_planes' values for proper ranges it ends up accessing out of bound data causing the kernel panic. Since this driver only handle single or dual plane pixel format, make sure the provided value does not exceed 2 planes. Signed-off-by: Ben

[Patch v3 10/21] media: ti-vpe: vpe: Make sure YUYV is set as default format

2019-10-07 Thread Benoit Parrot
ad of hard-coding an offset which might change over time we need to use a lookup helper instead so we know the default will always be what we intended. Signed-off-by: Benoit Parrot Reviewed-by: Tomi Valkeinen --- drivers/media/platform/ti-vpe/vpe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH v2 5/7] media: use the BIT() macro

2019-08-23 Thread Benoit Parrot
explicit casts > For: drivers/media/platform/am437x/am437x-vpfe_regs.h drivers/media/platform/ti-vpe/vpe_regs.h Reviewed-by: Benoit Parrot

Re: [PATCH] am437x: remove unused struct vpfe_pixel_format

2019-08-01 Thread Benoit Parrot
-struct vpfe_pixel_format { > - struct v4l2_fmtdesc fmtdesc; > - /* bytes per pixel */ > - int bpp; > -}; > - Looks fine to me. Acked-by: Benoit Parrot > struct vpfe_std_info { > int active_pixels; > int active_lines;

Re: [PATCH 5/5] media/platform: don't set description in ENUM_FMT

2019-06-26 Thread Benoit Parrot
tructures since those are > no longer needed. > > Signed-off-by: Hans Verkuil > Cc: Laurent Pinchart > Cc: Prabhakar Lad > Cc: Sylwester Nawrocki > Cc: Jonathan Corbet > Cc: Jacopo Mondi > Cc: Benoit Parrot For am437x-vpfe.c and ti-vpe/vpe.c Acked-by: Benoit Parro

Re: [PATCH 15/16] ti-vpe: set device_caps in struct video_device

2019-06-26 Thread Benoit Parrot
Acked-by: Benoit Parrot Hans Verkuil wrote on Wed [2019-Jun-26 09:44:20 +0200]: > Instead of filling in the struct v4l2_capability device_caps > field, fill in the struct video_device device_caps field. > > That way the V4L2 core knows what the capabilities of the > v

Re: [PATCH v1.1 4/4] ti-vpe: Parse local endpoint for properties, not the remote one

2019-03-07 Thread Benoit Parrot
Sakari Ailus wrote on Tue [2019-Mar-05 22:48:44 +0200]: > On Tue, Mar 05, 2019 at 11:38:42AM -0600, Benoit Parrot wrote: > > Sakari Ailus wrote on Tue [2019-Mar-05 > > 18:32:40 +0200]: > > > Hi Benoit, > > > > > > On Tue, Mar 05, 2019 at 08:34:09AM

Re: [PATCH v1.1 4/4] ti-vpe: Parse local endpoint for properties, not the remote one

2019-03-05 Thread Benoit Parrot
Sakari Ailus wrote on Tue [2019-Mar-05 18:32:40 +0200]: > Hi Benoit, > > On Tue, Mar 05, 2019 at 08:34:09AM -0600, Benoit Parrot wrote: > > Sakari, > > > > Thank you for the patch. > > > > Sakari Ailus wrote on Tue [2019-Mar-05 > > 16:02:24

Re: [PATCH v1.1 4/4] ti-vpe: Parse local endpoint for properties, not the remote one

2019-03-05 Thread Benoit Parrot
Sakari, Thank you for the patch. Sakari Ailus wrote on Tue [2019-Mar-05 16:02:24 +0200]: > ti-vpe driver parsed the remote endpoints for properties but ignored the > local ones. Fix this by parsing the local endpoint properties instead. I am not sure I understand the logic here. For CSI2 sens

Re: [PATCH v4 05/12] media: ov5640: Compute the clock rate at runtime

2019-02-22 Thread Benoit Parrot
Maxime Ripard wrote on Fri [2019-Feb-22 15:39:59 +0100]: > On Thu, Feb 21, 2019 at 10:20:20AM -0600, Benoit Parrot wrote: > > Hi Maxime, > > > > A couple of questions, > > > > Maxime Ripard wrote on Thu [2018-Oct-11 > > 04:21:00 -0500]: > > &g

Re: [PATCH v4 05/12] media: ov5640: Compute the clock rate at runtime

2019-02-21 Thread Benoit Parrot
Hi Maxime, A couple of questions, Maxime Ripard wrote on Thu [2018-Oct-11 04:21:00 -0500]: > The clock rate, while hardcoded until now, is actually a function of the > resolution, framerate and bytes per pixel. Now that we have an algorithm to > adjust our clock rate, we can select it dynamical

Re: [PATCH] media: Use of_node_name_eq for node name comparisons

2018-12-06 Thread Benoit Parrot
Hi Rob, For ti-vpe/cal.c, Reviewed-by: Benoit Parrot Regards, Benoit Rob Herring wrote on Wed [2018-Dec-05 13:50:29 -0600]: > Convert string compares of DT node names to use of_node_name_eq helper > instead. This removes direct access to the node name pointer. > > Cc: Kyungmi

Re: [PATCH v11 3/4] dt-bindings: media: Add Cadence MIPI-CSI2 TX Device Tree bindings

2018-04-24 Thread Benoit Parrot
Acked-by: Benoit Parrot Maxime Ripard wrote on Tue [2018-Apr-24 14:26:59 +0200]: > The Cadence MIPI-CSI2 TX controller is a CSI2 bridge that supports up to 4 > video streams and can output on up to 4 CSI-2 lanes, depending on the > hardware implementation. > > It can operate w

Re: [PATCH v11 4/4] v4l: cadence: Add Cadence MIPI-CSI2 TX driver

2018-04-24 Thread Benoit Parrot
Acked-by: Benoit Parrot Maxime Ripard wrote on Tue [2018-Apr-24 14:27:00 +0200]: > The Cadence MIPI-CSI2 TX controller is an hardware block meant to be used > as a bridge between pixel interfaces and a CSI-2 bus. > > It supports operating with an internal or external D-PHY,

Re: [PATCH v11 2/4] v4l: cadence: Add Cadence MIPI-CSI2 RX driver

2018-04-24 Thread Benoit Parrot
ule will be > + called cdns-csi2rx. > + > +endif > diff --git a/drivers/media/platform/cadence/Makefile > b/drivers/media/platform/cadence/Makefile > new file mode 100644 > index ..99a4086b7448 > --- /dev/null > +++ b/drivers/media/platform/cadence/Makefil

Re: [PATCH v5 2/2] v4l: cadence: Add Cadence MIPI-CSI2 TX driver

2018-03-01 Thread Benoit Parrot
Maxime, Thanks you for the patch, Maxime Ripard wrote on Thu [2018-Mar-01 12:30:49 +0100]: > The Cadence MIPI-CSI2 TX controller is an hardware block meant to be used > as a bridge between pixel interfaces and a CSI-2 bus. > > It supports operating with an internal or external D-PHY, with up t

Re: [PATCH v8 2/2] v4l: cadence: Add Cadence MIPI-CSI2 RX driver

2018-03-01 Thread Benoit Parrot
Maxime, Thank you for the patch. Maxime Ripard wrote on Thu [2018-Feb-15 14:33:35 +0100]: > The Cadence CSI-2 RX Controller is an hardware block meant to be used as a > bridge between a CSI-2 bus and pixel grabbers. > > It supports operating with internal or external D-PHY, with up to 4 lanes,

Re: [PATCH v2 2/2] v4l: cadence: Add Cadence MIPI-CSI2 TX driver

2018-01-29 Thread Benoit Parrot
Maxime, Thank you for the patch. Maxime Ripard wrote on Fri [2018-Jan-19 09:15:47 +0100]: > The Cadence MIPI-CSI2 TX controller is an hardware block meant to be used > as a bridge between pixel interfaces and a CSI-2 bus. > > It supports operating with an internal or external D-PHY, with up to

Re: [PATCH v5 2/2] v4l: cadence: Add Cadence MIPI-CSI2 RX driver

2018-01-29 Thread Benoit Parrot
Maxime, Thank you for the patch. Maxime Ripard wrote on Fri [2018-Jan-19 09:13:57 +0100]: > The Cadence CSI-2 RX Controller is an hardware block meant to be used as a > bridge between a CSI-2 bus and pixel grabbers. > > It supports operating with internal or external D-PHY, with up to 4 lanes,

Re: [PATCH 3/8] media: v4l2-async: simplify v4l2_async_subdev structure

2017-12-18 Thread Benoit Parrot
For am437x/am437x-vpfe.c & ti-vpe/cal.c Acked-by: Benoit Parrot Mauro Carvalho Chehab wrote on Mon [2017-Dec-18 17:53:57 -0200]: > The V4L2_ASYNC_MATCH_FWNODE match criteria requires just one > struct to be filled (struct fwnode_handle). The V4L2_ASYNC_MATCH_DEVNAME > match crit

Re: [Patch 4/6] dt-bindings: media: ti-vpe: Document VPE driver

2017-10-18 Thread Benoit Parrot
Rob Herring wrote on Tue [2017-Oct-17 16:00:51 -0500]: > On Thu, Oct 12, 2017 at 02:27:17PM -0500, Benoit Parrot wrote: > > Device Tree bindings for the Video Processing Engine (VPE) driver. > > > > Signed-off-by: Benoit Parrot > > --- > > Documentation/dev

Re: [Patch 5/6] ARM: DRA7: hwmod: Add VPE nodes

2017-10-13 Thread Benoit Parrot
Tony Lindgren wrote on Fri [2017-Oct-13 10:05:13 -0700]: > * Benoit Parrot [171012 12:28]: > > +static struct omap_hwmod_class_sysconfig dra7xx_vpe_sysc = { > > + .sysc_offs = 0x0010, > > + .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE

Re: [Patch 3/6] ARM: OMAP: DRA7xx: Make CAM clock domain SWSUP only

2017-10-13 Thread Benoit Parrot
Tony Lindgren wrote on Fri [2017-Oct-13 10:01:13 -0700]: > * Benoit Parrot [171012 12:29]: > > HWSUP on this domain is only working when VIP1 probes. > > If only VIP2 on DRA74x or CAL on DRA72x probes the domain does > > not get enabled. This might indicates an issue in

Re: [Patch 2/6] ARM: DRA7: hwmod: Add CAL nodes

2017-10-13 Thread Benoit Parrot
Tony Lindgren wrote on Fri [2017-Oct-13 09:56:54 -0700]: > * Benoit Parrot [171012 12:28]: > > This patch adds the required hwmod nodes to support the Camera > > Adaptation Layer (CAL) for the DRA72 family of devices. > ... > > > +static struct omap_hwmod_clas

Re: [Patch 1/6] ARM: dts: DRA72: Add CAL dtsi node

2017-10-13 Thread Benoit Parrot
Tony Lindgren wrote on Fri [2017-Oct-13 09:54:09 -0700]: > * Benoit Parrot [171012 12:29]: > > This patch adds the required dtsi node to support the Camera > > Adaptation Layer (CAL) for the DRA72 family of devices. > > > > - Added CAL entry in dra72x.dtsi. > >

Re: [ANN] Agenda (v1) for the media mini-summit on Friday Oct 27 in Prague

2017-10-13 Thread Benoit Parrot
Hans, Just to confirm that I will be attending the media mini-summit. Regards, Benoit Hans Verkuil wrote on Fri [2017-Oct-13 10:02:53 +0200]: > Hi all, > > We are organizing a media mini-summit on Friday October 27 in Prague, > co-located > with the ELCE conference: > > http://events.linuxf

[Patch 4/6] dt-bindings: media: ti-vpe: Document VPE driver

2017-10-12 Thread Benoit Parrot
Device Tree bindings for the Video Processing Engine (VPE) driver. Signed-off-by: Benoit Parrot --- Documentation/devicetree/bindings/media/ti-vpe.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/ti-vpe.txt diff --git

[Patch 0/6] ARM: dts/hwmod: Add CAL and VPE nodes

2017-10-12 Thread Benoit Parrot
This patch series adds the needed HWMOD and DTSI nodes for the CAL and VPE modules. We also document the VPE DT bindings. Benoit Parrot (6): ARM: dts: DRA72: Add CAL dtsi node ARM: DRA7: hwmod: Add CAL nodes ARM: OMAP: DRA7xx: Make CAM clock domain SWSUP only dt-bindings: media: ti-vpe

[Patch 2/6] ARM: DRA7: hwmod: Add CAL nodes

2017-10-12 Thread Benoit Parrot
support standby mode per se hwmod would not enabled the functional/interface clock if module is not a master. Hence the SWSUP mode flags ifor SIDLE ans MSTANDBY are also enabled. This ensure that i/f clocks are available when CAL is enabled. Signed-off-by: Benoit Parrot --- arch/arm/mach-omap2

[Patch 6/6] ARM: dts: dra7: Add VPE dtsi node

2017-10-12 Thread Benoit Parrot
Add the necessary node and configuration data for the VPE (Video Processing Engine) hardware block on DRA7x. The corresponding driver for this entry is in drivers/media/platform/ti-vpe/vpe.c. Signed-off-by: Benoit Parrot --- arch/arm/boot/dts/dra7.dtsi | 26 ++ 1 file

[Patch 1/6] ARM: dts: DRA72: Add CAL dtsi node

2017-10-12 Thread Benoit Parrot
This patch adds the required dtsi node to support the Camera Adaptation Layer (CAL) for the DRA72 family of devices. - Added CAL entry in dra72x.dtsi. Signed-off-by: Benoit Parrot --- arch/arm/boot/dts/dra72x.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff

[Patch 3/6] ARM: OMAP: DRA7xx: Make CAM clock domain SWSUP only

2017-10-12 Thread Benoit Parrot
HWSUP on this domain is only working when VIP1 probes. If only VIP2 on DRA74x or CAL on DRA72x probes the domain does not get enabled. This might indicates an issue in the HW Auto state-machine for this domain. Work around is to set the CAM domain to use SWSUP only. Signed-off-by: Benoit Parrot

[Patch 5/6] ARM: DRA7: hwmod: Add VPE nodes

2017-10-12 Thread Benoit Parrot
were set to reflect this fact and make sure that both are software supervised (SWSUSP). Signed-off-by: Benoit Parrot --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch

Re: [PATCH 2/2] v4l: cadence: Add Cadence MIPI-CSI2 TX driver

2017-10-11 Thread Benoit Parrot
Hi Maxime, Maxime Ripard wrote on Wed [2017-Oct-11 13:55:44 +0200]: > Hi Benoit, > > On Fri, Sep 29, 2017 at 06:21:25PM +0000, Benoit Parrot wrote: > > > +struct csi2tx_priv { > > > + struct device *dev; > > > + atomic_t

Re: [PATCH v4 2/2] v4l: cadence: Add Cadence MIPI-CSI2 RX driver

2017-10-11 Thread Benoit Parrot
Hi Maxime, Maxime Ripard wrote on Wed [2017-Oct-11 11:24:09 +0200]: > Hi Benoit, > > On Fri, Sep 29, 2017 at 05:27:09PM +0000, Benoit Parrot wrote: > > > +static int csi2rx_get_resources(struct csi2rx_priv *csi2rx, > > > + s

Re: [PATCH 2/2] v4l: cadence: Add Cadence MIPI-CSI2 TX driver

2017-09-29 Thread Benoit Parrot
Maxime, Thank you for the patch. Maxime Ripard wrote on Fri [2017-Sep-22 13:47:03 +0200]: > The Cadence MIPI-CSI2 TX controller is an hardware block meant to be used > as a bridge between pixel interfaces and a CSI-2 bus. > > It supports operating with an internal or external D-PHY, with up to

Re: [PATCH v4 2/2] v4l: cadence: Add Cadence MIPI-CSI2 RX driver

2017-09-29 Thread Benoit Parrot
Maxime Ripard wrote on Fri [2017-Sep-22 12:08:23 +0200]: > The Cadence CSI-2 RX Controller is an hardware block meant to be used as a > bridge between a CSI-2 bus and pixel grabbers. > > It supports operating with internal or external D-PHY, with up to 4 lanes, > or without any D-PHY. The curren

Re: [PATCH v3 2/2] v4l: cadence: Add Cadence MIPI-CSI2 RX driver

2017-09-12 Thread Benoit Parrot
Benoit Parrot wrote on Tue [2017-Sep-12 13:23:39 -0500]: > > +static int csi2rx_start(struct csi2rx_priv *csi2rx) > > +{ > > + unsigned int i; > > + u32 reg; > > + int ret; > > + > > + /* > > +* We're not the first users, ther

Re: [PATCH v3 2/2] v4l: cadence: Add Cadence MIPI-CSI2 RX driver

2017-09-12 Thread Benoit Parrot
Maxime, Thanks for the patch. Maxime Ripard wrote on Mon [2017-Sep-04 15:03:35 +0200]: > The Cadence CSI-2 RX Controller is an hardware block meant to be used as a > bridge between a CSI-2 bus and pixel grabbers. > > It supports operating with internal or external D-PHY, with up to 4 lanes, >

Re: [PATCH v2 1/2] dt-bindings: media: Add Cadence MIPI-CSI2 RX Device Tree bindings

2017-08-07 Thread Benoit Parrot
indings/media/cdns-csi2rx.txt > Acked-by: Benoit Parrot

Re: [PATCH v2 2/2] v4l: cadence: Add Cadence MIPI-CSI2 RX driver

2017-08-07 Thread Benoit Parrot
Maxime Ripard wrote on Thu [2017-Jul-20 11:23:02 +0200]: > The Cadence CSI-2 RX Controller is an hardware block meant to be used as a > bridge between a CSI-2 bus and pixel grabbers. > > It supports operating with internal or external D-PHY, with up to 4 lanes, > or without any D-PHY. The curren

Re: [PATCH 2/3] media: ti-vpe: cal: use of_graph_get_remote_endpoint()

2017-07-07 Thread Benoit Parrot
Acked-by: Benoit Parrot Kuninori Morimoto wrote on Wed [2017-Jun-28 00:33:00 +]: > > From: Kuninori Morimoto > > Now, we can use of_graph_get_remote_endpoint(). Let's use it. > > Signed-off-by: Kuninori Morimoto > --- > based on 4c9c3d595f1bad021cc126d2

Re: [PATCH] davinci: vpif_capture: fix default pixel format for BT.656/BT.1120 video

2017-05-30 Thread Benoit Parrot
apture.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > Acked-by: Benoit Parrot

Re: [Patch 0/2] media: ti-vpe: allow user specified stride

2017-03-02 Thread Benoit Parrot
Hans, Mauro, Ping. Regards, Benoit Tomi Valkeinen wrote on Fri [2017-Feb-17 11:45:41 +0200]: > On 13/02/17 15:06, Benoit Parrot wrote: > > This patch series enables user specified buffer stride to be used > > instead of always forcing the stride from the driver side. > >

Re: [PATCH v1.1 5/8] v4l: Switch from V4L2 OF not V4L2 fwnode API

2017-02-15 Thread Benoit Parrot
For: ov2569.c, am437x/am437x-vpfe.c and ti-cal/cal.c: Acked-by: Benoit Parrot Sakari Ailus wrote on Tue [2017-Feb-14 09:12:32 +0200]: > Switch users of the v4l2_of_ APIs to the more generic v4l2_fwnode_ APIs. > > Existing OF matching continues to be supported. omap3isp and smiapp

Re: [Patch 2/2] media: ti-vpe: vpe: allow use of user specified stride

2017-02-15 Thread Benoit Parrot
Tomi Valkeinen wrote on Wed [2017-Feb-15 13:22:42 +0200]: > Hi, > > On 13/02/17 15:06, Benoit Parrot wrote: > > Bytesperline/stride was always overwritten by VPE to the most > > adequate value based on needed alignment. > > > > However in order to make us

Re: [PATCH 5/8] v4l: Switch from V4L2 OF not V4L2 fwnode API

2017-02-13 Thread Benoit Parrot
Sakari Ailus wrote on Mon [2017-Feb-13 15:28:13 +0200]: > Switch users of the v4l2_of_ APIs to the more generic v4l2_fwnode_ APIs. > > Existing OF matching continues to be supported. omap3isp and smiapp > drivers are converted to fwnode matching as well. > > Signed-off-by: Sakari Ailus > --- >

[Patch 0/2] media: ti-vpe: allow user specified stride

2017-02-13 Thread Benoit Parrot
This patch series enables user specified buffer stride to be used instead of always forcing the stride from the driver side. Benoit Parrot (2): media: ti-vpe: vpdma: add support for user specified stride media: ti-vpe: vpe: allow use of user specified stride drivers/media/platform/ti-vpe

[Patch 1/2] media: ti-vpe: vpdma: add support for user specified stride

2017-02-13 Thread Benoit Parrot
This patch introduce the needed vpdma API changes to support user space specified stride instead of forcing a driver calculated one. Signed-off-by: Benoit Parrot --- drivers/media/platform/ti-vpe/vpdma.c | 14 -- drivers/media/platform/ti-vpe/vpdma.h | 6 +++--- drivers/media

[Patch 2/2] media: ti-vpe: vpe: allow use of user specified stride

2017-02-13 Thread Benoit Parrot
provided one when it is larger than the calculated one. Signed-off-by: Benoit Parrot --- drivers/media/platform/ti-vpe/vpe.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c

Re: [PATCH v3 13/24] platform: add video-multiplexer subdevice driver

2017-02-07 Thread Benoit Parrot
Laurent Pinchart wrote on Tue [2017-Feb-07 12:26:32 +0200]: > Hi Steve, > > On Monday 06 Feb 2017 15:10:46 Steve Longerbeam wrote: > > On 02/06/2017 02:33 PM, Laurent Pinchart wrote: > > > On Monday 06 Feb 2017 10:50:22 Hans Verkuil wrote: > > >> On 02/05/2017 04:48 PM, Laurent Pinchart wrote: >

Re: [patch] [media] media: ti-vpe: vpdma: fix a timeout loop

2016-11-28 Thread Benoit Parrot
Dan, Thanks for the patch. Acked-by: Benoit Parrot Dan Carpenter wrote on Sat [2016-Nov-26 00:28:34 +0300]: > The check assumes that we end on zero but actually we end on -1. Change > the post-op to a pre-op so that we do end on zero. Techinically now we > only loop 499 times i

[Patch v2 08/35] media: ti-vpe: Increasing max buffer height and width

2016-11-18 Thread Benoit Parrot
From: Harinarayan Bhatta Increasing max buffer height and width to allow for padded buffers. Signed-off-by: Harinarayan Bhatta Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpe.c | 4 ++-- 1 file changed, 2 insertions

[Patch v2 00/35] media: ti-vpe: fixes and enhancements

2016-11-18 Thread Benoit Parrot
line average de-interlacing for first 2 frames Benoit Parrot (16): media: ti-vpe: vpdma: Make vpdma library into its own module media: ti-vpe: vpdma: Add multi-instance and multi-client support media: ti-vpe: vpdma: Add helper to set a background color media: ti-vpe: vpdma: Fix bus error

[Patch v2 05/35] media: ti-vpe: Use line average de-interlacing for first 2 frames

2016-11-18 Thread Benoit Parrot
total of N frames. Signed-off-by: Archit Taneja Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot --- drivers/media/platform/ti-vpe/vpe.c | 33 +++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b

[Patch v2 01/35] media: ti-vpe: vpdma: Make vpdma library into its own module

2016-11-18 Thread Benoit Parrot
The VPDMA (Video Port DMA) as found in devices such as DRA7xx is used for both the Video Processing Engine (VPE) and the Video Input Port (VIP). In preparation for this we need to turn vpdma into its own kernel module. Signed-off-by: Benoit Parrot --- drivers/media/platform/Kconfig

[Patch v2 13/35] media: ti-vpe: vpdma: Make list post atomic operation

2016-11-18 Thread Benoit Parrot
post is also called from interrupt context. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpdma.c | 4 drivers/media/platform/ti-vpe/vpdma.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/media/platfo

[Patch v2 07/35] media: ti-vpe: Add support for SEQ_TB buffers

2016-11-18 Thread Benoit Parrot
lists. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpe.c | 125 +--- 1 file changed, 103 insertions(+), 22 deletions(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media

[Patch v2 02/35] media: ti-vpe: vpdma: Add multi-instance and multi-client support

2016-11-18 Thread Benoit Parrot
support for multi instances and multiple clients has been added to VPDMA. Needed modification to the existing helper functions were then reflected to VPE. Multi-clients registers offset have also been added in preparation. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media

[Patch v2 15/35] media: ti-vpe: vpe: configure line mode separately

2016-11-18 Thread Benoit Parrot
configuration, it's better to separate the config_mode setting and line_mode setting. Call the new "set_line_modes" functions only when actually loading the mmrs. This makes sure that no non-running job will write to the registers directly. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoi

[Patch v2 03/35] media: ti-vpe: vpdma: Add helper to set a background color

2016-11-18 Thread Benoit Parrot
Add a helper to set the background color during vpdma transfer. This is needed when VPDMA is generating 32 bits RGB format to have the Alpha channel set to an appropriate value. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpdma.c | 10

[Patch v2 10/35] media: ti-vpe: Free vpdma buffers in vpe_release

2016-11-18 Thread Benoit Parrot
From: Harinarayan Bhatta Free vpdma buffers in vpe_release. Otherwise it was generating random backtrace. Signed-off-by: Harinarayan Bhatta Signed-off-by: Somnath Mukherjee Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti

[Patch v2 09/35] media: ti-vpe: vpe: Return NULL for invalid buffer type

2016-11-18 Thread Benoit Parrot
when the passed type is invalid. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/

[Patch v2 04/35] media: ti-vpe: vpdma: Fix bus error when vpdma is writing a descriptor

2016-11-18 Thread Benoit Parrot
On DRA7 since l3_noc event are being reported it was found that when the write descriptor was being written it was consistently causing bus error events. The write address was improperly programmed. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe

[Patch v2 19/35] media: ti-vpe: vpdma: allocate and maintain hwlist

2016-11-18 Thread Benoit Parrot
list per client and let it use it. This way, the list numbers need not be hard-coded into the driver. Add support for allocating hwlist and maintain them with a priv data. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vp

[Patch v2 06/35] media: ti-vpe: vpe: Do not perform job transaction atomically

2016-11-18 Thread Benoit Parrot
x27;t need extra source buffers. Shift all the source buffers after each iteration and remove the oldest buffer. Also, with this removes the constraint of pre buffering 3 buffers before call to STREAMON in case of de-interlacing. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit P

[Patch v2 16/35] media: ti-vpe: vpe: Setup srcdst parameters in start_streaming

2016-11-18 Thread Benoit Parrot
ld make sure that the context is re-initialized before it is being used by the driver. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpe.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/ti-vpe/v

[Patch v2 11/35] media: ti-vpe: vpdma: Add support for setting max width height

2016-11-18 Thread Benoit Parrot
. Make use of different max width & height sets for different of capture module (i.e. slices). Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpdma.c | 27 drivers/media/platform/ti-vpe/vpd

[Patch v2 22/35] media: ti-vpe: vpdma: RGB data type yield inverted data

2016-11-18 Thread Benoit Parrot
The VPDMA RGB data type definition have been updated to match with Errata i839. But some of the ARGB definition appeared to be wrong in the document also. As they would yield RGBA instead. They have been corrected based on experimentation. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil

[Patch v2 17/35] media: ti-vpe: vpe: Post next descriptor only for list complete IRQ

2016-11-18 Thread Benoit Parrot
complete and also schedule next descriptor list. Fix this by _actually_ handling the IRQ only when ListComplete IRQ occurs. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpe.c | 9 + 1 file changed, 9 insertions

[Patch v2 20/35] media: ti-vpe: vpe: Added MODULE_DEVICE_TABLE hint

2016-11-18 Thread Benoit Parrot
ti_vpe module currently does not get loaded automatically. Added MODULE_DEVICE_TABLE hint to the driver to assist. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil Reviewed-by: Javier Martinez Canillas --- drivers/media/platform/ti-vpe/vpe.c | 1 + 1 file changed, 1 insertion(+) diff

[Patch v2 18/35] media: ti-vpe: vpe: Add RGB565 and RGB5551 support

2016-11-18 Thread Benoit Parrot
make alpha component full when the dst format is of RGB color space. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpe.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/drivers

[Patch v2 21/35] media: ti-vpe: vpdma: Corrected YUV422 data type label.

2016-11-18 Thread Benoit Parrot
). It was decided to explicitly label them CR to remove any confusion. Bear in mind that the type label refer to the memory packed order (LSB - MSB). Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpdma.c | 18 ++ drivers/media/pla

[Patch v2 23/35] media: ti-vpe: sc: Fix incorrect optimization

2016-11-18 Thread Benoit Parrot
Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/sc.c | 9 - drivers/media/platform/ti-vpe/sc.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/drivers/media/platform/ti-vpe/sc.c b/drivers/media/platform/ti-vpe/sc.c index f82d1c7f667f

[Patch v2 27/35] media: ti-vpe: vpe: Fix line stride for output motion vector

2016-11-18 Thread Benoit Parrot
Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index 15e846b95719..608d11344147 100644 --- a/drivers/media/platform/ti-vpe/vpe.c

[Patch v2 29/35] media: ti-vpe: Make scaler library into its own module

2016-11-18 Thread Benoit Parrot
In preparation to add scaler support into VIP we need to turn sc.c into its own kernel module. Add support for multiple SC memory block as VIP contains 2 scaler instances. This is done by passing the resource name to sc_create() and modify the vpe invocation accordingly. Signed-off-by: Benoit

[Patch v2 25/35] media: ti-vpe: vpdma: Fix race condition for firmware loading

2016-11-18 Thread Benoit Parrot
e race condition is avoided. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpdma.c | 17 + drivers/media/platform/ti-vpe/vpdma.h | 2 +- drivers/media/platform/ti-vpe/vpe.c | 8 3 files change

[Patch v2 12/35] media: ti-vpe: vpdma: Add abort channel desc and cleanup APIs

2016-11-18 Thread Benoit Parrot
which abort_channel descriptors should be posted. It is driver's responsibility to post for all the channels or the channels which were used in the last context. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpdma.c

[Patch v2 30/35] media: ti-vpe: scaler: Add debug support for multi-instance

2016-11-18 Thread Benoit Parrot
Since there might be more then one instance it is better to show the base address when dumping registers to help with debugging. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/sc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media

[Patch v2 26/35] media: ti-vpe: vpdma: Use bidirectional cached buffers

2016-11-18 Thread Benoit Parrot
apping the buffer, driver has to take care of WriteBack and invalidation of the cache so that all the coherency is maintained from both directions. Use DMA_BIDIRECTIONAL to maintain coherency between CPU and VPDMA. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Ha

[Patch v2 31/35] media: ti-vpe: vpe: Make sure frame size dont exceed scaler capacity

2016-11-18 Thread Benoit Parrot
uffer back otherwise the vb2 framework will issue kernel WARN messages. In this case we also give an error message. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/sc.h | 6 drivers/media/platform/ti-vpe/vpe.c | 71

[Patch v2 33/35] media: ti-vpe: Make colorspace converter library into its own module

2016-11-18 Thread Benoit Parrot
In preparation to add colorspace conversion support to VIP, we need to turn csc.c into its own kernel module. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/Kconfig | 4 drivers/media/platform/ti-vpe/Makefile | 4 +++- drivers/media/platform/ti

[Patch v2 32/35] media: ti-vpe: vpdma: Add RAW8 and RAW16 data types

2016-11-18 Thread Benoit Parrot
. RAW16 handles from 9 to 16 bits. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpdma.c | 23 +++ drivers/media/platform/ti-vpe/vpdma.h | 6 ++ 2 files changed, 29 insertions(+) diff --git a/drivers/media/platform/ti-vpe/vpdma.c b

[Patch v2 35/35] media: ti-vpe: vpe: Add proper support single and multi-plane buffer

2016-11-18 Thread Benoit Parrot
: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpe.c | 58 ++--- 1 file changed, 48 insertions(+), 10 deletions(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index 1e4d614bd3b6..0626593a8b22

[Patch v2 34/35] media: ti-vpe: csc: Add debug support for multi-instance

2016-11-18 Thread Benoit Parrot
Since there might be more then one instance it is better to show the base address when dumping registers to help with debugging. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/csc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media

[Patch v2 28/35] media: ti-vpe: vpe: Enable DMABUF export

2016-11-18 Thread Benoit Parrot
Allow VPE to be able to export DMA buffer. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index 608d11344147..1d780ac7ff82

[Patch v2 24/35] media: ti-vpe: vpe: Fix vb2 buffer cleanup

2016-11-18 Thread Benoit Parrot
upon aborting a conversion. Make sure every vb2 buffers is properly handled in all cases. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpe.c | 62 +++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/drivers

[Patch v2 14/35] media: ti-vpe: vpdma: Clear IRQs for individual lists

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar VPDMA IRQs are registered for multiple lists When clearing an IRQ for a list interrupt, all the IRQs for the individual lists are to be cleared separately. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform

Re: [Patch 05/35] media: ti-vpe: Use line average de-interlacing for first 2 frames

2016-10-24 Thread Benoit Parrot
Hans Verkuil wrote on Mon [2016-Oct-17 16:14:35 +0200]: > On 09/28/2016 11:20 PM, Benoit Parrot wrote: > > From: Archit Taneja > > > > For n input fields, the VPE de-interlacer creates n - 2 progressive frames. > > That's confusing. I think you mean '(n

Re: [Patch 00/35] media: ti-vpe: fixes and enhancements

2016-10-24 Thread Benoit Parrot
Hans, Thank you for taking the time to review my patches. I'll update the patch set relating to your comments and submit a v2 shortly. Regards Benoit Hans Verkuil wrote on Mon [2016-Oct-17 16:35:01 +0200]: > On 09/28/2016 11:16 PM, Benoit Parrot wrote: > > This patch series i

Re: [Patch 06/35] media: ti-vpe: vpe: Do not perform job transaction atomically

2016-10-24 Thread Benoit Parrot
Hans Verkuil wrote on Mon [2016-Oct-17 16:17:15 +0200]: > On 09/28/2016 11:20 PM, Benoit Parrot wrote: > > From: Nikhil Devshatwar > > > > Current VPE driver does not start the job until all the buffers for > > a transaction are not queued. When running in multiple

Re: [Patch 01/35] media: ti-vpe: vpdma: Make vpdma library into its own module

2016-10-24 Thread Benoit Parrot
Hans, Thanks for the review. Hans Verkuil wrote on Mon [2016-Oct-17 16:08:55 +0200]: > On 09/28/2016 11:16 PM, Benoit Parrot wrote: > > The VPDMA (Video Port DMA) as found in devices such as DRA7xx is > > used for both the Video Processing Engine (VPE) and the Video Inpu

Re: [PATCH 29/57] [media] ti-vpe: don't break long lines

2016-10-14 Thread Benoit Parrot
Acked-by: Benoit Parrot Mauro Carvalho Chehab wrote on Fri [2016-Oct-14 17:20:17 -0300]: > Due to the 80-cols checkpatch warnings, several strings > were broken into multiple lines. This is not considered > a good practice anymore, as it makes harder to grep for > strings at the

[Patch 16/35] media: ti-vpe: vpe: Setup srcdst parameters in start_streaming

2016-09-28 Thread Benoit Parrot
ld make sure that the context is re-initialized before it is being used by the driver. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot --- drivers/media/platform/ti-vpe/vpe.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/

[Patch 10/35] media: ti-vpe: Free vpdma buffers in vpe_release

2016-09-28 Thread Benoit Parrot
From: Harinarayan Bhatta Free vpdma buffers in vpe_release. Otherwise it was generating random backtrace. Signed-off-by: Harinarayan Bhatta Signed-off-by: Somnath Mukherjee Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot --- drivers/media/platform/ti-vpe/vpe.c | 3 +++ 1 file

  1   2   >