提交 03736f4c 编写于 作者: M Mikita Lipski 提交者: Alex Deucher

drm/amd/display: Prevent master programming in multisync

Verify that the stream is master - and program only the slave displays
Signed-off-by: NMikita Lipski <mikita.lipski@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Acked-by: NHarry Wentland <harry.wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 3bc4aaa9
...@@ -2348,7 +2348,7 @@ static void set_master_stream(struct dc_stream_state *stream_set[], ...@@ -2348,7 +2348,7 @@ static void set_master_stream(struct dc_stream_state *stream_set[],
} }
} }
for (j = 0; j < stream_count; j++) { for (j = 0; j < stream_count; j++) {
if (stream_set[j] && j != master_stream) if (stream_set[j])
stream_set[j]->triggered_crtc_reset.event_source = stream_set[master_stream]; stream_set[j]->triggered_crtc_reset.event_source = stream_set[master_stream];
} }
} }
......
...@@ -521,11 +521,13 @@ static void enable_timing_multisync( ...@@ -521,11 +521,13 @@ static void enable_timing_multisync(
if (!ctx->res_ctx.pipe_ctx[i].stream || if (!ctx->res_ctx.pipe_ctx[i].stream ||
!ctx->res_ctx.pipe_ctx[i].stream->triggered_crtc_reset.enabled) !ctx->res_ctx.pipe_ctx[i].stream->triggered_crtc_reset.enabled)
continue; continue;
if (ctx->res_ctx.pipe_ctx[i].stream == ctx->res_ctx.pipe_ctx[i].stream->triggered_crtc_reset.event_source)
continue;
multisync_pipes[multisync_count] = &ctx->res_ctx.pipe_ctx[i]; multisync_pipes[multisync_count] = &ctx->res_ctx.pipe_ctx[i];
multisync_count++; multisync_count++;
} }
if (multisync_count > 1) { if (multisync_count > 0) {
dc->hwss.enable_per_frame_crtc_position_reset( dc->hwss.enable_per_frame_crtc_position_reset(
dc, multisync_count, multisync_pipes); dc, multisync_count, multisync_pipes);
} }
......
...@@ -1097,7 +1097,7 @@ static void dcn10_enable_per_frame_crtc_position_reset( ...@@ -1097,7 +1097,7 @@ static void dcn10_enable_per_frame_crtc_position_reset(
DC_SYNC_INFO("Waiting for trigger\n"); DC_SYNC_INFO("Waiting for trigger\n");
for (i = 1; i < group_size; i++) for (i = 0; i < group_size; i++)
wait_for_reset_trigger_to_occur(dc_ctx, grouped_pipes[i]->stream_res.tg); wait_for_reset_trigger_to_occur(dc_ctx, grouped_pipes[i]->stream_res.tg);
DC_SYNC_INFO("Multi-display sync is complete\n"); DC_SYNC_INFO("Multi-display sync is complete\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册