linux_dsm_epyc7002/drivers/gpu/drm/amd/display/dc/dcn20
Joshua Aberback 3972c35085 drm/amd/display: Program VTG params after programming Global Sync for DCN2
[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-06-22 09:34:07 -05:00
..
dcn20_dccg.c
dcn20_dccg.h
dcn20_dpp_cm.c drm/amd/display: Add DCN2 DPP 2019-06-21 18:59:34 -05:00
dcn20_dpp.c drm/amd/display: Add DCN2 DPP 2019-06-21 18:59:34 -05:00
dcn20_dpp.h drm/amd/display: Add DCN2 DPP 2019-06-21 18:59:34 -05:00
dcn20_dsc.c drm/amd/display: Add DSC support for Navi (v2) 2019-06-22 09:34:07 -05:00
dcn20_dsc.h drm/amd/display: Add DSC support for Navi (v2) 2019-06-22 09:34:07 -05:00
dcn20_dwb_scl.c drm/amd/display: Add DCN2 DWB 2019-06-21 18:59:35 -05:00
dcn20_dwb.c drm/amd/display: Add DCN2 DWB 2019-06-21 18:59:35 -05:00
dcn20_dwb.h drm/amd/display: Add DCN2 DWB 2019-06-21 18:59:35 -05:00
dcn20_hubbub.c drm/amd/display: Add DCN2 HUBP and HUBBUB 2019-06-21 18:59:34 -05:00
dcn20_hubbub.h drm/amd/display: Add DCN2 HUBP and HUBBUB 2019-06-21 18:59:34 -05:00
dcn20_hubp.c drm/amd/display: Add DCN2 HUBP and HUBBUB 2019-06-21 18:59:34 -05:00
dcn20_hubp.h drm/amd/display: Add DCN2 HUBP and HUBBUB 2019-06-21 18:59:34 -05:00
dcn20_hwseq.c drm/amd/display: Program VTG params after programming Global Sync for DCN2 2019-06-22 09:34:07 -05:00
dcn20_hwseq.h drm/amd/display: Add DCN2 HW Sequencer and Resource 2019-06-21 18:59:35 -05:00
dcn20_link_encoder.c drm/amd/display: Add DSC support for Navi (v2) 2019-06-22 09:34:07 -05:00
dcn20_link_encoder.h drm/amd/display: Add DSC support for Navi (v2) 2019-06-22 09:34:07 -05:00
dcn20_mmhubbub.c drm/amd/display: Add DCN2 MMHUBBUB 2019-06-21 18:59:34 -05:00
dcn20_mmhubbub.h drm/amd/display: Add DCN2 MMHUBBUB 2019-06-21 18:59:34 -05:00
dcn20_mpc.c drm/amd/display: Add DCN2 MPC 2019-06-21 18:59:34 -05:00
dcn20_mpc.h drm/amd/display: Add DCN2 MPC 2019-06-21 18:59:34 -05:00
dcn20_opp.c drm/amd/display: Add DCN2 OPP 2019-06-21 18:59:34 -05:00
dcn20_opp.h drm/amd/display: Add DCN2 OPP 2019-06-21 18:59:34 -05:00
dcn20_optc.c drm/amd/display: Program VTG params after programming Global Sync for DCN2 2019-06-22 09:34:07 -05:00
dcn20_optc.h drm/amd/display: Add DSC support for Navi (v2) 2019-06-22 09:34:07 -05:00
dcn20_resource.c drm/amd/display: Add DSC support for Navi (v2) 2019-06-22 09:34:07 -05:00
dcn20_resource.h drm/amd/display: add fast_validate parameter to dcn20_validate_bandwidth 2019-06-22 09:34:07 -05:00
dcn20_stream_encoder.c drm/amd/display: Add DSC support for Navi (v2) 2019-06-22 09:34:07 -05:00
dcn20_stream_encoder.h
dcn20_vmid.c drm/amd/display: Add DCN2 VMID 2019-06-21 18:59:35 -05:00
dcn20_vmid.h drm/amd/display: Add DCN2 VMID 2019-06-21 18:59:35 -05:00
Makefile drm/amd/display: Add DSC support for Navi (v2) 2019-06-22 09:34:07 -05:00