drm/amd/display: LGD panel willl flash line under window
authorHersen Wu <hersenxs.wu@amd.com>
Tue, 10 Oct 2017 20:28:02 +0000 (16:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:51:44 +0000 (16:51 -0400)
Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

index 5e5763c..e8b8dae 100644 (file)
@@ -1399,6 +1399,15 @@ static void power_down_encoders(struct dc *dc)
        int i;
        enum connector_id connector_id;
        enum signal_type signal = SIGNAL_TYPE_NONE;
+
+       /* do not know BIOS back-front mapping, simply blank all. It will not
+        * hurt for non-DP
+        */
+       for (i = 0; i < dc->res_pool->stream_enc_count; i++) {
+               dc->res_pool->stream_enc[i]->funcs->dp_blank(
+                                       dc->res_pool->stream_enc[i]);
+       }
+
        for (i = 0; i < dc->link_count; i++) {
                connector_id = dal_graphics_object_id_get_connector_id(dc->links[i]->link_id);
                if ((connector_id == CONNECTOR_ID_DISPLAY_PORT) ||