On 11/21/26 22:40, Gianfranco Mariotti wrote:
> On platforms with a native DisplayPort connector using direct HPD
> interrupts, DisplayPort initializes on cold boot, but physical cable
> unplug and re-plug cycles leave the display blank even though link
> training and stream enable callbacks report success.
>
> This series fixes the underlying PHY lane setup, DPCD link-rate caching,
> SST training-pattern handover, link maintenance BPC restoration, and
> HPD / runtime-PM state tracking issues:
Hi Gianfranco,
thanks for this series. I backported it to 7.3.y [1] and tested it on a
Lenovo IdeaCentre Mini 01Q8X10 (X1P42100) with 50 rounds of DPMS
off/on, first HDMI only (Parade PS186 branch), then HDMI plus a second
display behind a Lenovo USB-C dock (40B0, DP alt mode pin D, 2 lanes
through two LTTPRs).
Before, external displays behind the HDMI bridge regularly failed to
retrain after DPMS wake on 7.2+. With the series, every wake trained
once at HBR2, CR/EQ passed on both links, and video came up every
round on both outputs. No "already disabled" or PHY power_count issues.
Notes on the backport:
- 2/7 is covered in 7.3 by the link_info memset from Anthony Ruhier's
172c1648222e ("drm/msm/dp: recompute the link capabilities on every
sink read"), so I dropped it.
- 5/7: 7.3 already routes native IRQ_HPD via 216110888698 ("drm/msm/dp:
Handle IRQ HPD as a sink request"), so I only carried over the
pm_runtime_put() change there.
- 7/7: 7.3 lacks 1bda647ce61b ("drm/msm/dp: move link-level teardown
from display_disable to display_unprepare"), so the teardown still
lives in
msm_dp_display_disable(); I applied the dp->plugged gating there
instead of in unprepare.
One observation: on DPMS off, the PS186 still raises an HPD IRQ about
100 ms after the link is disabled, which sends a hotplug uevent per
connector, with get_modes reporting "No sink connected". It's harmless
here, but some debouncing may be worth adding on top later.
For the series, as tested on X1P42100:
Tested-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz> #
x1p42100-lenovo-ideacentre-mini
[1]
https://github.com/jglathe/linux_ms_dev_kit/tree/jg/ubuntu-qcom-x1e-7.3.y
Best regards,
Jens