Re: [RFC PATCH V1 6/6] platform: mtk-isp: Add Mediatek DIP driver

2019-06-25 Thread Frederic Chen
izeimage field is less than the minimum required for the given format, then an error will be returned since drivers will typically not allow this. === Should we check the image size of each plane here so that we can pass the test? > > > + } else { > > + *num_planes = 1; > > + sizes[0] = size; > > + } > > + > > + dev_dbg(dev, "%s:%s:%s: n_planes(%d), n_bufs(%d), size(%d)\n", > > + __func__, dip_pipe->desc->name, > > + node->desc->name, *num_planes, *num_buffers, sizes[0]); > > + > > + return 0; > > +} > > + Sincerely, Frederic Chen

Re: [RFC PATCH V1 6/6] platform: mtk-isp: Add Mediatek DIP driver

2019-06-11 Thread Frederic Chen
Dear Tomasz, I'd like to elaborate more about the tuning_data.va. Would you like to give us some advice about our improvement proposal inline? Thank you very much. On Wed, 2019-05-22 at 03:14 +0800, Frederic Chen wrote: > Dear Tomasz, > > I appreciate your comment. It is very

Re: [RFC PATCH V1 6/6] platform: mtk-isp: Add Mediatek DIP driver

2019-05-23 Thread Frederic Chen
Hi Shilk, I appreciate your comments. On Wed, 2019-05-22 at 17:51 +0800, Shik Chen wrote: > Hi Frederic, > > Most reviews are already covered by Tomasz, here are some small missing > pieces. > Please see my comments inline. > > On Wed, Apr 17, 2019 at 06:45:11PM +0800

Re: [RFC PATCH V1 6/6] platform: mtk-isp: Add Mediatek DIP driver

2019-05-23 Thread Frederic Chen
Dear Tomasz, Thank you for your comments. On Wed, 2019-05-22 at 19:25 +0900, Tomasz Figa wrote: > Hi Frederic, > > On Wed, May 22, 2019 at 03:14:15AM +0800, Frederic Chen wrote: > > Dear Tomasz, > > > > I appreciate your comment. It is very helpful for us. > >

Re: [RFC PATCH V1 1/6] dt-bindings: mt8183: Add binding for DIP shared memory

2019-05-07 Thread Frederic Chen
Dear Rob, I appreciate your comments. On Mon, 2019-04-29 at 20:15 -0500, Rob Herring wrote: > On Wed, Apr 17, 2019 at 06:45:06PM +0800, Frederic Chen wrote: > > This patch adds the binding for describing the shared memory > > used to exchange configuration and tuning data bet

Re: [RFC PATCH V1 3/6] dt-bindings: mt8183: Added DIP dt-bindings

2019-05-07 Thread Frederic Chen
Dear Rob, I appreciate your comments. On Mon, 2019-04-29 at 20:16 -0500, Rob Herring wrote: > On Wed, Apr 17, 2019 at 06:45:08PM +0800, Frederic Chen wrote: > > This patch adds DT binding documentation for the Digital Image > > Processing (DIP) unit of camera ISP system on

[RFC PATCH V1 6/6] platform: mtk-isp: Add Mediatek DIP driver

2019-04-17 Thread Frederic Chen
), sensor interface driver, DIP driver and face detection driver. Signed-off-by: Frederic Chen --- drivers/media/platform/mtk-isp/Makefile | 18 + .../media/platform/mtk-isp/isp_50/Makefile| 17 + .../platform/mtk-isp/isp_50/dip/Makefile | 32 + .../mtk-isp/isp_50/dip/mtk_dip

[RFC PATCH V1 4/6] dts: arm64: mt8183: Add DIP nodes

2019-04-17 Thread Frederic Chen
This patch adds nodes for Digital Image Processing (DIP). DIP is embedded in Mediatek SoCs and works with the co-processor to adjust image content according to tuning input data. It also provides image format conversion, resizing, and rotation features. Signed-off-by: Frederic Chen --- arch

[RFC PATCH V1 3/6] dt-bindings: mt8183: Added DIP dt-bindings

2019-04-17 Thread Frederic Chen
This patch adds DT binding documentation for the Digital Image Processing (DIP) unit of camera ISP system on Mediatek's SoCs. Signed-off-by: Frederic Chen --- .../bindings/media/mediatek,mt8183-dip.txt| 35 +++ 1 file changed, 35 insertions(+) create mode 1

[RFC PATCH V1 0/6] media: platform: Add support for Digital Image Processing (DIP) on mt8183 SoC

2019-04-17 Thread Frederic Chen
Hello, This RFC patch series adding Digital Image Processing (DIP) driver on Mediatek mt8183 SoC. It belongs to the Mediatek's ISP driver series based on V4L2 and media controller framework. I posted the main part of the DIP driver as RFC to discuss first and would like some review comments.

[RFC PATCH V1 5/6] media: platform: Add Mediatek DIP driver KConfig

2019-04-17 Thread Frederic Chen
This patch adds KConfig for Mediatek Digital Image Processing driver(DIP). DIP is embedded in Mediatek SoCs. It provides image format conversion, resizing, and rotation function. Signed-off-by: Frederic Chen --- drivers/media/platform/Kconfig | 2 ++ drivers/media/platform/mtk-isp

[RFC PATCH V1 1/6] dt-bindings: mt8183: Add binding for DIP shared memory

2019-04-17 Thread Frederic Chen
This patch adds the binding for describing the shared memory used to exchange configuration and tuning data between the co-processor and Digital Image Processing (DIP) unit of the camera ISP system on Mediatek SoCs. Signed-off-by: Frederic Chen --- .../mediatek,reserve-memory-dip_smem.txt

[RFC PATCH V1 2/6] dts: arm64: mt8183: Add DIP shared memory node

2019-04-17 Thread Frederic Chen
This patch adds a shared memory region used on mt8183 for exchanging tuning data between co-processor and Digital Image Processing(DIP) unit. Signed-off-by: Frederic Chen --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64

Re: [RFC PATCH V0 7/7] [media] platform: mtk-isp: Add Mediatek DIP driver

2019-03-06 Thread Frederic Chen
Dear Brian, I appreciate your comments. On Wed, 2019-02-27 at 19:24 -0800, Brian Norris wrote: > Hi Frederic, > > On Sat, Feb 23, 2019 at 02:18:54PM +0800, Frederic Chen wrote: > > Dear Brian, > > > > I appreciate your comments. I'm really sorry for the delay i

Re: [RFC PATCH V0 7/7] [media] platform: mtk-isp: Add Mediatek DIP driver

2019-02-22 Thread Frederic Chen
2019-02-07 at 11:08 -0800, Brian Norris wrote: > > Hi, > > > > On Fri, Feb 01, 2019 at 07:21:31PM +0800, Frederic Chen wrote: > > > This patch adds the driver of Digital Image Processing (DIP) > > > unit in Mediatek ISP system, providing image format

Re: [RFC PATCH V0 3/7] [media] dt-bindings: mt8183: Added DIP-SMEM dt-bindings

2019-02-12 Thread Frederic Chen
tree list, please? > > > > On Fri, Feb 01, 2019 at 07:21:27PM +0800, Frederic Chen wrote: > > > This patch adds the DT binding documentation for the shared memory > > > between DIP (Digital Image Processing) unit of the camera ISP system > > > an

Re: [RFC PATCH V0 1/7] [media] dt-bindings: mt8183: Add binding for DIP shared memory

2019-02-12 Thread Frederic Chen
Feb 01, 2019 at 07:21:25PM +0800, Frederic Chen wrote: > > > This patch adds the binding for describing the shared memory > > > used to exchange configuration and tuning data between the > > > co-processor and Digital Image Processing (DIP) unit of the > > > cam

[RFC PATCH V0 3/7] [media] dt-bindings: mt8183: Added CAM-SMEM dt-bindings

2019-02-04 Thread Frederic Chen
From: Jungo Lin This patch adds the DT binding documentation for the shared memory between Pass 1 unit of the camera ISP system and the co-processor in Mediatek SoCs. Signed-off-by: Jungo Lin Signed-off-by: Frederic Chen --- .../bindings/media/mediatek,cam_smem.txt | 32

[RFC PATCH V0 1/7] [media] dt-bindings: mt8183: Add binding for ISP Pass 1 shared memory

2019-02-04 Thread Frederic Chen
This patch adds the binding for describing the shared memory used to exchange configuration and tuning data between the co-processor and Pass 1 (P1) unit of the camera ISP system on Mediatek SoCs. Signed-off-by: Frederic Chen --- .../mediatek,reserve-memory-cam_smem.txt | 44

[RFC PATCH V0 0/7] media: platform: Add support for ISP Pass 1 on mt8183 SoC

2019-02-04 Thread Frederic Chen
ry region for the co-processor and Pass 1 unit to exchange the tuning and configuration data. Frederic Chen (2): [media] dt-bindings: mt8183: Add binding for ISP Pass 1 shared memory media: platform: Add Mediatek ISP Pass 1 driver KConfig Jungo Lin (5): dts: arm64: mt8183: Add ISP Pass

[RFC PATCH V0 5/7] dts: arm64: mt8183: Add ISP Pass 1 nodes

2019-02-04 Thread Frederic Chen
From: 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 data. Signed-off-by: Jungo Lin Signed-off-by: Frederic Chen --- arch/arm64/boo

[RFC PATCH V0 6/7] media: platform: Add Mediatek ISP Pass 1 driver KConfig

2019-02-04 Thread Frederic Chen
ff-by: Frederic Chen --- drivers/media/platform/Kconfig | 2 ++ drivers/media/platform/mtk-isp/Kconfig | 21 + 2 files changed, 23 insertions(+) create mode 100644 drivers/media/platform/mtk-isp/Kconfig diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kc

[RFC PATCH V0 4/7] [media] dt-bindings: mt8183: Added camera ISP Pass 1 dt-bindings

2019-02-04 Thread Frederic Chen
From: 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 effects and writes the image data to DRAM. Signed-off-by: Jungo Lin Signed-off-by: Frederic

[RFC PATCH V0 2/7] dts: arm64: mt8183: Add ISP Pass 1 shared memory node

2019-02-04 Thread Frederic Chen
From: Jungo Lin This patch adds a shared memory region used on mt8183 for exchanging tuning data between co-processor and the Pass 1 unit of the camera ISP system Signed-off-by: Jungo Lin Signed-off-by: Frederic Chen --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 14 ++ 1 file

[RFC PATCH V0 3/7] [media] dt-bindings: mt8183: Added DIP-SMEM dt-bindings

2019-02-01 Thread Frederic Chen
This patch adds the DT binding documentation for the shared memory between DIP (Digital Image Processing) unit of the camera ISP system and the co-processor in Mediatek SoCs. Signed-off-by: Frederic Chen --- .../bindings/media/mediatek,dip_smem.txt | 29 ++ 1 file

[RFC PATCH V0 2/7] dts: arm64: mt8183: Add DIP shared memory node

2019-02-01 Thread Frederic Chen
This patch adds a shared memory region used on mt8183 for exchanging tuning data between co-processor and Digital Image Processing (DIP) unit. Signed-off-by: Frederic Chen --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64

[RFC PATCH V0 4/7] [media] dt-bindings: mt8183: Added DIP dt-bindings

2019-02-01 Thread Frederic Chen
This patch adds DT binding documentation for the Digital Image Processing (DIP) unit of camera ISP system on Mediatek’s SoCs. Signed-off-by: Frederic Chen --- .../bindings/media/mediatek,mt8183-dip.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644

[RFC PATCH V0 6/7] media: platform: Add Mediatek DIP driver KConfig

2019-02-01 Thread Frederic Chen
This patch adds KConfig for Mediatek Digital Image Processing driver (DIP). DIP is embedded in Mediatek SoCs. It can provide image format conversion, resizing, and rotation function. Signed-off-by: Frederic Chen --- drivers/media/platform/Kconfig | 2 ++ drivers/media/platform/mtk-isp

[RFC PATCH V0 0/7] media: platform: Add support for Digital Image Processing (DIP) on mt8183 SoC

2019-02-01 Thread Frederic Chen
and DIP to exchange the tuning and hardware configuration data. * mtk_dip-v4l2-util.c: Implements V4L2 and vb2 ops. Frederic Chen (7): [media] dt-bindings: mt8183: Add binding for DIP shared memory dts: arm64: mt8183: Add DIP shared memory node [media] dt-bindings: mt8183: Added DIP-SMEM

[RFC PATCH V0 1/7] [media] dt-bindings: mt8183: Add binding for DIP shared memory

2019-02-01 Thread Frederic Chen
This patch adds the binding for describing the shared memory used to exchange configuration and tuning data between the co-processor and Digital Image Processing (DIP) unit of the camera ISP system on Mediatek SoCs. Signed-off-by: Frederic Chen --- .../mediatek,reserve-memory-dip_smem.txt

[RFC PATCH V0 5/7] dts: arm64: mt8183: Add DIP nodes

2019-02-01 Thread Frederic Chen
This patch adds nodes for Digital Image Processing (DIP). DIP is embedded in Mediatek SoCs and works with the co-processor to adjust image content according to tuning input data. It also provides image format conversion, resizing, and rotation features. Signed-off-by: Frederic Chen --- arch