Skip to content

drm/msm/dp: Improve DP AUX transfer vs. HPD interactions

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 12 repliesIn review
  2. v13 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Don't look at the HPD line directly; have dp_display call us.
- ("Fix typo in static function (ststus => status)") new for v2.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/msm/dp: Avoid a long timeout for AUX transfer if nothing connecteddrivers/gpu/drm/msm/dp/dp_aux.c drivers/gpu/drm/msm/dp/dp_aux.h drivers/gpu/drm/msm/dp/dp_display.c+25 -02 replies
2/4drm/msm/dp: Account for the timeout in wait_hpd_asserted() callbackdrivers/gpu/drm/msm/dp/dp_aux.c drivers/gpu/drm/msm/dp/dp_catalog.c drivers/gpu/drm/msm/dp/dp_catalog.h+9 -61 reply
3/4drm/msm/dp: Delete the old 500 ms wait for eDP HPD in aux transferdrivers/gpu/drm/msm/dp/dp_aux.c+0 -176 replies
4/4drm/msm/dp: Fix typo in static function (ststus => status)drivers/gpu/drm/msm/dp/dp_display.c+2 -23 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchGuenter RoeckAbhinav Kumar
1/4R-b R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] drm/msm/dp: Improve DP AUX transfer vs. HPD interactions

The main goal of this patch series is to avoid problems running "fwupd" on Qualcomm devices. Right now several of the plugins used with fwupd try talking over all DP AUX busses and this results in a very long timeout on Qualcomm devices.

As part of fixing this, I noticed a case where the MSM DP code wasn't respecing the timeout properly when asked to wait for HPD. I also noticed that, now that we've implemented wait_hpd_asserted(), we no longer need the long hardcoded timeout / special case for eDP in the AUX transfer function.

NOTE: I managed to dig up some hardware to test the eDP case and my basic testing shows that everything still works fine there after this series.

Changes in v2:
- Don't look at the HPD line directly; have dp_display call us.
- ("Fix typo in static function (ststus => status)") new for v2.

Douglas Anderson (4):
drm/msm/dp: Avoid a long timeout for AUX transfer if nothing connected drm/msm/dp: Account for the timeout in wait_hpd_asserted() callback drm/msm/dp: Delete the old 500 ms wait for eDP HPD in aux transfer drm/msm/dp: Fix typo in static function (ststus => status)

 drivers/gpu/drm/msm/dp/dp_aux.c     | 30 ++++++++++++++++-------------
 drivers/gpu/drm/msm/dp/dp_aux.h     |  1 +
 drivers/gpu/drm/msm/dp/dp_catalog.c |  7 ++++---
 drivers/gpu/drm/msm/dp/dp_catalog.h |  3 ++-
 drivers/gpu/drm/msm/dp/dp_display.c |  8 ++++++--
 5 files changed, 30 insertions(+), 19 deletions(-)
Signature · 1 line
2.44.0.291.gc1ea87d7ee-goog