[RFC,v3 4/9] media: platform: Add Mediatek ISP P1 image & meta formats

2019-06-10 Thread Jungo Lin
Add packed/full-g bayer formats with 8/10/12/14 bit for image output. Add Pass 1 (P1) specific meta formats for parameter processing and 3A/other statistics. (The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick off the driver development an

[RFC,v3 9/9] media: platform: Add Mediatek ISP P1 shared memory device

2019-06-10 Thread Jungo Lin
The purpose of this child device is to provide shared memory management for exchanging tuning data between co-processor and the Pass 1 unit of the camera ISP system, including cache buffer handling. Signed-off-by: Jungo Lin --- This patch depends on "Add support for mt8183 SCP"[1]. [1] https://p

[RFC,V3 0/9] media: platform: mtk-isp: Add Mediatek ISP Pass 1 driver

2019-06-10 Thread Jungo Lin
Hello, This RFC patch series adding the driver for Pass 1 (P1) unit in Mediatek's camera ISP system on mt8183 SoC, which will be used in camera features of CrOS. It's the first time Mediatek develops ISP kernel drivers based on V4L2 and media controller framework. I posted the main part of the ISP

[RFC,v3 5/9] media: platform: Add Mediatek ISP P1 V4L2 control

2019-06-10 Thread Jungo Lin
Reserved Mediatek ISP P1 V4L2 control number with 16. Moreover, add two V4L2 controls for ISP P1 user space usage. 1. V4L2_CID_MTK_GET_BIN_INFO - Provide the image output width & height in case camera binning mode is enabled. 2. V4L2_CID_MTK_RAW_PATH - Export the path control of the main stream t

[RFC,v3 2/9] dts: arm64: mt8183: Add ISP Pass 1 nodes

2019-06-10 Thread Jungo Lin
Add nodes for Pass 1 unit of Mediatek's camera ISP system. Pass 1 unit embedded in Mediatek SoCs, works with the co-processor to process image signal from the image sensor and output RAW image data. Signed-off-by: Jungo Lin --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 24 ++

[RFC,v3 6/9] media: platform: Add Mediatek ISP P1 V4L2 functions

2019-06-10 Thread Jungo Lin
Implement standard V4L2 video driver that utilizes V4L2 and media framework APIs. In this driver, supports one media device, one sub-device and seven video devices during initialization. Moreover, it also connects with sensor and seninf drivers with V4L2 async APIs. (The current metadata interface

[RFC,v3 7/9] media: platform: Add Mediatek ISP P1 device driver

2019-06-10 Thread Jungo Lin
This patch adds the Mediatek ISP P1 HW control device driver. It handles the ISP HW configuration, provides interrupt handling and initializes the V4L2 device nodes and other functions. (The current metadata interface used in meta input and partial meta nodes is only a temporary solution to kick o

[RFC,v3 3/9] media: platform: Add Mediatek ISP Pass 1 driver Kconfig

2019-06-10 Thread Jungo Lin
This patch adds Kconfig for Pass 1 (P1) unit driver of Mediatek's camera ISP system. ISP P1 unit is embedded in Mediatek SoCs. It provides RAW processing which includes optical black correction, defect pixel correction, W/IR imbalance correction and lens shading correction. Signed-off-by: Jungo Li

[RFC,v3 1/9] dt-bindings: mt8183: Added camera ISP Pass 1

2019-06-10 Thread Jungo Lin
This patch adds DT binding document for the Pass 1 (P1) unit in Mediatek's camera ISP system. The Pass 1 unit grabs the sensor data out from the sensor interface, applies ISP image effects from tuning data and outputs the image data or statistics data to DRAM. Signed-off-by: Jungo Lin --- .../bi

[RFC,v3 8/9] media: platform: Add Mediatek ISP P1 SCP communication

2019-06-10 Thread Jungo Lin
This patch adds communication with the co-processor on the SoC through the SCP driver. It supports bi-directional commands to exchange data and perform command flow control function. Signed-off-by: Jungo Lin --- This patch depends on "Add support for mt8183 SCP"[1]. [1] https://patchwork.kernel.

Re: [PATCH] media: dt-bindings: Fix vendor-prefixes YAML

2019-06-10 Thread Rob Herring
On Mon, Jun 3, 2019 at 5:32 AM Maxime Ripard wrote: > > Commit 8df39e16877f ("media: dt-bindings: media: Add vendor prefix for > allegro") introduced a new devicetree binding vendors, however with an > improper syntax making the resulting YAML impossible to parse. Let's fix > this. > > Cc: Hans Ve

[PATCH v2 5/5] media: rockchip: Use vb2_get_buffer

2019-06-10 Thread Ezequiel Garcia
Use the newly introduced vb2_get_buffer API and avoid accessing buffers in the queue directly. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/rockchip/vpu/

[PATCH v2 2/5] media: mtk-jpeg: Use vb2_get_buffer

2019-06-10 Thread Ezequiel Garcia
Use the newly introduced vb2_get_buffer API and avoid accessing buffers in the queue directly. Cc: Rick Chang Cc: Bin Liu Signed-off-by: Ezequiel Garcia --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platfor

[PATCH v2 4/5] media: sti: Use vb2_get_buffer

2019-06-10 Thread Ezequiel Garcia
Use the newly introduced vb2_get_buffer API and avoid accessing buffers in the queue directly. Cc: Jean-Christophe Trotin Signed-off-by: Ezequiel Garcia --- drivers/media/platform/sti/hva/hva-v4l2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/st

[PATCH v2 3/5] media: mtk-vcodec: Use vb2_get_buffer

2019-06-10 Thread Ezequiel Garcia
Use the newly introduced vb2_get_buffer API and avoid accessing buffers in the queue directly. Cc: Tiffany Lin Cc: Andrew-CT Chen Signed-off-by: Ezequiel Garcia --- drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git

[PATCH v2 1/5] media: vb2: Introduce a vb2_get_buffer accessor

2019-06-10 Thread Ezequiel Garcia
Some drivers need to access a vb2 buffer from its queue index. Introduce an accessor to abstract this, and avoid drivers from accessing private members. Reviewed-by: Boris Brezillon Signed-off-by: Ezequiel Garcia --- Changes from v1: * Drop redundant num_buffers > 0 check. --- include/media/vid

[PATCH v2 0/5] media: Access videobuf2 buffers via an accessor

2019-06-10 Thread Ezequiel Garcia
Hi, This patchset introduces a new vb2_get_buffer accessor and then uses it on all the drivers that are accessing videobuf2 private buffer array directly. I'm skipping Intel IPU3 driver here, since the code goes beyond just accessing the buffer. It also modifies the buffer queue directly. I belie

Re: [RFC 1/1] v4l2-subdev: Rework subdev format and selection macros to work without MC

2019-06-10 Thread Janusz Krzysztofik
Hi Sakari, On Monday, June 10, 2019 10:54:44 AM CEST Sakari Ailus wrote: > Hi Janusz, > > On Thu, Jun 06, 2019 at 08:13:36PM +0200, Janusz Krzysztofik wrote: > > Hi Sakari, > > > > On Thursday, June 6, 2019 3:56:42 PM CEST Sakari Ailus wrote: > > > Hi Janusz, > > > > > > On Wed, Jun 05, 2019 at

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

2019-06-10 Thread Sven Van Asbroeck
On Mon, Jun 10, 2019 at 5:09 AM Robin Gong wrote: > > I can reproduce once enable your config to build firmware in kernel, but no > such issue > if load sdma firmware from rootfs as imx_v6_v7_defconfig. Maybe firmware > built in function > broken by some patches. Could you try with the default f

[no subject]

2019-06-10 Thread frances patrick connolly
Meine Namen sind Frances und Patrick Connolly aus Nordirland, Großbritannien. Meine Frau und ich möchten Ihnen und Ihrer Familie meine guten Neuigkeiten mitteilen. Am Neujahrstag (1.1.19) habe ich einen Jackpot im Wert von 115 Millionen Pfund gewonnen. Ich möchte Ihnen und Ihrer Familie im Na

RE: [v8] media: imx: add mem2mem device

2019-06-10 Thread Robin Gong
> -Original Message- > From: Sven Van Asbroeck > Sent: 2019年6月6日 21:35 > On Wed, Jun 5, 2019 at 10:32 PM Robin Gong wrote: > > > > So that's another issue that I can't reproduce. How do you switch > > between sdma ROM/RAM firmware load? Just keep or remove > sdma-imx6q.bin in your ramfs

Re: [PATCH v2 0/3] media: uapi: h264: First batch of adjusments

2019-06-10 Thread Boris Brezillon
On Mon, 10 Jun 2019 10:52:47 +0200 Boris Brezillon wrote: > Hello, > > This is a first batch of adjustments to the stateless H264 decoder > uAPI. The first one is about adding support for per-frame decoding, > which is the only mode supported on some codecs (the hantro G1 block > supports per-sl

Re: [RFC 1/1] v4l2-subdev: Rework subdev format and selection macros to work without MC

2019-06-10 Thread Sakari Ailus
Hi Janusz, On Thu, Jun 06, 2019 at 08:13:36PM +0200, Janusz Krzysztofik wrote: > Hi Sakari, > > On Thursday, June 6, 2019 3:56:42 PM CEST Sakari Ailus wrote: > > Hi Janusz, > > > > On Wed, Jun 05, 2019 at 09:33:41PM +0200, Janusz Krzysztofik wrote: > > > Hi Sakari, > > > > > > On Tuesday, June

[PATCH v2 3/3] media: uapi: h264: Get rid of the p0/b0/b1 ref-lists

2019-06-10 Thread Boris Brezillon
Those lists can be extracted from the dpb, let's simplify userspace life and build that list kernel-side (generic helpers will be provided for drivers that need this list). Signed-off-by: Boris Brezillon --- Changes in v2: * None --- Documentation/media/uapi/v4l/ext-ctrls-codec.rst | 9 -

[PATCH v2 2/3] media: uapi: h264: Add the concept of decoding mode

2019-06-10 Thread Boris Brezillon
Some stateless decoders don't support per-slice decoding (or at least not in a way that would make them efficient or easy to use). Let's expose a menu to control and expose the supported decoding modes. Drivers are allowed to support only one decoding but they can support both too. Signed-off-by:

[PATCH v2 1/3] media: uapi: h264: Clarify our expectations regarding NAL header format

2019-06-10 Thread Boris Brezillon
Looks like some stateless decoders expect slices to be prefixed with ANNEX B start codes (they most likely do some kind of bitstream parsing and/or need that to delimit slices when doing per frame decoding). Since skipping those start codes for dummy stateless decoders (those expecting all params t

[PATCH v2 0/3] media: uapi: h264: First batch of adjusments

2019-06-10 Thread Boris Brezillon
Hello, This is a first batch of adjustments to the stateless H264 decoder uAPI. The first one is about adding support for per-frame decoding, which is the only mode supported on some codecs (the hantro G1 block supports per-slice decoding but not in an way that would allow efficient multiplexing o