drm/amd/display: Update V_UPDATE whenever VSTARTUP changes
authorAric Cyr <aric.cyr@amd.com>
Fri, 6 Sep 2019 20:24:54 +0000 (16:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Oct 2019 00:24:53 +0000 (19:24 -0500)
commit1caba4e83b9d8a322375de04d2cfe23d7ccc1b89
tree6174b71e32f21d79dedae384c7a891a0737d3906
parentcbc697b2e3bfcb0dacced1d3e88ba99481831c42
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>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c