[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

[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
ersion 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): media: staging/intel-ipu3: Add

[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 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 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 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

[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 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

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 <yong@intel.com> --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 49003f77cedd..309d49a54db8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

[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 <hans.verk...@cisco.com> Reviewed-by: Maxime Ripard <maxime.rip...@bootlin.com> Tested-by: Maxime Ripard <maxime.rip...@bootlin.com> Signed-off-by: Yong Deng <yong.d...@magewell.

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

2018-05-04 Thread Yong Deng
Add binding documentation for Allwinner V3s CSI. Acked-by: Maxime Ripard <maxime.rip...@bootlin.com> Acked-by: Sakari Ailus <sakari.ai...@linux.intel.com> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Yong Deng <yong.d...@magewell.com> --- .../devicetree/bind

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

2018-05-04 Thread Yong Deng
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-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI) media

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 <maxime.rip...@bootlin.com> 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 feat

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

2018-04-30 Thread Yong Zhi
ts new interrupts from coming. 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 <bingbu@intel.com> Signed-off-by: Andy Yeh <andy@intel.com> Signed-off-

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 <yong@intel.com> > Cc: Linux Media Mailing List <linux-media@vger.kernel.org>

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 <yong@intel.com> > Cc: Linux Media Mailing List <linux-media@vger.kernel.org>

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

2018-04-25 Thread Yong Zhi
ts new interrupts from coming. 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 <andy@intel.com> Signed-off-by: Bingbu Cao <bingbu@intel.com> Signed-off-

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

2018-04-03 Thread Yong Zhi
of reset of the uAPI in intel-ipu3.h. Link to v6 IPU3 ImgU patchset: <URL:https://patchwork.kernel.org/patch/10316725/> Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Chao C Li <chao.c...@intel.com> --- Documentation/media/media_uapi.rst |1 + Documentatio

[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 <yong@intel.com> Signed-off-by: Ramya Vijaykumar <ramya.vijayku...@intel.com> --- drivers/media/pci/intel/ipu3/ipu3-v

[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 <yong@intel.com> --- drivers/media/pci/intel/ipu3/ip

[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 <yong@intel.com> Signed-off-by: Rajmohan Mani <rajmohan.m...@intel.com> --- include/uapi/linux/intel-ipu3.h | 1403 +++ 1 file changed, 1403 insertions(+) create

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

2018-03-29 Thread Yong Zhi
From: Tomasz Figa <tf...@chromium.org> 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 <tf...@chromium.org> Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/p

[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 <yong@intel.com> --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 4 2 files chan

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

2018-03-29 Thread Yong Zhi
From: Tomasz Figa <tf...@chromium.org> This driver translates IO virtual address to physical address based on two levels page tables. Signed-off-by: Tomasz Figa <tf...@chromium.org> Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/pci/intel/ipu

[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 <yong@intel.com> --- 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

[PATCH v6 00/12] Intel IPU3 ImgU patchset

2018-03-29 Thread Yong Zhi
est VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls: test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK Total: 353, Succeeded: 353, Failed: 0, Warnings: 0 Note: v4l2-compliance stream test was not per

[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 <yong@intel.com> --- drivers/media/pci/intel/ipu3/ipu3-css-params.c | 2890 drivers/media/pci/intel/ipu3/ipu3-css-params.h | 25 + d

[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 <yong@intel.com> --- drivers/media/pci/intel/ipu3/ipu3-css.c | 1752 +++ 1 file changed, 1752 insertions(+) diff --git a/d

[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 <yong@intel.com> Signed-off-by: Tomasz Figa <tf...@chromium.org> --- drivers/media/pci/intel/ipu3/ipu3-css.c | 537 1

[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 <yong@intel.

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

2018-03-28 Thread Yong
Hi, On Wed, 28 Mar 2018 16:29:47 -0700 Martin Kelly <mke...@xevo.com> wrote: > On 03/05/2018 05:51 PM, Yong Deng wrote: > > This patchset add initial support for Allwinner V3s CSI. > > > > Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 >

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

2018-03-08 Thread Yong
Hi, On Tue, 6 Mar 2018 17:14:18 +0200 Sakari Ailus <sakari.ai...@linux.intel.com> wrote: > Hi Yong, > > Thanks for the patchset; please see my comments below. > > On Tue, Mar 06, 2018 at 10:16:02AM +0800, Yong Deng wrote: > > Allwinner V3s SoC features two CSI module

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

2018-03-05 Thread Yong Deng
. MIPI-CSI2, ISP's support are not included in this patch. Reviewed-by: Maxime Ripard <maxime.rip...@bootlin.com> Tested-by: Maxime Ripard <maxime.rip...@bootlin.com> Signed-off-by: Yong Deng <yong.d...@magewell.com> --- MAINTAINERS| 8 + driv

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

2018-03-05 Thread Yong Deng
Add binding documentation for Allwinner V3s CSI. Acked-by: Maxime Ripard <maxime.rip...@bootlin.com> Acked-by: Sakari Ailus <sakari.ai...@linux.intel.com> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Yong Deng <yong.d...@magewell.com> --- .../devicetree/bind

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

2018-03-05 Thread Yong Deng
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-bindings

Re: [PATCH 0/7] media: sun6i: Various fixes and improvements

2018-03-05 Thread Yong
Hi Maxime, On Mon, 5 Mar 2018 10:35:27 +0100 Maxime Ripard <maxime.rip...@bootlin.com> wrote: > Hi Yong, > > Here are a bunch of patches I came up with after testing your last > (v8) version of the CSI patches. > > There's some improvements (patches 1 and 7) and fixes

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

2018-02-27 Thread Yong
On Tue, 27 Feb 2018 09:20:39 +0100 Philipp Zabel <p.za...@pengutronix.de> wrote: > On Tue, 2018-02-27 at 10:07 +0800, Yong Deng wrote: > > Add binding documentation for Allwinner V3s CSI. > > > > Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> >

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

2018-02-26 Thread Yong Deng
. MIPI-CSI2, ISP's support are not included in this patch. Tested-by: Maxime Ripard <maxime.rip...@free-electrons.com> Signed-off-by: Yong Deng <yong.d...@magewell.com> --- MAINTAINERS| 8 + drivers/media/platform/Kconfig |

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

2018-02-26 Thread Yong Deng
Add binding documentation for Allwinner V3s CSI. Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Sakari Ailus <sakari.ai...@linux.intel.com> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Yong Deng <yong.d...@magewell.com> --- .../devicet

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

2018-02-26 Thread Yong Deng
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-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI) media: V3s: Add support

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

2018-02-26 Thread Yong
Hi, On Mon, 26 Feb 2018 12:06:37 +0100 Hans Verkuil <hverk...@xs4all.nl> wrote: > Hi all, > > On 01/30/2018 03:48 AM, Yong wrote: > > Hi, > > > > On Mon, 29 Jan 2018 13:49:14 -0800 > > Randy Dunlap <rdun...@infradead.org> wrote: >

[PATCH] media: intel-ipu3: cio2: Use SPDX license headers

2018-02-16 Thread Yong Zhi
Adopt SPDX license headers for ipu3 cio2 driver. Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 12 ++-- drivers/media/pci/intel/ipu3/ipu3-cio2.h | 14 ++ 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/d

RE: [PATCH] media: intel-ipu3: cio2: Use SPDX license headers

2018-02-15 Thread Zhi, Yong
Hi, Sakari, Sorry for the late response, somehow, I missed this email in my Inbox. > -Original Message- > From: linux-media-ow...@vger.kernel.org [mailto:linux-media- > ow...@vger.kernel.org] On Behalf Of Sakari Ailus > Sent: Wednesday, February 7, 2018 2:36 PM > To:

[PATCH] media: intel-ipu3: cio2: Disable and sync irq before stream off

2018-02-08 Thread Yong Zhi
This is to avoid pending interrupts to be handled during stream off, in which case, the ready buffer will be removed from buffer list, thus not all buffers can be returned to VB2 as expected. Disable CIO2 irq at cio2_hw_exit() so no new interrupts are generated. Signed-off-by: Yong Zhi <y

RE: [PATCH] media: intel-ipu3: cio2: Synchronize irqs at stop_streaming

2018-02-08 Thread Zhi, Yong
Hi, Sakari, > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@iki.fi] > Sent: Wednesday, February 7, 2018 11:38 PM > To: Zhi, Yong <yong@intel.com> > Cc: linux-media@vger.kernel.org; sakari.ai...@linux.intel.com; > tf...@chromium.org; Qiu, Tian Shu

[PATCH] media: intel-ipu3: cio2: Synchronize irqs at stop_streaming

2018-02-07 Thread Yong Zhi
This is to avoid pending interrupts to be handled during stream off, in which case, the ready buffer will be removed from buffer list, thus not all buffers can be returned to VB2 as expected. Disable CIO2 irq at cio2_hw_exit() so no new interrupts are generated. Signed-off-by: Yong Zhi <y

[PATCH] media: intel-ipu3: cio2: Use SPDX license headers

2018-02-05 Thread Yong Zhi
Adopt SPDX license headers and update year to 2018. Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 12 ++-- drivers/media/pci/intel/ipu3/ipu3-cio2.h | 14 ++ 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/d

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

2018-01-29 Thread Yong
Hi, On Mon, 29 Jan 2018 13:49:14 -0800 Randy Dunlap <rdun...@infradead.org> wrote: > On 01/29/2018 01:21 AM, Yong Deng wrote: > > Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 > > interface and CSI1 is used for parallel interface. This is not > &

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

2018-01-29 Thread Yong Deng
. MIPI-CSI2, ISP's support are not included in this patch. Tested-by: Maxime Ripard <maxime.rip...@free-electrons.com> Signed-off-by: Yong Deng <yong.d...@magewell.com> --- MAINTAINERS| 8 + drivers/media/platform/Kconfig |

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

2018-01-29 Thread Yong Deng
Add binding documentation for Allwinner V3s CSI. Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Yong Deng <yong.d...@magewell.com> --- .../devicetree/bindings/media/sun6i-csi.txt| 59 ++ 1 file changed, 59 insertions(+) create mode 100644 D

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

2018-01-29 Thread Yong Deng
: Stride 2560, Field None: OK Total: 54, Succeeded: 54, Failed: 0, Warnings: 0 Yong Deng (2): dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI) media: V3s: Add support for Allwinner CSI. .../devicetree/bindings/media/sun6i-csi.txt

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

2018-01-27 Thread Yong
Hi, On Sat, 27 Jan 2018 17:14:26 +0100 Linus Walleij <linus.wall...@linaro.org> wrote: > On Tue, Jan 23, 2018 at 9:18 AM, Yong Deng <yong.d...@magewell.com> wrote: > > > Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 > > interface and CSI1

Re: [linux-sunxi] Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-27 Thread Yong
Hi Maxime, On Fri, 26 Jan 2018 09:10:00 +0100 Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Fri, Jan 26, 2018 at 11:00:41AM +0800, Yong wrote: > > Hi Maxime, > > > > On Fri, 26 Jan 2018 09:46:58 +0800 > > Yong <yong.d...@magewell.com> wrote

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

2018-01-25 Thread Yong
Hi Maxime, On Fri, 26 Jan 2018 09:46:58 +0800 Yong <yong.d...@magewell.com> wrote: > Hi Maxime, > > Do you have any experience in solving this problem? > It seems the PHYS_OFFSET maybe undeclared when the ARCH is not arm. Got it. Should I add 'depends on ARM' in Kconfig? &

  1   2   3   >