[PATCH v3 2/2] media: ipu3-imgu: Remove dead code for NULL check

2019-02-01 Thread Yong Zhi
856.GA1169@kadam/] Signed-off-by: Yong Zhi Reviewed-by: Tomasz Figa --- drivers/staging/media/ipu3/ipu3.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/staging/media/ipu3/ipu3.c b/drivers/staging/media/ipu3/ipu3.c index d521b3a..839d939 100644 ---

[PATCH v3 1/2] media: ipu3-imgu: Use MENU type for mode control

2019-02-01 Thread Yong Zhi
This addresses the below TODO item. - Use V4L2_CTRL_TYPE_MENU for dual-pipe mode control. (Sakari) Signed-off-by: Yong Zhi Reviewed-by: Tomasz Figa Acked-by: Sakari Ailus --- drivers/staging/media/ipu3/TODO | 2 -- drivers/staging/media/ipu3/include/intel-ipu3.h | 6

RE: [PATCH v2 2/2] media: ipu3-imgu: Remove dead code for NULL check

2019-02-01 Thread Zhi, Yong
Hi, Sakari, > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Friday, February 1, 2019 2:43 AM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; Mani, Rajmohan > ; tf...@chromium.org; > laurent.pinch...@ideasonboard.com; h

[PATCH v3 1/1] media: ipu3: update meta format documentation

2019-01-24 Thread Yong Zhi
Language improvements, fix entity naming, make pipeline a graph and move device usage documentation to device documentation ipu3.rst. Signed-off-by: Yong Zhi --- v3 - Outline main changes in commit message. - Remove the intel-ipu3.h renaming from this patch. v2 Rename stats_4a_config to

RE: [PATCH v2] media: ipu3: update meta format documentation

2019-01-24 Thread Zhi, Yong
Hi, Sakari, > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Wednesday, January 23, 2019 11:25 PM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; laurent.pinch...@ideasonboard.com; > Mani, Rajmohan ; tf...@chromium.org; > h

RE: [PATCH v8 15/17] media: v4l: Add Intel IPU3 meta buffer formats

2019-01-22 Thread Zhi, Yong
Hi, Laurent, > -Original Message- > From: Laurent Pinchart [mailto:laurent.pinch...@ideasonboard.com] > Sent: Tuesday, January 22, 2019 1:22 PM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; sakari.ai...@linux.intel.com; > tf...@chromium.org; Mani, Rajmohan ; >

[PATCH v2 2/2] media: ipu3-imgu: Remove dead code for NULL check

2019-01-16 Thread Yong Zhi
856.GA1169@kadam/] Signed-off-by: Yong Zhi Reviewed-by: Tomasz Figa Reviewed-by: Laurent Pinchart --- drivers/staging/media/ipu3/ipu3.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/staging/media/ipu3/ipu3.c b/drivers/staging/media/ipu3/ipu3.c ind

[PATCH v2 1/2] media: ipu3-imgu: Use MENU type for mode control

2019-01-16 Thread Yong Zhi
This addresses the below TODO item. - Use V4L2_CTRL_TYPE_MENU for dual-pipe mode control. (Sakari) Signed-off-by: Yong Zhi Reviewed-by: Tomasz Figa Acked-by: Sakari Ailus --- drivers/staging/media/ipu3/TODO | 2 -- drivers/staging/media/ipu3/include/intel-ipu3.h | 6

RE: [PATCH 2/2] media: ipu3-imgu: Remove dead code for NULL check

2019-01-15 Thread Zhi, Yong
Hi, Tomasz, > -Original Message- > From: Tomasz Figa [mailto:tf...@chromium.org] > Sent: Monday, January 14, 2019 11:38 PM > To: Zhi, Yong > Cc: Linux Media Mailing List ; Sakari Ailus > ; Mani, Rajmohan > ; Qiu, Tian Shu ; > Laurent Pinchart ; Hans Verkuil &

[PATCH 1/2] media: ipu3-imgu: Use MENU type for mode control

2019-01-14 Thread Yong Zhi
This addresses the below TODO item. - Use V4L2_CTRL_TYPE_MENU for dual-pipe mode control. (Sakari) Signed-off-by: Yong Zhi --- drivers/staging/media/ipu3/TODO | 2 -- drivers/staging/media/ipu3/include/intel-ipu3.h | 6 -- drivers/staging/media/ipu3/ipu3-v4l2.c

[PATCH 2/2] media: ipu3-imgu: Remove dead code for NULL check

2019-01-14 Thread Yong Zhi
Since ipu3_css_buf_dequeue() never returns NULL, remove the dead code to fix static checker warning: drivers/staging/media/ipu3/ipu3.c:493 imgu_isr_threaded() warn: 'b' is an error pointer or valid Signed-off-by: Yong Zhi --- Link to Dan's bug report: https://www.spinics.net/li

[PATCH] media: ipu3: update meta format documentation

2019-01-14 Thread Yong Zhi
Make changes based on Laurent's v8 review: https://www.spinics.net/lists/linux-media/msg144408.html Signed-off-by: Yong Zhi --- Documentation/media/uapi/v4l/meta-formats.rst | 2 +- .../media/uapi/v4l/pixfmt-meta-intel-ipu3.rst | 119 ++--- Documentation/medi

RE: [PATCH v8 15/17] media: v4l: Add Intel IPU3 meta buffer formats

2019-01-10 Thread Zhi, Yong
Hi, Laurent, Thanks for the review. > -Original Message- > From: Laurent Pinchart [mailto:laurent.pinch...@ideasonboard.com] > Sent: Tuesday, December 11, 2018 6:59 AM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; sakari.ai...@linux.intel.com; > tf...@chromium.o

RE: [bug report] media: staging/intel-ipu3: Add imgu top level pci device driver

2019-01-07 Thread Zhi, Yong
Cc Tianshu and others. Hi, Dan, Thanks a lot for the code review. > -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Friday, January 4, 2019 6:29 AM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org > Subject: [bug report] media:

RE: [PATCH 1/1] media: staging/intel-ipu3: Fix Kconfig for unmet direct dependencies

2019-01-02 Thread Zhi, Yong
Hi, Sakari, > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Wednesday, January 2, 2019 2:11 PM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; tf...@chromium.org; Mani, Rajmohan > ; hans.verk...@cisco.com; > mche...@kern

[PATCH 1/1] media: staging/intel-ipu3: Fix Kconfig for unmet direct dependencies

2018-12-31 Thread Yong Zhi
Fix link error for specific .config reported by lkp robot: drivers/staging/media/ipu3/ipu3-dmamap.o: In function `ipu3_dmamap_alloc': drivers/staging/media/ipu3/ipu3-dmamap.c:111: undefined reference to `alloc_iova' Signed-off-by: Yong Zhi --- Happy New Year!! drivers/staging/

Re: [linux-sunxi] [PATCH v12 0/2] Initial Allwinner V3s CSI Support

2018-12-26 Thread Yong
Hi, On Wed, 26 Dec 2018 11:29:36 +0100 'Ondřej Jirman' via linux-sunxi wrote: > Hello, > > On Tue, Oct 30, 2018 at 04:09:48PM +0800, Yong Deng wrote: > > I can't make v4l2-compliance always happy. > > The V3s CSI support many pixformats. But they are not alw

[PATCH v8 15/17] media: v4l: Add Intel IPU3 meta buffer formats

2018-12-06 Thread Yong Zhi
Add IPU3-specific meta formats for processing parameters and 3A statistics. V4L2_META_FMT_IPU3_PARAMS V4L2_META_FMT_IPU3_STAT_3A Signed-off-by: Yong Zhi Reviewed-by: Laurent Pinchart --- Documentation/media/uapi/v4l/meta-formats.rst | 1 + .../media/uapi/v4l/pixfmt-meta-intel-ipu3

[PATCH v8 12/17] media: staging/intel-ipu3: Add imgu top level pci device driver

2018-12-06 Thread Yong Zhi
This patch adds support for the Intel IPU v3 as found on Skylake and Kaby Lake SoCs. The driver glues v4l2, css(camera sub system) and other pieces together to perform its functions, it also loads the IPU3 firmware binary as part of its initialization. Signed-off-by: Yong Zhi Signed-off-by

[PATCH v8 08/17] media: staging/intel-ipu3: css: Compute and program ccs

2018-12-06 Thread Yong Zhi
A collection of routines that are mainly used to calculate the parameters for accelerator cluster. Signed-off-by: Yong Zhi --- drivers/staging/media/ipu3/ipu3-css-params.c | 2915 ++ drivers/staging/media/ipu3/ipu3-css-params.h | 25 + 2 files changed, 2940 insertions

[PATCH v8 06/17] media: staging/intel-ipu3: css: Add support for firmware management

2018-12-06 Thread Yong Zhi
Introduce functions to load and install ImgU FW blobs. Signed-off-by: Yong Zhi --- drivers/staging/media/ipu3/ipu3-css-fw.c | 264 +++ drivers/staging/media/ipu3/ipu3-css-fw.h | 188 ++ 2 files changed, 452 insertions(+) create mode 100644

[PATCH v8 10/17] media: staging/intel-ipu3: Add css pipeline programming

2018-12-06 Thread Yong Zhi
This provides helper library to be used by v4l2 level to program imaging pipelines and control the streaming. Signed-off-by: Yong Zhi --- drivers/staging/media/ipu3/ipu3-css.c | 1740 + 1 file changed, 1740 insertions(+) diff --git a/drivers/staging/media/ipu3

[PATCH v8 01/17] media: staging/intel-ipu3: abi: Add register definitions and enum

2018-12-06 Thread Yong Zhi
Add macros and enums used for IPU3 firmware interface. Signed-off-by: Yong Zhi Signed-off-by: Rajmohan Mani Reviewed-by: Laurent Pinchart --- drivers/staging/media/ipu3/ipu3-abi.h | 661 ++ 1 file changed, 661 insertions(+) create mode 100644 drivers/staging

[PATCH v8 00/17] Intel IPU3 ImgU patchset

2018-12-06 Thread Yong Zhi
or the time being(internal fix). version 2: This version cherry-picked firmware ABI change and other fix in order to bring the code up-to-date with our internal release. I will go over the review comments in v1 and address them in v3 and future update. version 1: - Initial submission Cao,Bing Bu (2

[PATCH v8 11/17] media: staging/intel-ipu3: Add v4l2 driver based on media framework

2018-12-06 Thread Yong Zhi
Implement video driver that utilizes v4l2, vb2 queue support and media controller APIs. The driver exposes single subdevice and six nodes. Signed-off-by: Yong Zhi --- drivers/staging/media/ipu3/ipu3-v4l2.c | 1086 1 file changed, 1086 insertions(+) create mode

[PATCH v8 13/17] media: staging/intel-ipu3: Add Intel IPU3 meta data uAPI

2018-12-06 Thread Yong Zhi
These meta formats are used on Intel IPU3 ImgU video queues to carry 3A statistics and ISP pipeline parameters. V4L2_META_FMT_IPU3_3A V4L2_META_FMT_IPU3_PARAMS Signed-off-by: Yong Zhi Signed-off-by: Chao C Li Signed-off-by: Rajmohan Mani --- drivers/staging/media/ipu3/include/intel-ipu3.h

[PATCH v8 05/17] media: staging/intel-ipu3: css: Add dma buff pool utility functions

2018-12-06 Thread Yong Zhi
The pools are used to store previous parameters set by user with the parameter queue. Due to pipelining, there needs to be multiple sets (up to four) of parameters which are queued in a host-to-sp queue. Signed-off-by: Yong Zhi --- drivers/staging/media/ipu3/ipu3-css-pool.c | 100

[PATCH v8 04/17] media: staging/intel-ipu3: Implement DMA mapping functions

2018-12-06 Thread Yong Zhi
From: Tomasz Figa This driver uses IOVA space for buffer mapping through IPU3 MMU to transfer data between imaging pipelines and system DDR. Signed-off-by: Tomasz Figa Signed-off-by: Yong Zhi --- drivers/staging/media/ipu3/ipu3-dmamap.c | 270 +++ drivers/staging

[PATCH v8 02/17] media: staging/intel-ipu3: abi: Add structs

2018-12-06 Thread Yong Zhi
This add all the structs of IPU3 firmware ABI. Signed-off-by: Yong Zhi Signed-off-by: Rajmohan Mani Reviewed-by: Laurent Pinchart --- drivers/staging/media/ipu3/ipu3-abi.h | 1350 + 1 file changed, 1350 insertions(+) diff --git a/drivers/staging/media/ipu3

[PATCH v8 03/17] media: staging/intel-ipu3: mmu: Implement driver

2018-12-06 Thread Yong Zhi
From: Tomasz Figa This driver translates IO virtual address to physical address based on two levels page tables. Signed-off-by: Tomasz Figa Signed-off-by: Yong Zhi --- drivers/staging/media/ipu3/ipu3-mmu.c | 561 ++ drivers/staging/media/ipu3/ipu3-mmu.h | 35

[PATCH v8 17/17] doc-rst: Add Intel IPU3 documentation

2018-12-06 Thread Yong Zhi
From: Rajmohan Mani This patch adds the details about the IPU3 Imaging Unit driver. Change-Id: I560cecf673df2dcc3ec72767cf8077708d649656 Signed-off-by: Rajmohan Mani --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/ipu3.rst | 326 +

[PATCH v8 16/17] media: v4l2-ctrls: Reserve controls for IPU3 ImgU

2018-12-06 Thread Yong Zhi
From: "Cao,Bing Bu" Add a base to be used for allocation of all the IPU3 specific controls in the ImgU driver. Signed-off-by: Yong Zhi Signed-off-by: Tian Shu Qiu --- include/uapi/linux/v4l2-controls.h | 4 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/v4l2-

RE: [PATCH v7 01/16] v4l: Add Intel IPU3 meta buffer formats

2018-11-29 Thread Zhi, Yong
Hi, Laurent, Thanks for the review. > -Original Message- > From: Laurent Pinchart [mailto:laurent.pinch...@ideasonboard.com] > Sent: Thursday, November 29, 2018 1:17 PM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; sakari.ai...@linux.intel.com; > tf...@

RE: [PATCH v7 03/16] v4l: Add Intel IPU3 meta data uAPI

2018-11-29 Thread Zhi, Yong
Hi, Sakari, > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Thursday, November 29, 2018 4:46 PM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; tf...@chromium.org; > mche...@kernel.org; hans.verk...@cisco.com; > laurent.pinc

Re: [PATCH v12 1/2] dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI)

2018-11-23 Thread Yong
Hi jacopo, On Fri, 23 Nov 2018 09:13:00 +0100 jacopo mondi wrote: > Hi Yong, > > On Fri, Nov 23, 2018 at 04:01:17PM +0800, Yong wrote: > > Hi jacopo, > > > > On Fri, 23 Nov 2018 08:45:14 +0100 > > jacopo mondi wrote: > > > > > Hi Yong, >

Re: [PATCH v12 1/2] dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI)

2018-11-23 Thread Yong
Hi jacopo, On Fri, 23 Nov 2018 08:45:14 +0100 jacopo mondi wrote: > Hi Yong, > > On Tue, Oct 30, 2018 at 03:06:24PM +0200, Laurent Pinchart wrote: > > Hi Yong, > > > > Thank you for the patch. > > > > On Tuesday, 30 October 2018 10:12:23 EET Yong Deng wro

RE: [PATCH v7 03/16] v4l: Add Intel IPU3 meta data uAPI

2018-11-16 Thread Zhi, Yong
Hi, Sakari, Thanks for the thorough review. > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Friday, November 2, 2018 8:03 AM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; tf...@chromium.org; > mche...@kernel.org; hans

RE: [PATCH v7 14/16] intel-ipu3: Add v4l2 driver based on media framework

2018-11-15 Thread Zhi, Yong
Hi, Hans, Thanks for the review. > -Original Message- > From: Hans Verkuil [mailto:hverk...@xs4all.nl] > Sent: Thursday, November 15, 2018 6:51 AM > To: Zhi, Yong ; linux-media@vger.kernel.org; > sakari.ai...@linux.intel.com > Cc: tf...@chromium.org; mche...@ker

Re: [PATCH v12 0/2] Initial Allwinner V3s CSI Support

2018-11-14 Thread Yong
Hi Maxime, On Tue, 13 Nov 2018 14:35:18 +0100 Maxime Ripard wrote: > Hi Yong, > > On Tue, Oct 30, 2018 at 04:09:48PM +0800, Yong Deng wrote: > > I can't make v4l2-compliance always happy. > > The V3s CSI support many pixformats. But they are not always available.

RE: [PATCH v7 15/16] intel-ipu3: Add imgu top level pci device driver

2018-11-12 Thread Zhi, Yong
Hi, Sakari, Thanks again for the code review. > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Friday, November 9, 2018 6:54 AM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; tf...@chromium.org; > mche...@kernel.org; hans

RE: [PATCH v7 14/16] intel-ipu3: Add v4l2 driver based on media framework

2018-11-09 Thread Zhi, Yong
Hi, Sakari, Thanks for the feedback. > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Friday, November 9, 2018 6:37 AM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; tf...@chromium.org; > mche...@kernel.org; hans

RE: [PATCH v7 08/16] intel-ipu3: css: Add dma buff pool utility functions

2018-11-09 Thread Zhi, Yong
Hi, Sakari, > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Thursday, November 8, 2018 9:36 AM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; tf...@chromium.org; > mche...@kernel.org; hans.verk...@cisco.com; > laurent.pinc

RE: [PATCH v7 00/16] Intel IPU3 ImgU patchset

2018-11-08 Thread Zhi, Yong
Hi, Sakari, Thanks for your review and comments. Bingbu has replied to some of your questions, so I will continue with the rest. > -Original Message- > From: Bing Bu Cao [mailto:bingbu@linux.intel.com] > Sent: Tuesday, November 6, 2018 10:17 PM > To: Sakari Ailus ; Zhi,

RE: [PATCH v7 03/16] v4l: Add Intel IPU3 meta data uAPI

2018-11-06 Thread Zhi, Yong
Hi, Mauro, Thanks for your review. > -Original Message- > From: Mauro Carvalho Chehab [mailto:mchehab+sams...@kernel.org] > Sent: Friday, November 2, 2018 6:49 AM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; sakari.ai...@linux.intel.com; > tf...@chrom

[PATCH] [v4l-utils] libv4l2subdev: Add MEDIA_BUS_FMT_FIXED to mbus_formats[]

2018-11-06 Thread Yong Zhi
Also add V4L2_COLORSPACE_RAW to the colorspaces[]. Signed-off-by: Yong Zhi --- utils/media-ctl/libv4l2subdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/media-ctl/libv4l2subdev.c b/utils/media-ctl/libv4l2subdev.c index a989efb..46668eb 100644 --- a/utils/media-ctl

RE: [PATCH v7 06/16] intel-ipu3: mmu: Implement driver

2018-11-05 Thread Zhi, Yong
Hi, Sakari, Thanks for the feedback. > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Monday, November 5, 2018 3:55 AM > To: Zhi, Yong > Cc: linux-media@vger.kernel.org; tf...@chromium.org; > mche...@kernel.org; hans

[PATCH v12 2/2] media: V3s: Add support for Allwinner CSI.

2018-10-30 Thread Yong Deng
Allwinner V3s SoC features a CSI module with parallel interface. This patch implement a v4l2 framework driver for it. Reviewed-by: Hans Verkuil Reviewed-by: Maxime Ripard Tested-by: Maxime Ripard Signed-off-by: Yong Deng --- MAINTAINERS| 8

[PATCH v12 1/2] dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI)

2018-10-30 Thread Yong Deng
Add binding documentation for Allwinner V3s CSI. Acked-by: Maxime Ripard Acked-by: Sakari Ailus Reviewed-by: Rob Herring Signed-off-by: Yong Deng --- .../devicetree/bindings/media/sun6i-csi.txt| 56 ++ 1 file changed, 56 insertions(+) create mode 100644

[PATCH v12 0/2] Initial Allwinner V3s CSI Support

2018-10-30 Thread Yong Deng
EATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK Test input 0: Streaming ioctls: test read/write: OK (Not Supported) test blocking wait: OK fail: v4l2-test-buffers.cpp(946): node->streamon(q.g_type()) test MMAP: FAIL test USERPTR: OK (Not Supported

[PATCH v7 09/16] intel-ipu3: css: Add support for firmware management

2018-10-29 Thread Yong Zhi
Introduce functions to load and install ImgU FW blobs. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-css-fw.c | 264 + drivers/media/pci/intel/ipu3/ipu3-css-fw.h | 188 2 files changed, 452 insertions(+) create mode 100644

[PATCH v7 15/16] intel-ipu3: Add imgu top level pci device driver

2018-10-29 Thread Yong Zhi
This patch adds support for the Intel IPU v3 as found on Skylake and Kaby Lake SoCs. The driver glues v4l2, css(camera sub system) and other pieces together to perform its functions, it also loads the IPU3 firmware binary as part of its initialization. Signed-off-by: Yong Zhi Signed-off-by

[PATCH v7 01/16] v4l: Add Intel IPU3 meta buffer formats

2018-10-29 Thread Yong Zhi
Add IPU3-specific meta formats for parameter processing and 3A, DVS statistics: V4L2_META_FMT_IPU3_PARAMS V4L2_META_FMT_IPU3_STAT_3A Signed-off-by: Yong Zhi --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 4 2 files changed, 6 insertions

[PATCH v7 05/16] intel-ipu3: abi: Add structs

2018-10-29 Thread Yong Zhi
This add all the structs of IPU3 firmware ABI. Signed-off-by: Yong Zhi Signed-off-by: Rajmohan Mani --- drivers/media/pci/intel/ipu3/ipu3-abi.h | 1350 +++ 1 file changed, 1350 insertions(+) diff --git a/drivers/media/pci/intel/ipu3/ipu3-abi.h b/drivers/media/pci

[PATCH v7 08/16] intel-ipu3: css: Add dma buff pool utility functions

2018-10-29 Thread Yong Zhi
The pools are used to store previous parameters set by user with the parameter queue. Due to pipelining, there needs to be multiple sets (up to four) of parameters which are queued in a host-to-sp queue. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-css-pool.c | 136

[PATCH v7 13/16] intel-ipu3: Add css pipeline programming

2018-10-29 Thread Yong Zhi
This provides helper library to be used by v4l2 level to program imaging pipelines and control the streaming. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-css.c | 1760 +++ 1 file changed, 1760 insertions(+) diff --git a/drivers/media/pci/intel/ipu3

[PATCH v7 14/16] intel-ipu3: Add v4l2 driver based on media framework

2018-10-29 Thread Yong Zhi
Implement video driver that utilizes v4l2, vb2 queue support and media controller APIs. The driver exposes single subdevice and six nodes. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-v4l2.c | 1091 ++ 1 file changed, 1091 insertions(+) create mode

[PATCH v7 11/16] intel-ipu3: css: Compute and program ccs

2018-10-29 Thread Yong Zhi
A collection of routines that are mainly used to calculate the parameters for accelerator cluster. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-css-params.c | 2907 drivers/media/pci/intel/ipu3/ipu3-css-params.h | 25 + 2 files changed, 2932

[PATCH v7 03/16] v4l: Add Intel IPU3 meta data uAPI

2018-10-29 Thread Yong Zhi
These meta formats are used on Intel IPU3 ImgU video queues to carry 3A statistics and ISP pipeline parameters. V4L2_META_FMT_IPU3_3A V4L2_META_FMT_IPU3_PARAMS Signed-off-by: Yong Zhi Signed-off-by: Chao C Li Signed-off-by: Rajmohan Mani --- Documentation/media/uapi/v4l/meta-formats.rst

[PATCH v7 12/16] intel-ipu3: css: Initialize css hardware

2018-10-29 Thread Yong Zhi
This patch implements the functions to initialize and configure IPU3 h/w such as clock, irq and power. Signed-off-by: Yong Zhi Signed-off-by: Tomasz Figa --- drivers/media/pci/intel/ipu3/ipu3-css.c | 537 drivers/media/pci/intel/ipu3/ipu3-css.h | 203

[PATCH v7 06/16] intel-ipu3: mmu: Implement driver

2018-10-29 Thread Yong Zhi
From: Tomasz Figa This driver translates IO virtual address to physical address based on two levels page tables. Signed-off-by: Tomasz Figa Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-mmu.c | 560 drivers/media/pci/intel/ipu3/ipu3-mmu.h

[PATCH v7 02/16] doc-rst: Add Intel IPU3 documentation

2018-10-29 Thread Yong Zhi
From: Rajmohan Mani This patch adds the details about the IPU3 Imaging Unit driver. Change-Id: I560cecf673df2dcc3ec72767cf8077708d649656 Signed-off-by: Rajmohan Mani --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/ipu3.rst | 326 +

[PATCH v7 07/16] intel-ipu3: Implement DMA mapping functions

2018-10-29 Thread Yong Zhi
From: Tomasz Figa This driver uses IOVA space for buffer mapping through IPU3 MMU to transfer data between imaging pipelines and system DDR. Signed-off-by: Tomasz Figa Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-dmamap.c | 270 + drivers/media

[PATCH v7 04/16] intel-ipu3: abi: Add register definitions and enum

2018-10-29 Thread Yong Zhi
Add macros and enums used for IPU3 firmware interface. Signed-off-by: Yong Zhi Signed-off-by: Rajmohan Mani --- drivers/media/pci/intel/ipu3/ipu3-abi.h | 661 1 file changed, 661 insertions(+) create mode 100644 drivers/media/pci/intel/ipu3/ipu3-abi.h diff

[PATCH v7 00/16] Intel IPU3 ImgU patchset

2018-10-29 Thread Yong Zhi
Hi, This series adds support for the Intel IPU3 (Image Processing Unit) ImgU which is essentially a modern memory-to-memory ISP. It implements raw Bayer to YUV image format conversion as well as a large number of other pixel processing algorithms for improving the image quality. Meta data formats

RE: [PATCH v6 12/12] intel-ipu3: Add imgu top level pci device driver

2018-09-24 Thread Zhi, Yong
Hi, Tomasz, > -Original Message- > From: linux-media-ow...@vger.kernel.org [mailto:linux-media- > ow...@vger.kernel.org] On Behalf Of Tomasz Figa > Sent: Tuesday, September 18, 2018 10:23 AM > To: Zhi, Yong > Cc: Linux Media Mailing List ; Sakari Ailus > ; Mani,

RE: [PATCH v6 06/12] intel-ipu3: css: Add support for firmware management

2018-09-21 Thread Zhi, Yong
Hi, Sakari, > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Friday, September 21, 2018 6:52 AM > To: Zhi, Yong > Cc: Tomasz Figa ; Linux Media Mailing List me...@vger.kernel.org>; Mani, Rajmohan ; > Toivonen, Tuukka ; Hu, Je

RE: [PATCH v6 06/12] intel-ipu3: css: Add support for firmware management

2018-09-19 Thread Zhi, Yong
Hi, Tomasz, > -Original Message- > From: linux-media-ow...@vger.kernel.org [mailto:linux-media- > ow...@vger.kernel.org] On Behalf Of Tomasz Figa > Sent: Monday, July 2, 2018 2:05 AM > To: Zhi, Yong > Cc: Linux Media Mailing List ; Sakari Ailus > ; Mani, Rajmohan

RE: [PATCH v6 12/12] intel-ipu3: Add imgu top level pci device driver

2018-09-16 Thread Zhi, Yong
Hi, Tomasz, Thanks for the code review. > -Original Message- > From: linux-media-ow...@vger.kernel.org [mailto:linux-media- > ow...@vger.kernel.org] On Behalf Of Tomasz Figa > Sent: Monday, July 2, 2018 3:08 AM > To: Zhi, Yong > Cc: Linux Media Mailing List ; Sak

RE: [PATCH v6 11/12] intel-ipu3: Add v4l2 driver based on media framework

2018-09-16 Thread Zhi, Yong
Hi, Tomasz, Sorry for the delay in responding to your review. > -Original Message- > From: linux-media-ow...@vger.kernel.org [mailto:linux-media- > ow...@vger.kernel.org] On Behalf Of Tomasz Figa > Sent: Monday, July 2, 2018 2:50 AM > To: Zhi, Yong > Cc: Linux

Re: [PATCH v10 2/2] media: V3s: Add support for Allwinner CSI.

2018-07-25 Thread Yong
Hi Sakari, On Wed, 18 Jul 2018 12:55:14 +0300 Sakari Ailus wrote: > Hi Yong, > > On Thu, Jul 05, 2018 at 03:48:02PM +0800, Yong wrote: > > > > + > > > > +/* > > > > -

RE: [PATCH v6 02/12] intel-ipu3: Add user space API definitions

2018-06-20 Thread Zhi, Yong
Hi, Tomasz, Thank you for the time spent to review this long file. > -Original Message- > From: Tomasz Figa [mailto:tf...@chromium.org] > Sent: Sunday, June 17, 2018 11:09 PM > To: Zhi, Yong > Cc: Linux Media Mailing List ; Sakari Ailus > ; Mani, Rajmohan > ; To

RE: [PATCH v6 04/12] intel-ipu3: Implement DMA mapping functions

2018-06-18 Thread Zhi, Yong
Hi, Tomasz, Thanks for the review. > -Original Message- > From: Tomasz Figa [mailto:tf...@chromium.org] > Sent: Monday, June 18, 2018 12:09 AM > To: Zhi, Yong > Cc: Linux Media Mailing List ; Sakari Ailus > ; Mani, Rajmohan > ; Toivonen, Tuukka > ; Hu, Je

RE: [PATCH v6 03/12] intel-ipu3: mmu: Implement driver

2018-06-18 Thread Zhi, Yong
Hi, Tomasz, Thanks for the code review. > -Original Message- > From: Tomasz Figa [mailto:tf...@chromium.org] > Sent: Sunday, June 17, 2018 11:46 PM > To: Zhi, Yong > Cc: Linux Media Mailing List ; Sakari Ailus > ; Mani, Rajmohan > ; Toivonen, Tuukka > ; Hu, Je

[PATCH v1 0/2] Document Intel IPU3 ImgU driver and uAPI

2018-06-14 Thread Yong Zhi
s have being removed from intel-ipu3.h since v6. This patch set will be merged into the next ImgU driver update. Rajmohan Mani (1): doc-rst: Add Intel IPU3 documentation Yong Zhi (1): v4l: Document Intel IPU3 meta data uAPI Documentation/media/uapi/v4l/meta-formats.rst |1 + .../medi

[PATCH v1 1/2] doc-rst: Add Intel IPU3 documentation

2018-06-14 Thread Yong Zhi
From: Rajmohan Mani This patch adds the details about the IPU3 Imaging Unit driver. Signed-off-by: Rajmohan Mani Signed-off-by: Tian Shu Qiu --- Documentation/media/v4l-drivers/index.rst | 1 + Documentation/media/v4l-drivers/ipu3.rst | 304 ++ 2 files changed,

[PATCH v1 2/2] v4l: Document Intel IPU3 meta data uAPI

2018-06-14 Thread Yong Zhi
These meta formats are used on Intel IPU3 ImgU video queues to carry 3A statistics and ISP pipeline parameters. V4L2_META_FMT_IPU3_3A V4L2_META_FMT_IPU3_PARAMS Signed-off-by: Yong Zhi Signed-off-by: Chao C Li Signed-off-by: Rajmohan Mani --- Documentation/media/uapi/v4l/meta-formats.rst

[PATCH v3] [media] MAINTAINERS: Update entry for Intel IPU3 cio2 driver

2018-05-30 Thread Yong Zhi
This patch adds Bingbu as additional maintainer, and both Tian Shu and Jian Xu as reviewers for IPU3 CIO2 driver. Signed-off-by: Yong Zhi --- Third time's a charm :) MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a38e24a..3dd530e 100644

[PATCH v2] [media] MAINTAINERS: Update entry for Intel IPU3 cio2 driver

2018-05-30 Thread Yong Zhi
This patch adds three more maintainers to the IPU3 CIO2 driver. Signed-off-by: Yong Zhi --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a38e24a..3dd530e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7157,6 +7157,9 @@ F:drivers/dma

[PATCH] [media] MAINTAINERS: Update entry for Intel IPU3 cio2 driver

2018-05-15 Thread Yong Zhi
This patch adds three more maintainers to the IPU3 CIO2 driver. Signed-off-by: Yong Zhi --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 49003f77cedd..309d49a54db8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7150,6 +7150,9 @@ F

[PATCH v10 2/2] media: V3s: Add support for Allwinner CSI.

2018-05-04 Thread Yong Deng
. MIPI-CSI2, ISP's support are not included in this patch. Reviewed-by: Hans Verkuil Reviewed-by: Maxime Ripard Tested-by: Maxime Ripard Signed-off-by: Yong Deng --- MAINTAINERS| 8 + drivers/media/platform/Kconfig | 1 + drivers/

[PATCH v10 1/2] dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI)

2018-05-03 Thread Yong Deng
Add binding documentation for Allwinner V3s CSI. Acked-by: Maxime Ripard Acked-by: Sakari Ailus Reviewed-by: Rob Herring Signed-off-by: Yong Deng --- .../devicetree/bindings/media/sun6i-csi.txt| 59 ++ 1 file changed, 59 insertions(+) create mode 100644

[PATCH v10 0/2] Initial Allwinner V3s CSI Support

2018-05-03 Thread Yong Deng
Frame Size 1280x720: Stride 2560, Field None: OK test MMAP for Format 422P, Frame Size 1280x720: Stride 2560, Field None: OK Total: 54, Succeeded: 54, Failed: 0, Warnings: 0 Yong Deng (2): dt-binding

Re: [PATCH v9 0/2] Initial Allwinner V3s CSI Support

2018-05-03 Thread Yong
Hi Maxime, On Thu, 3 May 2018 19:14:10 +0200 Maxime Ripard wrote: > Hi Yong, > > On Tue, Mar 06, 2018 at 09:51:10AM +0800, Yong Deng wrote: > > This patchset add initial support for Allwinner V3s CSI. > > > > Allwinner V3s SoC features two CSI module. CSI0 is used f

[PATCH] media: intel-ipu3: cio2: Handle IRQs until INT_STS is cleared

2018-04-30 Thread Yong Zhi
. Fix this by handling all pending IRQs before exiting isr, so any abnormal behavior results from very short interrupt status changes is protected. Signed-off-by: Bingbu Cao Signed-off-by: Andy Yeh Signed-off-by: Yong Zhi --- Hi, Sakari, Re-send with correct signed-off-by order. drivers/media

RE: [PATCH v6 12/12] intel-ipu3: Add imgu top level pci device driver

2018-04-26 Thread Zhi, Yong
Hi, Tomasz, Thanks for the review again. > -Original Message- > From: Tomasz Figa [mailto:tf...@chromium.org] > Sent: Thursday, April 26, 2018 12:15 AM > To: Zhi, Yong > Cc: Linux Media Mailing List ; Sakari Ailus > ; Mani, Rajmohan > ; Toivonen, Tuukka > ; Hu,

RE: [PATCH v6 10/12] intel-ipu3: Add css pipeline programming

2018-04-26 Thread Zhi, Yong
Hi, Tomasz, Thanks for the code review. > -Original Message- > From: Tomasz Figa [mailto:tf...@chromium.org] > Sent: Thursday, April 26, 2018 12:12 AM > To: Zhi, Yong > Cc: Linux Media Mailing List ; Sakari Ailus > ; Mani, Rajmohan > ; Toivonen, Tuukka > ; Hu, Je

[PATCH] media: intel-ipu3: cio2: Handle IRQs until INT_STS is cleared

2018-04-25 Thread Yong Zhi
. Fix this by handling all pending IRQs before exiting isr, so any abnormal behavior results from very short interrupt status changes is protected. Signed-off-by: Andy Yeh Signed-off-by: Bingbu Cao Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 32

[RFC PATCH]: intel-ipu3: Add uAPI documentation

2018-04-03 Thread Yong Zhi
reset of the uAPI in intel-ipu3.h. Link to v6 IPU3 ImgU patchset: https://patchwork.kernel.org/patch/10316725/> Signed-off-by: Yong Zhi Signed-off-by: Chao C Li --- Documentation/media/media_uapi.rst |1 + Documentation/media/uapi/intel-ipu3.rst |8 + include/uapi/linux/intel-i

[PATCH v6 11/12] intel-ipu3: Add v4l2 driver based on media framework

2018-03-29 Thread Yong Zhi
Implement video driver that utilizes v4l2, vb2 queue support and media controller APIs. The driver exposes single subdevice and six nodes. Signed-off-by: Yong Zhi Signed-off-by: Ramya Vijaykumar --- drivers/media/pci/intel/ipu3/ipu3-v4l2.c | 1089 ++ 1 file changed

[PATCH v6 05/12] intel-ipu3: css: Add dma buff pool utility functions

2018-03-29 Thread Yong Zhi
The pools are used to store previous parameters set by user with the parameter queue. Due to pipelining, there needs to be multiple sets (up to four) of parameters which are queued in a host-to-sp queue. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-css-pool.c | 131

[PATCH v6 02/12] intel-ipu3: Add user space API definitions

2018-03-29 Thread Yong Zhi
Define the structures and macros to be used by public. Signed-off-by: Yong Zhi Signed-off-by: Rajmohan Mani --- include/uapi/linux/intel-ipu3.h | 1403 +++ 1 file changed, 1403 insertions(+) create mode 100644 include/uapi/linux/intel-ipu3.h diff --git a

[PATCH v6 04/12] intel-ipu3: Implement DMA mapping functions

2018-03-29 Thread Yong Zhi
From: Tomasz Figa This driver uses IOVA space for buffer mapping through IPU3 MMU to transfer data between imaging pipelines and system DDR. Signed-off-by: Tomasz Figa Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-css-pool.h | 36 drivers/media/pci/intel/ipu3/ipu3

[PATCH v6 01/12] v4l: Add Intel IPU3 meta buffer formats

2018-03-29 Thread Yong Zhi
Add IPU3-specific meta formats for parameter processing and 3A statistics: V4L2_META_FMT_IPU3_PARAMS V4L2_META_FMT_IPU3_STAT_3A Signed-off-by: Yong Zhi --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 4 2 files changed, 6 insertions(+) diff

[PATCH v6 03/12] intel-ipu3: mmu: Implement driver

2018-03-29 Thread Yong Zhi
From: Tomasz Figa This driver translates IO virtual address to physical address based on two levels page tables. Signed-off-by: Tomasz Figa Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-mmu.c | 560 drivers/media/pci/intel/ipu3/ipu3-mmu.h

[PATCH v6 06/12] intel-ipu3: css: Add support for firmware management

2018-03-29 Thread Yong Zhi
Introduce functions to load and install ImgU FW blobs. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-abi.h| 1888 drivers/media/pci/intel/ipu3/ipu3-css-fw.c | 261 drivers/media/pci/intel/ipu3/ipu3-css-fw.h | 198 +++ 3 files changed, 2347

[PATCH v6 00/12] Intel IPU3 ImgU patchset

2018-03-29 Thread Yong Zhi
est Cropping: OK (Not Supported) test Composing: OK (Not Supported) test Scaling: OK (Not Supported) Codec ioctls: test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer

[PATCH 08/12] intel-ipu3: css: Compute and program ccs

2018-03-29 Thread Yong Zhi
A collection of routines that are mainly used to calculate the parameters for accelerator cluster. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-css-params.c | 2890 drivers/media/pci/intel/ipu3/ipu3-css-params.h | 25 + drivers/media/pci/intel/ipu3

[PATCH v6 09/12] intel-ipu3: css: Initialize css hardware

2018-03-29 Thread Yong Zhi
This patch implements the functions to initialize and configure IPU3 h/w such as clock, irq and power. Signed-off-by: Yong Zhi Signed-off-by: Tomasz Figa --- drivers/media/pci/intel/ipu3/ipu3-css.c | 537 1 file changed, 537 insertions(+) create mode 100644

[PATCH v6 12/12] intel-ipu3: Add imgu top level pci device driver

2018-03-29 Thread Yong Zhi
This patch adds support for the Intel IPU v3 as found on Skylake and Kaby Lake SoCs. The driver glues v4l2, css(camera sub system) and other pieces together to perform its functions, it also loads the IPU3 firmware binary as part of its initialization. Signed-off-by: Yong Zhi Signed-off-by

[PATCH v6 10/12] intel-ipu3: Add css pipeline programming

2018-03-29 Thread Yong Zhi
This provides helper library to be used by v4l2 level to program imaging pipelines and control the streaming. Signed-off-by: Yong Zhi --- drivers/media/pci/intel/ipu3/ipu3-css.c | 1752 +++ 1 file changed, 1752 insertions(+) diff --git a/drivers/media/pci/intel/ipu3

  1   2   3   4   >