From: Hans Verkuil <hverkuil-cisco@xs4all.nl>
To: Ming Qian <ming.qian@nxp.com>,
mchehab@kernel.org, shawnguo@kernel.org, robh+dt@kernel.org,
s.hauer@pengutronix.de
Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com,
aisheng.dong@nxp.com, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v13 03/13] media: amphion: add amphion vpu device driver
Date: Thu, 2 Dec 2021 10:44:43 +0100 [thread overview]
Message-ID: <ea6ed8cc-7f45-d7a6-8169-2b0c726ea3a3@xs4all.nl> (raw)
In-Reply-To: <b2219ccda94dd3149c6fa5bd9d5eb77084666ce4.1638263914.git.ming.qian@nxp.com>
On 30/11/2021 10:48, Ming Qian wrote:
> The amphion vpu codec ip contains encoder and decoder.
> Windsor is the encoder, it supports to encode H.264.
> Malone is the decoder, it features a powerful
> video processing unit able to decode many foramts,
foramts -> formats
> such as H.264, HEVC, and other foramts.
ditto
>
> This Driver is for this IP that is based on the v4l2 mem2mem framework.
>
> Supported SoCs are: IMX8QXP, IMX8QM
>
> Signed-off-by: Ming Qian <ming.qian@nxp.com>
> Signed-off-by: Shijie Qin <shijie.qin@nxp.com>
> Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
> Reported-by: kernel test robot <lkp@intel.com>
> ---
> arch/arm64/configs/defconfig | 1 +
> drivers/media/platform/Kconfig | 19 ++
> drivers/media/platform/Makefile | 2 +
> drivers/media/platform/amphion/Makefile | 20 ++
> drivers/media/platform/amphion/vpu.h | 357 +++++++++++++++++++++
> drivers/media/platform/amphion/vpu_defs.h | 186 +++++++++++
> drivers/media/platform/amphion/vpu_drv.c | 265 +++++++++++++++
> drivers/media/platform/amphion/vpu_imx8q.c | 271 ++++++++++++++++
> drivers/media/platform/amphion/vpu_imx8q.h | 116 +++++++
> 9 files changed, 1237 insertions(+)
> create mode 100644 drivers/media/platform/amphion/Makefile
> create mode 100644 drivers/media/platform/amphion/vpu.h
> create mode 100644 drivers/media/platform/amphion/vpu_defs.h
> create mode 100644 drivers/media/platform/amphion/vpu_drv.c
> create mode 100644 drivers/media/platform/amphion/vpu_imx8q.c
> create mode 100644 drivers/media/platform/amphion/vpu_imx8q.h
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index f2e2b9bdd702..cc3633112f3f 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -657,6 +657,7 @@ CONFIG_V4L_PLATFORM_DRIVERS=y
> CONFIG_VIDEO_RCAR_CSI2=m
> CONFIG_VIDEO_RCAR_VIN=m
> CONFIG_VIDEO_SUN6I_CSI=m
> +CONFIG_VIDEO_AMPHION_VPU=m
> CONFIG_V4L_MEM2MEM_DRIVERS=y
> CONFIG_VIDEO_SAMSUNG_S5P_JPEG=m
> CONFIG_VIDEO_SAMSUNG_S5P_MFC=m
> diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
> index 9fbdba0fd1e7..7d4a8cd52a9e 100644
> --- a/drivers/media/platform/Kconfig
> +++ b/drivers/media/platform/Kconfig
> @@ -216,6 +216,25 @@ config VIDEO_RCAR_ISP
> To compile this driver as a module, choose M here: the
> module will be called rcar-isp.
>
> +config VIDEO_AMPHION_VPU
> + tristate "Amphion VPU(Video Processing Unit) Codec IP"
Add space before (
> + depends on ARCH_MXC
Add: || COMPILE_TEST
It should always be possible to compile test drivers, even on other architectures.
> + depends on MEDIA_SUPPORT
> + depends on VIDEO_DEV
> + depends on VIDEO_V4L2
> + select MEDIA_CONTROLLER
> + select V4L2_MEM2MEM_DEV
> + select VIDEOBUF2_DMA_CONTIG
> + select VIDEOBUF2_VMALLOC
> + help
> + Amphion VPU Codec IP contains two parts: Windsor and Malone.
> + Windsor is encoder that supports H.264, and Malone is decoder
> + that supports H.264, HEVC, and other video formats.
> + This is a V4L2 driver for NXP MXC 8Q video accelerator hardware.
> + It accelerates encoding and decoding operations on
> + various NXP SoCs.
> + To compile this driver as a module choose m here.
> +
> endif # V4L_PLATFORM_DRIVERS
>
> menuconfig V4L_MEM2MEM_DRIVERS
Regards,
Hans
next prev parent reply other threads:[~2021-12-02 9:44 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-30 9:48 [PATCH v13 00/13] amphion video decoder/encoder driver Ming Qian
2021-11-30 9:48 ` [PATCH v13 01/13] dt-bindings: media: amphion: add amphion video codec bindings Ming Qian
2021-11-30 9:48 ` [PATCH v13 02/13] media:Add nv12mt_8l128 and nv12mt_10be_8l128 video format Ming Qian
2021-12-02 9:39 ` Hans Verkuil
2021-12-02 10:02 ` [EXT] " Ming Qian
2021-11-30 9:48 ` [PATCH v13 03/13] media: amphion: add amphion vpu device driver Ming Qian
2021-12-02 9:44 ` Hans Verkuil [this message]
2021-12-02 10:03 ` [EXT] " Ming Qian
2021-11-30 9:48 ` [PATCH v13 04/13] media: amphion: add vpu core driver Ming Qian
2021-12-02 9:04 ` Hans Verkuil
2021-12-02 9:13 ` [EXT] " Ming Qian
2021-12-02 9:24 ` Ming Qian
2021-12-02 9:54 ` Hans Verkuil
2021-12-02 10:07 ` [EXT] " Ming Qian
2021-11-30 9:48 ` [PATCH v13 05/13] media: amphion: implement vpu core communication based on mailbox Ming Qian
2021-11-30 9:48 ` [PATCH v13 06/13] media: amphion: add vpu v4l2 m2m support Ming Qian
2021-12-02 10:29 ` Hans Verkuil
2021-12-03 1:54 ` [EXT] " Ming Qian
2021-12-03 4:48 ` Nicolas Dufresne
2021-11-30 9:48 ` [PATCH v13 07/13] media: amphion: add v4l2 m2m vpu encoder stateful driver Ming Qian
2021-12-02 10:41 ` Hans Verkuil
2021-11-30 9:48 ` [PATCH v13 08/13] media: amphion: add v4l2 m2m vpu decoder " Ming Qian
2021-12-03 4:55 ` Nicolas Dufresne
2021-12-03 5:42 ` [EXT] " Ming Qian
2021-12-03 6:01 ` Ming Qian
2021-12-03 15:09 ` Nicolas Dufresne
2021-12-04 2:39 ` Ming Qian
2021-11-30 9:48 ` [PATCH v13 09/13] media: amphion: implement windsor encoder rpc interface Ming Qian
2021-11-30 9:48 ` [PATCH v13 10/13] media: amphion: implement malone decoder " Ming Qian
2021-11-30 9:48 ` [PATCH v13 11/13] ARM64: dts: freescale: imx8q: add imx vpu codec entries Ming Qian
2021-11-30 9:48 ` [PATCH v13 12/13] firmware: imx: scu-pd: imx8q: add vpu mu resources Ming Qian
2021-11-30 9:48 ` [PATCH v13 13/13] MAINTAINERS: add AMPHION VPU CODEC V4L2 driver entry Ming Qian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ea6ed8cc-7f45-d7a6-8169-2b0c726ea3a3@xs4all.nl \
--to=hverkuil-cisco@xs4all.nl \
--cc=aisheng.dong@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=ming.qian@nxp.com \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).