mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 16:25:42 -04:00
drm/amd/display: Update V_UPDATE whenever VSTARTUP changes
[Why] If VSTARTUP changes due to bandwidth requirements, we must recalculate and update VLINE2 as well for proper flip reporting. [How] After all calls to program_global_sync which reconfigures VSTARTUP, also make sure to update V_UPDATE (i.e. VLINE2 on DCNx). Signed-off-by: Aric Cyr <aric.cyr@amd.com> Reviewed-by: Sivapiriyan Kumarasamy <Sivapiriyan.Kumarasamy@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -2511,8 +2511,10 @@ static void program_all_pipe_in_tree(
|
||||
pipe_ctx->stream_res.tg->funcs->set_vtg_params(
|
||||
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing);
|
||||
|
||||
dc->hwss.blank_pixel_data(dc, pipe_ctx, blank);
|
||||
if (dc->hwss.setup_vupdate_interrupt)
|
||||
dc->hwss.setup_vupdate_interrupt(pipe_ctx);
|
||||
|
||||
dc->hwss.blank_pixel_data(dc, pipe_ctx, blank);
|
||||
}
|
||||
|
||||
if (pipe_ctx->plane_state != NULL)
|
||||
|
||||
@@ -1370,6 +1370,9 @@ static void dcn20_program_pipe(
|
||||
|
||||
pipe_ctx->stream_res.tg->funcs->set_vtg_params(
|
||||
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing);
|
||||
|
||||
if (dc->hwss.setup_vupdate_interrupt)
|
||||
dc->hwss.setup_vupdate_interrupt(pipe_ctx);
|
||||
}
|
||||
|
||||
if (pipe_ctx->update_flags.bits.odm)
|
||||
@@ -1581,8 +1584,12 @@ bool dcn20_update_bandwidth(
|
||||
|
||||
pipe_ctx->stream_res.tg->funcs->set_vtg_params(
|
||||
pipe_ctx->stream_res.tg, &pipe_ctx->stream->timing);
|
||||
|
||||
if (pipe_ctx->prev_odm_pipe == NULL)
|
||||
dc->hwss.blank_pixel_data(dc, pipe_ctx, blank);
|
||||
|
||||
if (dc->hwss.setup_vupdate_interrupt)
|
||||
dc->hwss.setup_vupdate_interrupt(pipe_ctx);
|
||||
}
|
||||
|
||||
pipe_ctx->plane_res.hubp->funcs->hubp_setup(
|
||||
|
||||
Reference in New Issue
Block a user