From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Maxime Ripard <mripard@kernel.org>
Cc: Anatoliy Klymenko <anatoliy.klymenko@amd.com>,
maarten.lankhorst@linux.intel.com, tzimmermann@suse.de,
airlied@gmail.com, daniel@ffwll.ch, michal.simek@amd.com,
dri-devel@lists.freedesktop.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/4] Fixing live video input in ZynqMP DPSUB
Date: Wed, 17 Jan 2024 16:23:43 +0200 [thread overview]
Message-ID: <20240117142343.GD17920@pendragon.ideasonboard.com> (raw)
In-Reply-To: <6jhwss2wego6yoo5mwmphwawhsj5bbj62gwrzcpapoixwkrkli@g4fbxdooopby>
On Mon, Jan 15, 2024 at 09:28:39AM +0100, Maxime Ripard wrote:
> On Fri, Jan 12, 2024 at 03:42:18PM -0800, Anatoliy Klymenko wrote:
> > Patches 1/4,2/4,3/4 are minor fixes.
> >
> > DPSUB requires input live video format to be configured.
> > Patch 4/4: The DP Subsystem requires the input live video format to be
> > configured. In this patch we are assuming that the CRTC's bus format is fixed
> > and comes from the device tree. This is a proposed solution, as there are no api
> > to query CRTC output bus format.
> >
> > Is this a good approach to go with?
>
> I guess you would need to expand a bit on what "live video input" is? Is
> it some kind of mechanism to bypass memory and take your pixels straight
> from a FIFO from another device, or something else?
Yes and no.
The DPSUB integrates DMA engines, a blending engine (two planes), and a
DP encoder. The dpsub driver supports all of this, and creates a DRM
device. The DP encoder hardware always takes its input data from the
output of the blending engine.
The blending engine can optionally take input data from a bus connected
to the FPGA fabric, instead of taking it from the DPSUB internal DMA
engines. When operating in that mode, the dpsub driver exposes the DP
encoder as a bridge, and internally programs the blending engine to
disable blending. Typically, the FPGA fabric will then contain a CRTC of
some sort, with a driver that will acquire the DP encoder bridge as
usually done.
In this mode of operation, it is typical for the IP cores in FPGA fabric
to be synthesized with a fixed format (as that saves resources), while
the DPSUB supports multiple input formats. Bridge drivers in the
upstream kernel work the other way around, with the bridge hardware
supporting a limited set of formats, and the CRTC then being programmed
with whatever the bridges chain needs. Here, the negotiation needs to go
the other way around, as the CRTC is the limiting factor, not the
bridge.
Is this explanation clear ?
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2024-01-17 14:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-12 23:42 Anatoliy Klymenko
2024-01-12 23:42 ` [PATCH 1/4] drm: xlnx: zynqmp_dpsub: Make drm bridge discoverable Anatoliy Klymenko
2024-01-17 14:06 ` Tomi Valkeinen
2024-01-17 14:24 ` Laurent Pinchart
2024-01-12 23:42 ` [PATCH 2/4] drm: xlnx: zynqmp_dpsub: Fix timing for live mode Anatoliy Klymenko
2024-01-17 14:11 ` Tomi Valkeinen
2024-01-12 23:42 ` [PATCH 3/4] drm: xlnx: zynqmp_dpsub: Don't generate vblank in " Anatoliy Klymenko
2024-01-17 14:20 ` Tomi Valkeinen
2024-01-12 23:42 ` [PATCH 4/4] drm: xlnx: zynqmp_dpsub: Set live video in format Anatoliy Klymenko
2024-01-17 15:32 ` Tomi Valkeinen
2024-01-15 8:28 ` [PATCH 0/4] Fixing live video input in ZynqMP DPSUB Maxime Ripard
2024-01-17 14:23 ` Laurent Pinchart [this message]
2024-01-26 12:26 ` Maxime Ripard
2024-01-26 23:18 ` Klymenko, Anatoliy
2024-02-01 17:01 ` Maxime Ripard
2024-02-04 9:56 ` Laurent Pinchart
2024-02-09 15:41 ` Maxime Ripard
[not found] <mailman.1627.1705504032.2418.dri-devel@lists.freedesktop.org>
2024-01-19 5:49 ` Klymenko, Anatoliy
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=20240117142343.GD17920@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=anatoliy.klymenko@amd.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=michal.simek@amd.com \
--cc=mripard@kernel.org \
--cc=tzimmermann@suse.de \
/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
all inboxes | Powered by JetHome®