drm/amd/display: Release MST resources on switch from MST to SST
authorjsg <jsg@openbsd.org>
Mon, 19 Jul 2021 10:15:04 +0000 (10:15 +0000)
committerjsg <jsg@openbsd.org>
Mon, 19 Jul 2021 10:15:04 +0000 (10:15 +0000)
From Vladimir Stempen
02f444321b3a0f3f94e34329f8aafa814c45b8e4 in linux 5.10.y/5.10.51
3f8518b60c10aa96f3efa38a967a0b4eb9211ac0 in mainline linux

sys/dev/pci/drm/amd/display/dc/core/dc_link_dp.c

index 2d86ffd..8c3bb9f 100644 (file)
@@ -1704,6 +1704,8 @@ static void set_dp_mst_mode(struct dc_link *link, bool mst_enable)
                link->type = dc_connection_single;
                link->local_sink = link->remote_sinks[0];
                link->local_sink->sink_signal = SIGNAL_TYPE_DISPLAY_PORT;
+               dc_sink_retain(link->local_sink);
+               dm_helpers_dp_mst_stop_top_mgr(link->ctx, link);
        } else if (mst_enable == true &&
                        link->type == dc_connection_single &&
                        link->remote_sinks[0] != NULL) {