summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAbdulla Bubshait <darkstego@gmail.com>2026-10-28 16:26:41 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-11-18 01:47:49 -0500
commit4aa51b904cac06fe2c82623ce24d80853af730f6 (patch)
tree87269090696f270c6b5871f2cc13c43c490af3ba /tools/perf/scripts/python
parent63b42ad2fdd371ae4a86658295943d60a86a519b (diff)
drm/amd/display: Abort DPMS ON when enabling the link fails
Since commit 843049bac7c0 ("drm/amd/display: Split DPMS ON into parts"), link_set_dpms_on_enable_link() returns DC_DPMS_FAILED_HANDSHAKE when enable_link() fails and the stream enable has to be aborted: any failure other than link training, or a link training failure on DP MST. The link has already been disabled at that point. The step loop in link_set_dpms_on() treats DC_DPMS_FAILED_HANDSHAKE like DC_DPMS_SUCCESS and goes on to link_set_dpms_on_post_enable_link(). Before the split, this path returned right after disable_link(), because MST displays can't proceed without link training. Now, for failed MST handshakes MST slots are still allocated. When the link trains again later, the new payload starts after the leaked slots so ACT never completes, and the display stays black until reboot. Replugging or power-cycling the monitor does not recover it. Seen on Navi 33 (DCN 3.2.1) with a DP 2.1 MST monitor (Odyssey Neo G9) at UHBR10 x4 with DSC. Link training sometimes fails on DPMS wake. With this change, the failed attempt leaves no payload behind, and the next modeset after the sink reconnects bring the monitor back up. Return early on DC_DPMS_FAILED_HANDSHAKE, as for DC_DPMS_SKIPPED_HANDSHAKE. This restores the pre-split behaviour. Link training failures on non-MST signals still return DC_DPMS_SUCCESS and continue as before. Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/6047 Fixes: 843049bac7c0 ("drm/amd/display: Split DPMS ON into parts") Reviewed-by: Wayne Lin <Wayne.Lin@amd.com> Signed-off-by: Abdulla Bubshait <darkstego@gmail.com> Signed-off-by: Wayne Lin <Wayne.Lin@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit ece3dae13fb106684f8248f88387b1fbcfef8206) Cc: stable@vger.kernel.org # 7.3
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions