[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240226-dp-live-fmt-v1-0-b78c3f69c9d8@amd.com>
Date: Mon, 26 Feb 2024 20:44:41 -0800
From: Anatoliy Klymenko <anatoliy.klymenko@....com>
To: Laurent Pinchart <laurent.pinchart@...asonboard.com>, Maarten Lankhorst
<maarten.lankhorst@...ux.intel.com>, Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>, David Airlie <airlied@...il.com>,
Daniel Vetter <daniel@...ll.ch>, Michal Simek <michal.simek@....com>,
"Andrzej Hajda" <andrzej.hajda@...el.com>, Neil Armstrong
<neil.armstrong@...aro.org>, Robert Foss <rfoss@...nel.org>, Jonas Karlman
<jonas@...boo.se>, "Jernej Skrabec" <jernej.skrabec@...il.com>
CC: <dri-devel@...ts.freedesktop.org>, <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, Anatoliy Klymenko <anatoliy.klymenko@....com>
Subject: [PATCH 0/4] Setting live video input format for ZynqMP DPSUB
Implement live video input format setting for ZynqMP DPSUB.
ZynqMP DPSUB can operate in 2 modes: DMA-based and live.
In the live mode, DPSUB receives a live video signal from FPGA-based CRTC.
DPSUB acts as a DRM encoder bridge in such a scenario. To properly tune
into the incoming video signal, DPSUB should be programmed with the proper
media bus format. This patch series addresses this task.
Patch 1/4: Set the DPSUB layer mode of operation prior to enabling the
layer. Allows to use layer operational mode before its enablement.
Patch 2/4: Announce supported input media bus formats via
drm_bridge_funcs.atomic_get_input_bus_fmts callback.
Patch 3/4: Program DPSUB live video input format based on selected bus
config in the new atomic bridge state.
Patch 4/4: New optional CRTC atomic helper proposal that will allow CRTC
to participate in DRM bridge chain format negotiation and impose format
restrictions. Incorporate this callback into the DRM bridge format
negotiation process.
Signed-off-by: Anatoliy Klymenko <anatoliy.klymenko@....com>
---
Anatoliy Klymenko (4):
drm: xlnx: zynqmp_dpsub: Set layer mode during creation
drm: xlnx: zynqmp_dpsub: Anounce supported input formats
drm: xlnx: zynqmp_dpsub: Set input live format
drm/atomic-helper: Add select_output_bus_format callback
drivers/gpu/drm/drm_bridge.c | 19 +++++-
drivers/gpu/drm/xlnx/zynqmp_disp.c | 109 +++++++++++++++++++++++++++++--
drivers/gpu/drm/xlnx/zynqmp_disp.h | 25 +++----
drivers/gpu/drm/xlnx/zynqmp_disp_regs.h | 8 +--
drivers/gpu/drm/xlnx/zynqmp_dp.c | 16 +++--
drivers/gpu/drm/xlnx/zynqmp_kms.c | 2 +-
include/drm/drm_modeset_helper_vtables.h | 31 +++++++++
7 files changed, 182 insertions(+), 28 deletions(-)
---
base-commit: bfa4437fd3938ae2e186e7664b2db65bb8775670
change-id: 20240226-dp-live-fmt-6415773b5a68
Best regards,
--
Anatoliy Klymenko <anatoliy.klymenko@....com>
Powered by blists - more mailing lists