Skip to content

drm: Fix EDID reading on ti-sn65dsi86 by introducing the DP AUX bus

Douglas Anderson dri-devel linux-arm-msm linux-devicetree lkml 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest11 patches 1 replyIn review
  2. v911 patches 7 repliesSuperseded
  3. v811 patches 13 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v710 patches15 repliesSuperseded
v65 patches6 repliesSuperseded
v520 patches15 repliesSuperseded
v427 patches24 repliesSuperseded
v312 patches14 repliesSuperseded
v214 patches20 repliesSuperseded

Changes in v10 from the cover letter

- Error-check kzalloc

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11dt-bindings: display: simple: List hpd properties in panel-simpleDocumentation/devicetree/bindings/display/panel/panel-simple.yaml+2 -00 replies
2/11dt-bindings: drm: Introduce the DP AUX busDocumentation/devicetree/bindings/display/dp-aux-bus.yaml+37 -00 replies
3/11dt-bindings: drm/bridge: ti-sn65dsi86: Add aux-bus childDocumentation/devicetree/bindings/display/bridge/ti,sn65dsi86.yaml+19 -10 replies
4/11drm: Introduce the DP AUX busdrivers/gpu/drm/Kconfig drivers/gpu/drm/Makefile drivers/gpu/drm/drm_dp_aux_bus.c +1 more+392 -00 replies
5/11drm/panel: panel-simple: Allow panel-simple be a DP AUX endpoint devicedrivers/gpu/drm/panel/Kconfig drivers/gpu/drm/panel/panel-simple.c+49 -40 replies
6/11drm/panel: panel-simple: Stash DP AUX bus; allow using it for DDCdrivers/gpu/drm/panel/panel-simple.c+12 -60 replies
7/11drm/bridge: ti-sn65dsi86: Promote the AUX channel to its own sub-devdrivers/gpu/drm/bridge/ti-sn65dsi86.c+51 -190 replies
8/11drm/bridge: ti-sn65dsi86: Add support for the DP AUX busdrivers/gpu/drm/bridge/Kconfig drivers/gpu/drm/bridge/ti-sn65dsi86.c+7 -00 replies
9/11drm/bridge: ti-sn65dsi86: Don't read EDID blob over DDCdrivers/gpu/drm/bridge/ti-sn65dsi86.c+0 -220 replies
10/11drm/bridge: ti-sn65dsi86: Improve probe errors with dev_err_probe()drivers/gpu/drm/bridge/ti-sn65dsi86.c+13 -180 replies
11/11arm64: dts: qcom: sc7180-trogdor: Move panel under the bridge chiparch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi+15 -150 replies

Reviews trailers per patch

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

PatchRob HerringLinus WalleijLyude PaulBjorn Andersson
1/11R-b
2/11R-b R-b
3/11R-b R-b
4/11A-b R-b
5/11R-b
6/11R-b R-b
7/11R-b R-b
8/11A-b R-b
9/11R-b
10/11R-b
11/11A-b A-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 v10 thread

Cover letter [PATCH v10 00/11] drm: Fix EDID reading on ti-sn65dsi86 by introducing the DP AUX bus

The primary goal of this series is to try to properly fix EDID reading for eDP panels using the ti-sn65dsi86 bridge.

Previously we had a patch that added EDID reading but it turned out not to work at bootup. This caused some extra churn at bootup as we tried (and failed) to read the EDID several times and also ended up forcing us to use the hardcoded mode at boot. With this patch series I believe EDID reading is reliable at boot now and we never use the hardcoded mode.

High level note: in this series the EDID reading is driven by the panel driver, not by the bridge chip driver. I believe this makes a reasonable amount of sense since the panel driver already _could_ drive reading the EDID if provided with the DDC bus and in future planned work we'll want to give the panel driver the DDC bus (to make decisions based on EDID) and the AUX bus (to control the backlight). There are also planned patches from Laurent to make ti-sn65dsi86 able to drive full DP monitors. In that case the bridge chip will still be in charge of reading the EDID, but it's not hard to make this dynamic.

This series is the logical successor to the 3-part series containing the patch ("drm/bridge: ti-sn65dsi86: Properly get the EDID, but only if refclk") [1].

This patch was tested against drm-misc-next commit f42498705965 ("drm/panfrost: Fix missing clk_disable_unprepare() on error in panfrost_clk_init()") on a sc7180-trogdor-lazor device.

At v10 now, this is ready to land and I plan to commit it shortly. All patches have reviews and Laurent has said over IRC he doesn't object it it landing.

Between v2 and v3, high-level view of changes:
- stop doing the EDID caching in the core.

Between v3 and v4, high-level view of changes:
- EDID reading is actually driven by the panel driver now. See above.
- Lots of chicken-and-egg problems solved w/ sub-devices.

Between v4 and v5, high-level view of changes.
- Some of the early patches landed, so dropped from series.
- New pm_runtime_disable() fix (fixed a patch that already landed).
- Added Bjorn's tags to most patches
- Fixed problems when building as a module.
- Reordered debugfs patch and fixed error handling there.
- Dropped last patch. I'm not convinced it's safe w/out more work.

Between v5 and v6, high-level view of changes:
- Added the patch ("drm/dp: Allow an early call to register DDC i2c bus")
- Many patches had been landed, so only a few "controversial" ones left.

Between v6 and v7, high-level view of changes:
- New AUX DP bus!

Between v7 and v8, high-level view of changes:
- More bindings work.
- Fixed allmodconfig.

Between v8 and v9, high-level view of changes:
- Fixed error/remove in panel.
- Properly handle of_node in sub-devices in sn65dsi86.
- Tiny bindings touchup including dropping "Example" patch.
- Added review tags.
- Added error message cleanup patch at the end.
- First patch (bugfix) dropped (it landed).

Between v9 and v10, high-level view of changes:
- Review/Ack tags added.
- Check memory allocation result.

[1] https://lore.kernel.org/r/20210304155144.3.I60a7fb23ce4589006bc95c64ab8d15c74b876e68@changeid/

Changes in v10:
- Error-check kzalloc

Changes in v9:
- ("Improve probe errors") patch new for v9.
- Commit message now notes aux-bus yaml won't have an "Example".
- Fix error handling / remove case when using AUX bus for DDC.
- Properly set the of_node of sn65dsi86 auxbus devices now.
- Rebased atop v9 ("Promote the AUX channel") patch.
- Use an absolute path to refer to aux-bus schema.

Changes in v8:
- Allow dp-aux-bus to be a module to fix allmodconfig builds
- Explain better why HPD needs to be in panel-simple in commit msg.
- Separate DP AUX bus binding is new for v8.
- ti-sn65dsi86 references the new aux bus bindings.

Changes in v7:
- Adjusted commit message to talk about DP AUX bus.
- Beefed up commit message in context of the DP AUX bus.
- List hpd properties bindings patch new for v7.
- Panel now under bridge chip instead of getting a link to ddc-i2c
- Patch introducing the DP AUX bus is new for v7.
- Patch to allow panel-simple to be DP AUX EP new for v7.
- Patch to support for DP AUX bus on ti-sn65dsi86 new for v7.
- Patch using the DP AUX for DDC new for v7.
- Remove use of now-dropped drm_dp_aux_register_ddc() call.
- Set the proper sub-device "dev" pointer in the AUX structure.
- ti-sn65dsi86: Add aux-bus child patch new for v7.

Changes in v6:
- Use new drm_dp_aux_register_ddc() calls.

Douglas Anderson (11):
dt-bindings: display: simple: List hpd properties in panel-simple
dt-bindings: drm: Introduce the DP AUX bus
dt-bindings: drm/bridge: ti-sn65dsi86: Add aux-bus child
drm: Introduce the DP AUX bus
drm/panel: panel-simple: Allow panel-simple be a DP AUX endpoint
device
drm/panel: panel-simple: Stash DP AUX bus; allow using it for DDC drm/bridge: ti-sn65dsi86: Promote the AUX channel to its own sub-dev drm/bridge: ti-sn65dsi86: Add support for the DP AUX bus drm/bridge: ti-sn65dsi86: Don't read EDID blob over DDC drm/bridge: ti-sn65dsi86: Improve probe errors with dev_err_probe()
arm64: dts: qcom: sc7180-trogdor: Move panel under the bridge chip

 .../bindings/display/bridge/ti,sn65dsi86.yaml |  20 +-
 .../bindings/display/dp-aux-bus.yaml          |  37 ++
 .../bindings/display/panel/panel-simple.yaml  |   2 +
 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi  |  30 +-
 drivers/gpu/drm/Kconfig                       |   5 +
 drivers/gpu/drm/Makefile                      |   2 +
 drivers/gpu/drm/bridge/Kconfig                |   1 +
 drivers/gpu/drm/bridge/ti-sn65dsi86.c         | 129 +++----
 drivers/gpu/drm/drm_dp_aux_bus.c              | 328 ++++++++++++++++++
 drivers/gpu/drm/panel/Kconfig                 |   1 +
 drivers/gpu/drm/panel/panel-simple.c          |  68 +++-
 include/drm/drm_dp_aux_bus.h                  |  57 +++
 12 files changed, 596 insertions(+), 84 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/display/dp-aux-bus.yaml
 create mode 100644 drivers/gpu/drm/drm_dp_aux_bus.c
 create mode 100644 include/drm/drm_dp_aux_bus.h
Signature · 1 line
2.32.0.272.g935e593368-goog