Skip to content

RFC Simplify and correct msm/dp bridge implementation

Dmitry Baryshkov dri-devel linux-arm-msm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest5 patches 36 repliesIn review
  2. v1 RFC7 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- Expanded commit messages to reference possible setups Added details about possible bridges, usage, etc
- Changed handling of errors for devm_drm_of_get_bridge(). Made the -ENODEV fatal for the eDP connectors only, all other errors should be fatal for both eDP and DP.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/msm/dp: fix panel bridge attachmentdrivers/gpu/drm/msm/dp/dp_drm.c+11 -1011 replies
2/5drm/msm/dp: support attaching bridges to the DP encoderdrivers/gpu/drm/msm/dp/dp_display.c drivers/gpu/drm/msm/dp/dp_display.h drivers/gpu/drm/msm/dp/dp_drm.c +2 more+21 -205 replies
3/5drm/msm/dp: support finding next bridge even for DP interfacesdrivers/gpu/drm/msm/dp/dp_parser.c+12 -75 replies
4/5drm/msm/dp: replace dp_connector with drm_bridge_connectordrivers/gpu/drm/msm/dp/dp_display.c drivers/gpu/drm/msm/dp/dp_drm.c+52 -8313 replies
5/5drm/msm/dp: remove extra wrappers and public functionsdrivers/gpu/drm/msm/dp/dp_display.c drivers/gpu/drm/msm/dp/dp_display.h drivers/gpu/drm/msm/dp/dp_drm.c +2 more+60 -1202 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchKuogee HsiehStephen BoydAbhinav KumarSankeerth Billakanti
1/5T-b R-b R-b
2/5T-b R-b R-b
3/5T-b R-b R-b
4/5R-b T-b
5/5R-b T-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 v2 thread

Cover letter [RFC PATCH v2 0/5] Simplify and correct msm/dp bridge implementation

I noticed that commit 8a3b4c17f863 ("drm/msm/dp: employ bridge mechanism for display enable and disable") conflicts with the panel-edp (panel bridge) support. Both bridges will try to attach directly to the drm encoder itself without forming a proper bridge chain.

Initially I started writing lengthy letter describing what is broken and how it should be fixed. Then at some point I stopped and quickly coded this RFC (which is compile-tested only).

Comments and tests (on both DP and eDP setups) are more than welcome.

Changes since RFC v1:
- Expanded commit messages to reference possible setups Added details about possible bridges, usage, etc
- Changed handling of errors for devm_drm_of_get_bridge(). Made the -ENODEV fatal for the eDP connectors only, all other errors should be fatal for both eDP and DP.

Dmitry Baryshkov (5):
drm/msm/dp: fix panel bridge attachment
drm/msm/dp: support attaching bridges to the DP encoder drm/msm/dp: support finding next bridge even for DP interfaces drm/msm/dp: replace dp_connector with drm_bridge_connector drm/msm/dp: remove extra wrappers and public functions

 drivers/gpu/drm/msm/dp/dp_display.c |  76 +++++++-----
 drivers/gpu/drm/msm/dp/dp_display.h |   3 +-
 drivers/gpu/drm/msm/dp/dp_drm.c     | 186 +++++++---------------------
 drivers/gpu/drm/msm/dp/dp_drm.h     |  22 +++-
 drivers/gpu/drm/msm/dp/dp_parser.c  |  38 +++---
 drivers/gpu/drm/msm/dp/dp_parser.h  |   2 +-
 drivers/gpu/drm/msm/msm_drv.h       |  31 -----
 7 files changed, 137 insertions(+), 221 deletions(-)

base-commit: 6aa89ae1fb049614b7e03e24485bbfb96754a02b
prerequisite-patch-id: 89e012b5b7da1a90cc243cc4c305400a4fafdf0b
prerequisite-patch-id: 0de618d54d5fea5b48c2b540c8731a1a7e2f4c15
prerequisite-patch-id: a9b1a27e9800626cc0ebc73291d65c2790670583
prerequisite-patch-id: 2067135baa2995fbcbfd6793b61e39027e6b7516
prerequisite-patch-id: 0591114f3c59f9376ba25e77e7a48daf90cf7aa6
prerequisite-patch-id: 684cf6c7a177cb7c6c9d83a859eec0acef5c132c
prerequisite-patch-id: 083313bc9b19fcf7fed78f63a3cb0752f54cec4f
prerequisite-patch-id: 6e46e24cd7471ba38679b3d6f99a1132fa1154b3

Signature · 1 line
2.34.1