linux/drivers/gpu/drm/amd/display
Joshua Aberback 6476a7c8f0 drm/amd/display: Program VTG params after programming Global Sync
[Why]
VTG has a parameter FP2, which is defined as:
    if VSTARTUP is before VSYNC:
        FP2 = number of lines in between VSTARTUP and VSYNC
    else
        FP2 = 0
Currently, FP2 is only programmed during "program_timing". However, the
position of VSTARTUP is affected by the prefetching requirements on all pipes,
so the position might change when we do memory request control on another pipe, so we need
to make sure that FP2 stays up-to-date whenever we adjust VSTARTUP.

[How]
 - refactor VTG_CONTROL programming into a new function "set_vtg_params"
 - call it after calling "program_global_sync"
   - make sure it's called after because it relies on the cached dlg params

Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Acked-by: Jun Lei <Jun.Lei@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-05-24 12:21:00 -05:00
..
amdgpu_dm drm/amd/display: Don't load DMCU for Raven 1 (v2) 2019-05-24 12:20:52 -05:00
dc drm/amd/display: Program VTG params after programming Global Sync 2019-05-24 12:21:00 -05:00
include drm/amd/display: Drop DCN1_01 guards 2019-05-24 12:20:59 -05:00
modules drm/amd/display: Reuse MPC OGRAM for 1D blender 2019-05-24 12:21:00 -05:00
Kconfig drm/amd/display: Drop DCN1_01 guards 2019-05-24 12:20:59 -05:00
Makefile drm/amd/display: Load DMCU IRAM 2018-11-26 15:47:53 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00