drm/amd/display: Access patches from stream for ignore MSA monitor patch
authorJaehyun Chung <jaehyun.chung@amd.com>
Tue, 18 Feb 2020 23:01:19 +0000 (18:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 16:10:01 +0000 (11:10 -0500)
[Why]
System will crash when trying to access local sink in
core_link_enable_stream in MST case.

[How]
Access patches directly from stream.

Signed-off-by: Jaehyun Chung <jaehyun.chung@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Reviewed-by: Ashley Thomas <Ashley.Thomas2@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@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/core/dc_link.c

index 2ccc2db..02e1ad3 100644 (file)
@@ -3095,8 +3095,8 @@ void core_link_enable_stream(
                dc->hwss.unblank_stream(pipe_ctx,
                        &pipe_ctx->stream->link->cur_link_settings);
 
-               if (stream->link->local_sink->edid_caps.panel_patch.delay_ignore_msa > 0)
-                       msleep(stream->link->local_sink->edid_caps.panel_patch.delay_ignore_msa);
+               if (stream->sink_patches.delay_ignore_msa > 0)
+                       msleep(stream->sink_patches.delay_ignore_msa);
 
                if (dc_is_dp_signal(pipe_ctx->stream->signal))
                        enable_stream_features(pipe_ctx);