Hi Jens, Thank you for backporting and testing this on X1P42100 across both the PS186 bridge and the LTTPR dock setup.
While doing additional DPMS/connector-off and branch-adapter hotplug testing on QCS8275 (plus addressing automated review feedback on v1), I actually hit the same post-link-disable HPD/IRQ_HPD pulse behavior from an active DP-to-HDMI adapter and found a few edge cases in v1's HPD and link-maintenance patches. I am about to send v2 against msm-next with the following updates: - Reordered the series so the self-contained fixes (1-5) come before the HPD state tracking (6/7) and IRQ_HPD dispatch (7/7) patches. - Patch 2/7: also reset link_info->use_rate_set alongside rate. - Patch 4/7: drop the redundant msm_dp_ctrl_configure_source_params() call (msm-next already calls msm_dp_ctrl_config_ctrl_streams() in msm_dp_ctrl_link_train(), avoiding unclocked pixel_base access when no stream is active) and guard SEND_VIDEO with stream_clks_on. - Patch 6/7 (was 7/7): fix a runtime PM leak in msm_dp_bridge_detect(), track drm_dp_read_sink_count_cap() + prev_sink_count properly, keep the PHY initialized for AUX/IRQ_HPD across msm_dp_display_unprepare() while dp->plugged remains true (balanced across system sleep), re-read EDID on demand in msm_dp_display_get_modes() if edid_blob_ptr was cleared, serialize prepare_link()/unprepare() under plugged_lock, and keep empty branch dongles (-ENOTCONN) plugged. - Patch 7/7 (was 5/7): skip sink requests in msm_dp_ctrl_handle_sink_request() when link_clks_on is false (which cleanly ignores those DP_LINK_STATUS_UPDATED pulses right after DPMS off), and emit drm_bridge_hpd_notify() on branch DS_PORT_STATUS_CHANGED transitions. (Side note on that "No sink connected" debug message you noticed: the if/else in msm_dp_bridge_get_modes() actually has an inverted debug log and prints "No sink connected" whenever rc > 0 modes are returned.) Since patches 2, 4, 6, and 7 changed non-trivially, I only carried your Tested-by tag onto the unchanged patches (1/7, 3/7, and 5/7) in v2. Best regards, Gianfranco Il giorno lun 23 nov 2026 alle ore 12:03 Jens Glathe <[email protected]> ha scritto: > > 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 <[email protected]> # > x1p42100-lenovo-ideacentre-mini > > [1] > https://github.com/jglathe/linux_ms_dev_kit/tree/jg/ubuntu-qcom-x1e-7.3.y > > Best regards, > Jens >
