Commit 7fad39ca authored by Eryk Brol's avatar Eryk Brol Committed by Alex Deucher

drm/amd/display: Change DCN2 vupdate start programming

[Why]
In order to ensure that incoming flips are latched and
complete immediately, we need to program the vupdate
interrupt to come during the back porch of each frame.

[How]
Program the vupdate start_line to be in the back porch
like it's done for DCN1.
Signed-off-by: default avatarEryk Brol <eryk.brol@amd.com>
Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 78b67457
...@@ -1704,13 +1704,10 @@ void dcn20_unblank_stream(struct pipe_ctx *pipe_ctx, ...@@ -1704,13 +1704,10 @@ void dcn20_unblank_stream(struct pipe_ctx *pipe_ctx,
void dcn20_setup_vupdate_interrupt(struct pipe_ctx *pipe_ctx) void dcn20_setup_vupdate_interrupt(struct pipe_ctx *pipe_ctx)
{ {
struct timing_generator *tg = pipe_ctx->stream_res.tg; struct timing_generator *tg = pipe_ctx->stream_res.tg;
int start_position = get_vupdate_offset_from_vsync(pipe_ctx); int start_line = get_vupdate_offset_from_vsync(pipe_ctx);
uint32_t start_line;
if (start_position < 0) if (start_line < 0)
start_line = pipe_ctx->stream->timing.v_total + start_position - 1; start_line = 0;
else
start_line = start_position;
if (tg->funcs->setup_vertical_interrupt2) if (tg->funcs->setup_vertical_interrupt2)
tg->funcs->setup_vertical_interrupt2(tg, start_line); tg->funcs->setup_vertical_interrupt2(tg, start_line);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment