Re: [PATCH 1/4] v4l: vsp1: Implement partition algorithm restrictions

2017-02-28 Thread Kuninori Morimoto
Hi Laurent, Kieran > > Testing SRU-UDS scaling 768x576 - 768x576 - 640x480 in RGB24: fail > > Testing SRU-UDS scaling 768x576 - 768x576 - 768x576 in RGB24: pass > > Testing SRU-UDS scaling 768x576 - 768x576 - 1024x768 in RGB24: pass > > Testing SRU-UDS scaling 768x576 - 1536x1152 - 1280x960 in

[PATCH] v4l: vsp1: Disable HSV formats on Gen3 hardware

2017-02-28 Thread Laurent Pinchart
While all VSP instances can process HSV internally, on Gen3 hardware reading or writing HSV24 or HSV32 from/to memory causes the device to hang. Disable those pixel formats on Gen3 hardware. Signed-off-by: Laurent Pinchart ---

Re: [PATCH v2 3/3] v4l: vsp1: wpf: Implement rotation support

2017-02-28 Thread Laurent Pinchart
Hi Sakari, On Tuesday 28 Feb 2017 23:13:34 Sakari Ailus wrote: > On Tue, Feb 28, 2017 at 05:03:20PM +0200, Laurent Pinchart wrote: > > Some WPF instances, on Gen3 devices, can perform 90° rotation when > > writing frames to memory. Implement support for this using the > > V4L2_CID_ROTATE control.

Re: [PATCH v2 3/3] v4l: vsp1: wpf: Implement rotation support

2017-02-28 Thread Sakari Ailus
Hi Laurent, On Tue, Feb 28, 2017 at 05:03:20PM +0200, Laurent Pinchart wrote: > Some WPF instances, on Gen3 devices, can perform 90° rotation when > writing frames to memory. Implement support for this using the > V4L2_CID_ROTATE control. > > Signed-off-by: Laurent Pinchart

Re: [PATCH 1/1] clk: renesas: cpg-mssr: r8a7796: add IMR clocks

2017-02-28 Thread Geert Uytterhoeven
Hi Sergei, On Tue, Feb 21, 2017 at 8:49 PM, Sergei Shtylyov wrote: > On 02/21/2017 10:39 PM, Geert Uytterhoeven wrote: >>> On 02/20/2017 11:38 AM, Geert Uytterhoeven wrote: > Add the IMR[0-1] clocks to the R8A7796 CPG/MSSR driver. > >

[PATCH v3 0/8] R-Car VSP1 Histogram Support

2017-02-28 Thread Laurent Pinchart
Hello, This patch series implements support for the Renesas R-Car VSP1 1-D and 2-D histogram generators (HGO and HGT). It is based on top of the VSP1 rotation patches and available for convenience at git://linuxtv.org/pinchartl/media.git vsp1-histogram-v3-20170228 The series starts

[PATCH v3 5/8] v4l: Define a pixel format for the R-Car VSP1 1-D histogram engine

2017-02-28 Thread Laurent Pinchart
The format is used on the R-Car VSP1 video queues that carry 1-D histogram statistics data. Signed-off-by: Laurent Pinchart Acked-by: Sakari Ailus --- Documentation/media/uapi/v4l/meta-formats.rst | 15 ++

[PATCH v3 7/8] v4l: Define a pixel format for the R-Car VSP1 2-D histogram engine

2017-02-28 Thread Laurent Pinchart
From: Niklas Söderlund The format is used on the R-Car VSP1 video queues that carry 2-D histogram statistics data. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart

[PATCH v3 6/8] v4l: vsp1: Add HGO support

2017-02-28 Thread Laurent Pinchart
The HGO is a Histogram Generator One-Dimension. It computes per-channel histograms over a configurable region of the image with optional subsampling. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/Makefile | 2 +-

[PATCH v3 3/8] v4l: vsp1: Support histogram generators in pipeline configuration

2017-02-28 Thread Laurent Pinchart
Histogram generators are single-pad entities that branch as leaf nodes at any point in the pipeline. Make sure that pipeline traversal and routing configuration support them correctly. Support for the actual HGO and HGT operation will come later. Signed-off-by: Laurent Pinchart

[PATCH v3 2/8] v4l: vsp1: Add histogram support

2017-02-28 Thread Laurent Pinchart
The histogram common code will be used to implement support for both the HGO and HGT histogram computation engines. Signed-off-by: Laurent Pinchart --- drivers/media/platform/Kconfig | 1 + drivers/media/platform/vsp1/Makefile | 1 +

[PATCH v3 4/8] v4l: vsp1: Fix HGO and HGT routing register addresses

2017-02-28 Thread Laurent Pinchart
The addresses are incorrect, fix them. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_regs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/vsp1/vsp1_regs.h

[PATCH v3 1/8] v4l: Add metadata buffer type and format

2017-02-28 Thread Laurent Pinchart
The metadata buffer type is used to transfer metadata between userspace and kernelspace through a V4L2 buffers queue. It comes with a new metadata capture capability and format description. Signed-off-by: Laurent Pinchart Tested-by: Guennadi

[PATCH v2 0/3] Renesas R-Car VSP1 rotation support

2017-02-28 Thread Laurent Pinchart
git://linuxtv.org/pinchartl/media.git vsp1-rotation-v2-20170228 Laurent Pinchart (3): v4l: vsp1: Fix multi-line comment style v4l: Clearly document interactions between formats, controls and buffers v4l: vsp1: wpf: Implement rotation support Documentation/media/uapi/v4l/buffer.r

[PATCH v2 1/3] v4l: vsp1: Fix multi-line comment style

2017-02-28 Thread Laurent Pinchart
Fix all multi-line comments to comply with the kernel coding style. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_bru.c| 27 - drivers/media/platform/vsp1/vsp1_dl.c | 27 -

[PATCH v2 2/3] v4l: Clearly document interactions between formats, controls and buffers

2017-02-28 Thread Laurent Pinchart
V4L2 exposes parameters that influence buffers sizes through the format ioctls (VIDIOC_G_FMT, VIDIOC_TRY_FMT and VIDIO_S_FMT). Other parameters not part of the format structure may also influence buffer sizes or buffer layout in general. One existing such parameter is rotation, which is

[PATCH v2 3/3] v4l: vsp1: wpf: Implement rotation support

2017-02-28 Thread Laurent Pinchart
Some WPF instances, on Gen3 devices, can perform 90° rotation when writing frames to memory. Implement support for this using the V4L2_CID_ROTATE control. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_rpf.c | 2 +-