Skip to content

drm: Add support for bus-format negotiation

Neil Armstrong dri-devel linux-devicetree 2 versions – Applied

Status from this message: Applied to drm-misc-next with slight change in patch 1 and doc fix in patch 4

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 6 repliesApplied
  2. v54 patches 7 repliesSuperseded

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/4drm/bridge: Add a drm_bridge_state objectdrivers/gpu/drm/drm_atomic.c drivers/gpu/drm/drm_atomic_helper.c drivers/gpu/drm/drm_bridge.c +2 more+309 -61 reply
2/4drm/bridge: Patch atomic hooks to take a drm_bridge_statedrivers/gpu/drm/bridge/analogix/analogix_dp_core.c drivers/gpu/drm/drm_bridge.c drivers/gpu/drm/rcar-du/rcar_lvds.c +1 more+80 -352 replies
3/4drm/bridge: Add an ->atomic_check() hookdrivers/gpu/drm/drm_atomic_helper.c drivers/gpu/drm/drm_bridge.c include/drm/drm_bridge.h+96 -70 replies
4/4drm/bridge: Add the necessary bits to support bus format negotiationdrivers/gpu/drm/drm_bridge.c include/drm/drm_bridge.h+390 -11 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNeil ArmstrongLaurent PinchartBoris BrezillonJonas Karlman
SeriesA-b
1/4R-b R-b
2/4R-b
3/4R-b R-b
4/4T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/4] drm: Add support for bus-format negotiation

This patch series aims at adding support for runtime bus-format negotiation between all elements of the
'encoder -> bridges -> connector/display' section of the pipeline.

In order to support that, we need drm bridges to fully take part in the atomic state validation process, which requires adding a drm_bridge_state and a new drm_bridge_funcs.atomic_check() hook. Once those basic building blocks are in place, we can add new hooks to allow bus format negotiation (those are called just before ->atomic_check()). The bus format selection is done at runtime by testing all possible combinations across the whole bridge chain until one is reported to work.

No Major changes in this v6, I addressed the slight changed requested by Boris from Laurent on the patch 1, and rebased on drm-misc-next. Note that this version only contains core changes.
Once those changes are merged I'll send the imx/panel/lvds-codec specific bits.

A more detailed changelog is provided in each patch.

This patch series is also available here [1].

Thanks,

~Boris~ Neil

[1] https://github.com/superna9999/linux/commits/drm-bridge-busfmt-v6

Boris Brezillon (4):
drm/bridge: Add a drm_bridge_state object
drm/bridge: Patch atomic hooks to take a drm_bridge_state drm/bridge: Add an ->atomic_check() hook
drm/bridge: Add the necessary bits to support bus format negotiation

 .../drm/bridge/analogix/analogix_dp_core.c    |  41 +-
 drivers/gpu/drm/drm_atomic.c                  |  39 ++
 drivers/gpu/drm/drm_atomic_helper.c           |  32 +-
 drivers/gpu/drm/drm_bridge.c                  | 527 +++++++++++++++++-
 drivers/gpu/drm/rcar-du/rcar_lvds.c           |   5 +-
 include/drm/drm_atomic.h                      |   3 +
 include/drm/drm_bridge.h                      | 275 ++++++++-
 7 files changed, 874 insertions(+), 48 deletions(-)
Signature · 1 line
2.22.0