drm/amdgpu/display: disable eDP fast boot optimization on DCE8
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Aug 2018 20:35:21 +0000 (15:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Aug 2018 19:23:17 +0000 (14:23 -0500)
Seems to cause blank screens.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=106940
Reviewed-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 5450d4d..215409e 100644 (file)
@@ -1588,7 +1588,13 @@ void dce110_enable_accelerated_mode(struct dc *dc, struct dc_state *context)
        bool can_eDP_fast_boot_optimize = false;
 
        if (edp_link) {
-               can_eDP_fast_boot_optimize =
+               /* this seems to cause blank screens on DCE8 */
+               if ((dc->ctx->dce_version == DCE_VERSION_8_0) ||
+                   (dc->ctx->dce_version == DCE_VERSION_8_1) ||
+                   (dc->ctx->dce_version == DCE_VERSION_8_3))
+                       can_eDP_fast_boot_optimize = false;
+               else
+                       can_eDP_fast_boot_optimize =
                                edp_link->link_enc->funcs->is_dig_enabled(edp_link->link_enc);
        }