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

[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

[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

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

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

[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

[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

[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

[PATCH] media: intel-ipu3: cio2: fixup off-by-one bug in cio2_vb2_buf_init

2018-01-18 Thread Yong Zhi
ith out-of-bounds access") Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Cao Bing Bu <bingbu@intel.com> --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/pci/intel/ipu3/ipu3-cio

[PATCH 1/2] media: intel-ipu3: cio2: fix a crash with out-of-bounds access

2018-01-03 Thread Yong Zhi
to the valid data length to avoid FBPT sub-entries overflow. Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Cao Bing Bu <bingbu@intel.com> --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/media/pc

[PATCH 2/2] media: intel-ipu3: cio2: fix for wrong vb2buf state warnings

2018-01-03 Thread Yong Zhi
cio2 driver should release buffer with QUEUED state when start_stream op failed, wrong buffer state will cause vb2 core throw a warning. Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Cao Bing Bu <bingbu@intel.com> --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 9

[PATCH v8] intel-ipu3: cio2: fix two warnings in the code

2017-12-15 Thread Yong Zhi
Fix two warnings reported by static analysis tool: ipu3-cio2.c:1899:16: warning: Variable length array is used. In function 'cio2_pci_probe': ipu3-cio2.c:1726:14: warning: variable 'phys' set but not used [-Wunused-but-set-variable] Signed-off-by: Yong Zhi <yong@intel.com> --- Hi,

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

2017-12-01 Thread Yong Zhi
This implements video driver that utilizes v4l2, vb2 queue support and media controller APIs. The driver exposes single subdevice and seven nodes. Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Ramya Vijaykumar <ramya.vijayku...@intel.com> --- drivers/media/pci/intel/ip

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

2017-12-01 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.

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

2017-12-01 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 | 1780 +++ 1 file changed, 1780 insertions(+) diff --git a/d

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

2017-12-01 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 | 3169 drivers/media/pci/intel/ipu3/ipu3-css-params.h | 36 + d

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

2017-12-01 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| 1579 drivers/media/pci/intel/ipu3/ipu3-css-fw.c | 271 + drivers/media/pci/intel/ipu3/ipu3-css-fw.h

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

2017-12-01 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 | 523 1

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

2017-12-01 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 V4L2_META_FMT_IPU3_STAT_DVS Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/v4l2-core/v4l2-ioctl.c | 3 +++ include/uapi/linux/video

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

2017-12-01 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/pci/

[PATCH v5 02/12] intel-ipu3: Add user space ABI definitions

2017-12-01 Thread Yong Zhi
The UAPI header defines the structures and macros to be used by user space. Signed-off-by: Rajmohan Mani <rajmohan.m...@intel.com> Signed-off-by: Yong Zhi <yong@intel.com> --- include/uapi/linux/intel-ipu3.h | 2196 +++ 1 file changed, 219

[PATCH v5 00/12] Intel IPU3 ImgU patchset

2017-12-01 Thread Yong Zhi
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls: test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK Test input 0: Total: 43, Succeeded: 43, Failed: 0, Warnings: 0 Note: Stream test with -f fails as pre-configuration of s

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

2017-12-01 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 v5 03/12] intel-ipu3: mmu: Implement driver

2017-12-01 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/ipu3/Kconfig|

Re: [PATCH v8 3/4] intel-ipu3: cio2: add new MIPI-CSI2 driver

2017-11-09 Thread Yong Zhi
Hi, Sakari, Fixed warnings about memset of pointer array and unsigned int used for 0 comparison reported by static code analysis tool, please squash this to the driver, thanks!! Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 6 +++---

[PATCH v8 1/4] videodev2.h, v4l2-ioctl: add IPU3 raw10 color format

2017-11-08 Thread Yong Zhi
Add IPU3 specific formats: V4L2_PIX_FMT_IPU3_SBGGR10 V4L2_PIX_FMT_IPU3_SGBRG10 V4L2_PIX_FMT_IPU3_SGRBG10 V4L2_PIX_FMT_IPU3_SRGGB10 Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/v4l2-core/v4l2-ioctl.c | 4 include/uapi/linux/video

[PATCH v8 0/4] add IPU3 CIO2 CSI2 driver

2017-11-08 Thread Yong Zhi
orted) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls: test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK Test input 0: Total: 43, Succeeded: 43, Failed: 0, Warnings: 0 Note: Same results with other 3 video nodes.

[PATCH v8 4/4] MAINTAINERS: add entry for Intel IPU3 driver

2017-11-08 Thread Yong Zhi
Add an entry for Intel IPU3 cio2 driver. Signed-off-by: Yong Zhi <yong@intel.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index adbf693..a1ffb73 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6987,6 +6987,14 @@ R:

[PATCH v8 2/4] doc-rst: add IPU3 raw10 bayer pixel format definitions

2017-11-08 Thread Yong Zhi
The formats added by this patch are: V4L2_PIX_FMT_IPU3_SBGGR10 V4L2_PIX_FMT_IPU3_SGBRG10 V4L2_PIX_FMT_IPU3_SGRBG10 V4L2_PIX_FMT_IPU3_SRGGB10 Signed-off-by: Hyungwoo Yang <hyungwoo.y...@intel.com> Signed-off-by: Yong Zhi <yong@intel.com> --- Documentation/me

[PATCH v8 3/4] intel-ipu3: cio2: add new MIPI-CSI2 driver

2017-11-08 Thread Yong Zhi
This patch adds CIO2 CSI-2 device driver for Intel's IPU3 camera sub-system support. Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Hyungwoo Yang <hyungwoo.y...@intel.com> Signed-off-by: Rajmohan Mani <rajmohan.m...@intel.com> Signed-off-by: Vijaykumar Ra

[PATCH v7 3/3] intel-ipu3: cio2: Add new MIPI-CSI2 driver

2017-11-02 Thread Yong Zhi
This patch adds CIO2 CSI-2 device driver for Intel's IPU3 camera sub-system support. Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Hyungwoo Yang <hyungwoo.y...@intel.com> Signed-off-by: Rajmohan Mani <rajmohan.m...@intel.com> Signed-off-by: Vijaykumar Ra

[PATCH v7 2/3] doc-rst: add IPU3 raw10 bayer pixel format definitions

2017-11-02 Thread Yong Zhi
The formats added by this patch are: V4L2_PIX_FMT_IPU3_SBGGR10 V4L2_PIX_FMT_IPU3_SGBRG10 V4L2_PIX_FMT_IPU3_SGRBG10 V4L2_PIX_FMT_IPU3_SRGGB10 Signed-off-by: Hyungwoo Yang <hyungwoo.y...@intel.com> Signed-off-by: Yong Zhi <yong@intel.com> --- Documentation/me

[PATCH v7 1/3] videodev2.h, v4l2-ioctl: add IPU3 raw10 color format

2017-11-02 Thread Yong Zhi
Add IPU3 specific formats: V4L2_PIX_FMT_IPU3_SBGGR10 V4L2_PIX_FMT_IPU3_SGBRG10 V4L2_PIX_FMT_IPU3_SGRBG10 V4L2_PIX_FMT_IPU3_SRGGB10 Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/v4l2-core/v4l2-ioctl.c | 4 include/uapi/linux/video

[PATCH v7 0/3] add IPU3 CIO2 CSI2 driver

2017-11-02 Thread Yong Zhi
: Same results with other 3 video nodes. Running v4l2_compliance test with -f option will fail, we can only run stream test with the help of media controller to link, configure and enable the sub-dev/pads first. Yong Zhi (3): videodev2.h, v4l2-ioctl: add IPU3 raw10 color format doc-rst: a

[PATCH v6 3/3] intel-ipu3: cio2: Add new MIPI-CSI2 driver

2017-10-25 Thread Yong Zhi
This patch adds CIO2 CSI-2 device driver for Intel's IPU3 camera sub-system support. Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Hyungwoo Yang <hyungwoo.y...@intel.com> Signed-off-by: Rajmohan Mani <rajmohan.m...@intel.com> Signed-off-by: Vijaykumar Ra

[PATCH v6 2/3] doc-rst: add IPU3 raw10 bayer pixel format definitions

2017-10-25 Thread Yong Zhi
The formats added by this patch are: V4L2_PIX_FMT_IPU3_SBGGR10 V4L2_PIX_FMT_IPU3_SGBRG10 V4L2_PIX_FMT_IPU3_SGRBG10 V4L2_PIX_FMT_IPU3_SRGGB10 Signed-off-by: Hyungwoo Yang <hyungwoo.y...@intel.com> Signed-off-by: Yong Zhi <yong@intel.com> --- Documentation/me

[PATCH v6 1/3] videodev2.h, v4l2-ioctl: add IPU3 raw10 color format

2017-10-25 Thread Yong Zhi
Add IPU3 specific formats: V4L2_PIX_FMT_IPU3_SBGGR10 V4L2_PIX_FMT_IPU3_SGBRG10 V4L2_PIX_FMT_IPU3_SGRBG10 V4L2_PIX_FMT_IPU3_SRGGB10 Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/v4l2-core/v4l2-ioctl.c | 4 include/uapi/linux/video

[PATCH v6 0/3] add IPU3 CIO2 CSI2 driver

2017-10-25 Thread Yong Zhi
ted) Buffer ioctls: test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK Test input 0: Total: 43, Succeeded: 43, Failed: 0, Warnings: 0 Note: Same results with other 3 video nodes. Running v4l2_compliance test with -f option will fail,

[PATCH v4 12/12] intel-ipu3: imgu top level pci device

2017-10-17 Thread Yong Zhi
This patch adds support for the Intel IPU v3 as found on Skylake and Kaby Lake SoCs. The driver has a dependency on the firmware binary to function properly. Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Tomasz Figa <tf...@chromium.org> --- drivers/media/pci/intel/

[PATCH v4 09/12] intel-ipu3: css hardware setup

2017-10-17 Thread Yong Zhi
The driver code that handles hw programming for clock, irq and power etc. Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Tomasz Figa <tf...@chromium.org> --- drivers/media/pci/intel/ipu3/ipu3-css.c | 519 drivers/media/pci/intel/ipu3/ipu3

[PATCH v4 06/12] intel-ipu3: css: imgu dma buff pool

2017-10-17 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> Signed-off-by: Tomasz Figa <tf...@chr

[PATCH v4 07/12] intel-ipu3: css: firmware management

2017-10-17 Thread Yong Zhi
Functions to load and install imgu FW blobs Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Tomasz Figa <tf...@chromium.org> --- drivers/media/pci/intel/ipu3/ipu3-abi.h| 1579 drivers/media/pci/intel/ipu3/ipu3-css-fw.c | 270 + drive

[PATCH v4 10/12] intel-ipu3: css pipeline

2017-10-17 Thread Yong Zhi
Add css pipeline and v4l code. Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/pci/intel/ipu3/ipu3-css.c | 1761 ++- drivers/media/pci/intel/ipu3/ipu3-css.h | 89 ++ 2 files changed, 1849 insertions(+), 1 deletion(-) diff --git a/drivers/med

[PATCH v4 11/12] intel-ipu3: Add imgu v4l2 driver

2017-10-17 Thread Yong Zhi
ipu3 imgu video device based on v4l2, vb2 and media controller framework. Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Ramya Vijaykumar <ramya.vijayku...@intel.com> --- drivers/media/pci/intel/ipu3/ipu3-v4l2.c | 1150 ++ 1 file changed, 115

[PATCH v4 08/12] intel-ipu3: params: compute and program ccs

2017-10-17 Thread Yong Zhi
A collection of routines that are mainly responsible to calculate the acc parameters. Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Chiranjeevi Rapolu <chiranjeevi.rap...@intel.com> --- drivers/media/pci/intel/ipu3/ipu3-css-params.c | 3161 d

[PATCH v4 04/12] intel-ipu3: Add user space ABI definitions

2017-10-17 Thread Yong Zhi
The UAPI header defines the structures and macros to be used by user space. Signed-off-by: Rajmohan Mani <rajmohan.m...@intel.com> Signed-off-by: Yong Zhi <yong@intel.com> --- include/uapi/linux/intel-ipu3.h | 2199 +++ 1 file changed, 219

[PATCH v4 02/12] intel-ipu3: Add mmu driver

2017-10-17 Thread Yong Zhi
ernel.org/patch/9825939/> Signed-off-by: Tomasz Figa <tf...@chromium.org> Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/pci/intel/ipu3/Kconfig| 9 + drivers/media/pci/intel/ipu3/Makefile | 15 + drivers/media/pci/int

[PATCH v4 03/12] intel-ipu3: Add IOMMU based dmamap support

2017-10-17 Thread Yong Zhi
From: Tomasz Figa <tf...@chromium.org> This patch adds driver to support IPU3-specific MMU-aware memory alloc/free and sg mapping functions. Signed-off-by: Tomasz Figa <tf...@chromium.org> Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/pci/intel/ipu3/K

[PATCH v4 01/12] videodev2.h, v4l2-ioctl: add IPU3 meta buffer format

2017-10-17 Thread Yong Zhi
Add the IPU3 specific processing parameter format V4L2_META_FMT_IPU3_PARAMS and metadata formats for 3A and other statistics: V4L2_META_FMT_IPU3_PARAMS V4L2_META_FMT_IPU3_STAT_3A V4L2_META_FMT_IPU3_STAT_DVS V4L2_META_FMT_IPU3_STAT_LACE Signed-off-by: Yong Zhi <yong@intel.

[PATCH v4 00/12] Intel IPU3 ImgU patchset

2017-10-17 Thread Yong Zhi
nge 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 Tomasz Figa (2): intel-ipu3: Add mmu driver intel-ipu3: Add IOMMU based dmamap support Yong Zhi

[PATCH v5 0/3] [media] add IPU3 CIO2 CSI2 driver

2017-10-06 Thread Yong Zhi
BUF: OK Test input 0: Total: 43, Succeeded: 43, Failed: 0, Warnings: 0 Note: Running v4l2_compliance test with -f option will fail, we can only run stream test with the help of media controller to link, configure and enable the sub-dev/pads first. Yong Zhi (3): videodev2.h, v4l2-ioctl: ad

[PATCH v5 1/3] videodev2.h, v4l2-ioctl: add IPU3 raw10 color format

2017-10-06 Thread Yong Zhi
Add IPU3 specific formats: V4L2_PIX_FMT_IPU3_SBGGR10 V4L2_PIX_FMT_IPU3_SGBRG10 V4L2_PIX_FMT_IPU3_SGRBG10 V4L2_PIX_FMT_IPU3_SRGGB10 Signed-off-by: Yong Zhi <yong@intel.com> --- drivers/media/v4l2-core/v4l2-ioctl.c | 4 include/uapi/linux/video

[PATCH v5 3/3] intel-ipu3: cio2: Add new MIPI-CSI2 driver

2017-10-06 Thread Yong Zhi
This patch adds CIO2 CSI-2 device driver for Intel's IPU3 camera sub-system support. Signed-off-by: Yong Zhi <yong@intel.com> Signed-off-by: Hyungwoo Yang <hyungwoo.y...@intel.com> Signed-off-by: Rajmohan Mani <rajmohan.m...@intel.com> Signed-off-by: Vijaykumar Ra

  1   2   >