]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Check top sink only when multiple streams for DP2
authorSung Joon Kim <sungjoon.kim@amd.com>
Thu, 11 Jul 2024 15:24:07 +0000 (11:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:37:01 +0000 (17:37 -0400)
commitfae1879dc229249c17e5fd4ef81bf33684ee58f0
tree1386e3080095f504f6141bef129ea9806f08d047
parentec0d7abbb0d464619d6d1646f03603c6616d966e
drm/amd/display: Check top sink only when multiple streams for DP2

[why]
When switching from extended to second display only
mode, the top remote sink is not removed while the top stream
itself is released. This causes DML to think there is no
DP2 output encoder because top remote sink does not match
with the second stream and disables DTBCLK and causes
hang.

[how]
For DP2.0 MST hubs, only treat 1st remote sink as an encoder
only when there are multiple displays connected.

Reviewed-by: Michael Strauss <michael.strauss@amd.com>
Signed-off-by: Sung Joon Kim <sungjoon.kim@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml2_internal_types.h
drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c
drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.h
drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c