From: SivapiriyanKumarasamy Date: Fri, 18 May 2018 21:05:52 +0000 (-0400) Subject: drm/amd/display: Program vline interrupt on FAST update X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=27e2e207747981ca3161dec16cea304f8e46cd65;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: Program vline interrupt on FAST update Signed-off-by: SivapiriyanKumarasamy Reviewed-by: Tony Cheng Reviewed-by: Anthony Koo Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 2d4a5a85f799..699cb6f51121 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1350,6 +1350,13 @@ static void commit_planes_do_stream_update(struct dc *dc, stream_update->adjust->v_total_min, stream_update->adjust->v_total_max); + if (stream_update->periodic_fn_vsync_delta && + pipe_ctx->stream_res.tg && + pipe_ctx->stream_res.tg->funcs->program_vline_interrupt) + pipe_ctx->stream_res.tg->funcs->program_vline_interrupt( + pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing, + pipe_ctx->stream->periodic_fn_vsync_delta); + /* Full fe update*/ if (update_type == UPDATE_TYPE_FAST) continue; @@ -1377,12 +1384,6 @@ static void commit_planes_do_stream_update(struct dc *dc, pipe_ctx->stream_res.abm, stream->abm_level); } - if (stream_update->periodic_fn_vsync_delta && - pipe_ctx->stream_res.tg->funcs->program_vline_interrupt) - pipe_ctx->stream_res.tg->funcs->program_vline_interrupt( - pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing, - pipe_ctx->stream->periodic_fn_vsync_delta); - if (stream_update->hdr_static_metadata || stream_update->vrr_infopacket) { resource_build_info_frame(pipe_ctx);