OSDN Git Service

drm/amd/display: Adjust stream enable sequence
authorJoshua Aberback <joshua.aberback@amd.com>
Tue, 30 Oct 2018 19:34:33 +0000 (15:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Nov 2018 20:27:40 +0000 (15:27 -0500)
[Why]
We observed an issue where a display would not accept programming of
the ignore_MSA_timing_param bit if the stream was blanked.

[How]
move enable_stream_features from enable_link_dp to
core_link_enable_stream, after unblank_stream

Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index fe557e7..abcfc05 100644 (file)
@@ -1396,8 +1396,6 @@ static enum dc_status enable_link_dp(
        else
                status = DC_FAIL_DP_LINK_TRAINING;
 
-       enable_stream_features(pipe_ctx);
-
        return status;
 }
 
@@ -2594,6 +2592,9 @@ void core_link_enable_stream(
                core_dc->hwss.unblank_stream(pipe_ctx,
                        &pipe_ctx->stream->sink->link->cur_link_settings);
 
+               if (dc_is_dp_signal(pipe_ctx->stream->signal))
+                       enable_stream_features(pipe_ctx);
+
                dc_link_set_backlight_level(pipe_ctx->stream->sink->link,
                                pipe_ctx->stream->bl_pwm_level,
                                0,