drm/amd/display: Clear MST topology if it fails to resume
authorjsg <jsg@openbsd.org>
Mon, 17 Apr 2023 05:17:20 +0000 (05:17 +0000)
committerjsg <jsg@openbsd.org>
Mon, 17 Apr 2023 05:17:20 +0000 (05:17 +0000)
From Roman Li
245525543f48cd9eabd2964d8931043e9e3c31cf in linux-6.1.y/6.1.24
3f6752b4de41896c7f1609b1585db2080e8150d8 in mainline linux

sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 856aa52..83013ee 100644 (file)
@@ -2177,6 +2177,8 @@ static int detect_mst_link_for_all_connectors(struct drm_device *dev)
                                DRM_ERROR("DM_MST: Failed to start MST\n");
                                aconnector->dc_link->type =
                                        dc_connection_single;
+                               ret = dm_helpers_dp_mst_stop_top_mgr(aconnector->dc_link->ctx,
+                                                                    aconnector->dc_link);
                                break;
                        }
                }