From: "Jernej Škrabec" <jernej.skrabec@siol.net>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org,
mripard@kernel.org, wens@csie.org, robh+dt@kernel.org,
mchehab@kernel.org, linux-arm-kernel@lists.infradead.org,
linux-media@vger.kernel.org
Subject: Re: [PATCH v3 5/6] media: sun4i: Add H3 deinterlace driver
Date: Thu, 17 Oct 2019 18:50:42 +0200 [thread overview]
Message-ID: <1811024.Ag6lDGI2hk@jernej-laptop> (raw)
In-Reply-To: <d768b2bc-a942-03a6-253d-4bcc31f1b11e@xs4all.nl>
Dne četrtek, 17. oktober 2019 ob 09:51:28 CEST je Hans Verkuil napisal(a):
> On 10/16/19 9:28 PM, Jernej Skrabec wrote:
> > Allwinner H3 SoC contains deinterlace unit, which has several modes of
> > operation - bypass, weave, bob and mixed (advanced) mode. I don't know
> > how mixed mode works, but according to Allwinner it gives best results,
> > so they use it exclusively. Currently this mode is also hardcoded here.
> >
> > For each interleaved frame queued, this driver produces 2 deinterlaced
> > frames. Deinterlaced frames are based on 2 consequtive output buffers,
> > except for the first 2, where same output buffer is given to peripheral
> > as current and previous.
> >
> > There is no documentation for this core, so register layout and fixed
> > values were taken from BSP driver.
> >
> > I'm not sure if maximum size of the image unit is capable to process is
> > governed by size of "flag" buffers, frequency or it really is some HW
> > limitation. Currently driver can process full HD image in ~15ms (7.5ms
> > for each capture buffer), which allows to process 1920x1080@60i video
> > smoothly in real time.
> >
> > Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
> > ---
> >
> > MAINTAINERS | 7 +
> > drivers/media/platform/sunxi/Kconfig | 1 +
> > drivers/media/platform/sunxi/Makefile | 1 +
> > drivers/media/platform/sunxi/sun8i-di/Kconfig | 11 +
> > .../media/platform/sunxi/sun8i-di/Makefile | 2 +
> > .../media/platform/sunxi/sun8i-di/sun8i-di.c | 1020 +++++++++++++++++
> > .../media/platform/sunxi/sun8i-di/sun8i-di.h | 237 ++++
> > 7 files changed, 1279 insertions(+)
> > create mode 100644 drivers/media/platform/sunxi/sun8i-di/Kconfig
> > create mode 100644 drivers/media/platform/sunxi/sun8i-di/Makefile
> > create mode 100644 drivers/media/platform/sunxi/sun8i-di/sun8i-di.c
> > create mode 100644 drivers/media/platform/sunxi/sun8i-di/sun8i-di.h
> >
> > diff --git a/MAINTAINERS b/MAINTAINERS
> > index c7b48525822a..c375455125fb 100644
> > --- a/MAINTAINERS
> > +++ b/MAINTAINERS
> > @@ -4646,6 +4646,13 @@ M: "Maciej W. Rozycki" <macro@linux-mips.org>
> >
> > S: Maintained
> > F: drivers/net/fddi/defxx.*
> >
> > +DEINTERLACE DRIVERS FOR ALLWINNER H3
> > +M: Jernej Skrabec <jernej.skrabec@siol.net>
> > +L: linux-media@vger.kernel.org
> > +T: git git://linuxtv.org/media_tree.git
> > +S: Maintained
> > +F: drivers/media/platform/sunxi/sun8i-di/
> > +
> >
> > DELL SMBIOS DRIVER
> > M: Pali Rohár <pali.rohar@gmail.com>
> > M: Mario Limonciello <mario.limonciello@dell.com>
> >
> > diff --git a/drivers/media/platform/sunxi/Kconfig
> > b/drivers/media/platform/sunxi/Kconfig index 71808e93ac2e..d7a5621bf327
> > 100644
> > --- a/drivers/media/platform/sunxi/Kconfig
> > +++ b/drivers/media/platform/sunxi/Kconfig
> > @@ -1,2 +1,3 @@
> >
> > source "drivers/media/platform/sunxi/sun4i-csi/Kconfig"
> > source "drivers/media/platform/sunxi/sun6i-csi/Kconfig"
> >
> > +source "drivers/media/platform/sunxi/sun8i-di/Kconfig"
>
> This is a m2m driver, so this belongs in drivers/media/platform/Kconfig in
> the Memory-to-memory section.
>
> > diff --git a/drivers/media/platform/sunxi/Makefile
> > b/drivers/media/platform/sunxi/Makefile index a05127529006..3878cb4efdc2
> > 100644
> > --- a/drivers/media/platform/sunxi/Makefile
> > +++ b/drivers/media/platform/sunxi/Makefile
> > @@ -1,2 +1,3 @@
> >
> > obj-y += sun4i-csi/
> > obj-y += sun6i-csi/
> >
> > +obj-y += sun8i-di/
> > diff --git a/drivers/media/platform/sunxi/sun8i-di/Kconfig
> > b/drivers/media/platform/sunxi/sun8i-di/Kconfig new file mode 100644
> > index 000000000000..dbd77a61e3b3
> > --- /dev/null
> > +++ b/drivers/media/platform/sunxi/sun8i-di/Kconfig
> > @@ -0,0 +1,11 @@
> > +# SPDX-License-Identifier: GPL-2.0-only
> > +config VIDEO_SUN8I_DEINTERLACE
> > + tristate "Allwinner Deinterlace driver"
> > + depends on VIDEO_DEV && VIDEO_V4L2
> > + depends on HAS_DMA
> > + depends on OF
> > + depends on PM
> > + select VIDEOBUF2_DMA_CONTIG
> > + select V4L2_MEM2MEM_DEV
> > + help
> > + Support for the Allwinner Deinterlace unit found on some SoCs.
>
> Shouldn't this depend on ARCH_SUNXI || COMPILE_TEST?
> And also on COMMON_CLK?
Yes to both. Also I don't see a reason why it would depend on HAS_DMA, so I
will remove that.
Best regards,
Jernej
>
> Regards,
>
> Hans
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-10-17 16:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-16 19:28 [PATCH v3 0/6] media: Introduce Allwinner H3 deinterlace driver Jernej Skrabec
2019-10-16 19:28 ` [PATCH v3 1/6] dt-bindings: bus: sunxi: Add H3 MBUS compatible Jernej Skrabec
2019-10-16 19:28 ` [PATCH v3 2/6] clk: sunxi-ng: h3: Export MBUS clock Jernej Skrabec
2019-10-16 19:28 ` [PATCH v3 3/6] ARM: dts: sunxi: h3/h5: Add MBUS controller node Jernej Skrabec
2019-10-16 19:28 ` [PATCH v3 4/6] dt-bindings: media: Add Allwinner H3 Deinterlace binding Jernej Skrabec
2019-10-16 19:28 ` [PATCH v3 5/6] media: sun4i: Add H3 deinterlace driver Jernej Skrabec
2019-10-17 7:51 ` Hans Verkuil
2019-10-17 16:50 ` Jernej Škrabec [this message]
2019-10-17 9:28 ` Maxime Ripard
2019-10-17 16:54 ` Jernej Škrabec
2019-10-16 19:28 ` [PATCH v3 6/6] dts: arm: sun8i: h3: Enable deinterlace unit Jernej Skrabec
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=1811024.Ag6lDGI2hk@jernej-laptop \
--to=jernej.skrabec@siol.net \
--cc=devicetree@vger.kernel.org \
--cc=hverkuil@xs4all.nl \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=mark.rutland@arm.com \
--cc=mchehab@kernel.org \
--cc=mripard@kernel.org \
--cc=robh+dt@kernel.org \
--cc=wens@csie.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