drm/amd/display: Allow Diagnostics test with eDP not connected
authorEric Bernstein <eric.bernstein@amd.com>
Mon, 11 May 2020 20:48:52 +0000 (16:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 May 2020 18:00:51 +0000 (14:00 -0400)
[Why]
Diagnostics DIO test with eDP not connected is required to run

[How]
Allow Diagnostics test with eDP not connected to skip link detection but
still execute DIO test

Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 45cfb7c45566aff4e017a166252503a1e1089a91..04c3d9f7e32355db2905c2af34a404c2ce5af9d5 100644 (file)
@@ -186,9 +186,10 @@ static bool create_links(
                        bool should_destory_link = false;
 
                        if (link->connector_signal == SIGNAL_TYPE_EDP) {
-                               if (dc->config.edp_not_connected)
-                                       should_destory_link = true;
-                               else if (dc->debug.remove_disconnect_edp) {
+                               if (dc->config.edp_not_connected) {
+                                       if (!IS_DIAG_DC(dc->ctx->dce_environment))
+                                               should_destory_link = true;
+                               } else {
                                        enum dc_connection_type type;
                                        dc_link_detect_sink(link, &type);
                                        if (type == dc_connection_none)