linux_dsm_epyc7002/drivers/gpu/drm/amd/display/dc/dce110
Gary Kattan 240d09d070 drm/amd/display: Ungate stream before programming registers
[Why]
Certain tests fail after a fresh reboot. This is caused by writing to
registers prior to ungating the stream we're trying to program.

[How]
Make sure the stream is ungated before writing to its registers.
This also enables power-gating plane resources before init_hw
initializes them.
Additionally, this does some refactoring to move gating/ungating
from enable/disable_plane functions to where stream resources are
enabled/disabled.

Signed-off-by: Gary Kattan <gary.kattan@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-02-19 15:58:26 -05:00
..
dce110_compressor.c amdgpu/dc: remove various variables that are defined but never used 2019-01-14 15:04:43 -05:00
dce110_compressor.h amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_hw_sequencer.c drm/amd/display: Ungate stream before programming registers 2019-02-19 15:58:26 -05:00
dce110_hw_sequencer.h drm/amd/display: remove safe_to_lower flag from dc, use 2 functions instead 2018-11-05 14:20:40 -05:00
dce110_mem_input_v.c drm/amd/display: make function tables const 2018-07-10 14:17:11 -05:00
dce110_mem_input_v.h drm/amd/display: dce 8 - 12 mem_input refactor to new style 2017-09-26 18:07:12 -04:00
dce110_opp_csc_v.c amdgpu/dc: Fix enum mismatch in calls to program_color_matrix() 2018-02-19 14:19:44 -05:00
dce110_opp_regamma_v.c drm/amd/display: Remove extra arr_points element 2017-12-06 12:47:36 -05:00
dce110_opp_v.c amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_opp_v.h amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_resource.c drm/amd/display: fix eDP fast bootup for pre-raven asic 2019-01-25 16:15:36 -05:00
dce110_resource.h amdgpu/dc: remove pointless return from build_pipe_hw_param 2017-09-29 13:02:41 -04:00
dce110_timing_generator_v.c drm/amd/display: remove dummy is_blanked() to optimise boot time 2018-05-15 13:43:07 -05:00
dce110_timing_generator_v.h amdgpu/dc: another round of dce/dcn construct cleanups. 2017-09-29 13:02:34 -04:00
dce110_timing_generator.c drm/amd/display: Program v_total_min/max after v_total_cntl 2018-04-11 13:08:03 -05:00
dce110_timing_generator.h drm/amd/display: Expose DCE110 CRC functions for DCE8 2018-02-19 14:20:10 -05:00
dce110_transform_v.c drm/amd/display: add HDR visual confirm 2018-07-16 16:11:49 -05:00
dce110_transform_v.h amdgpu/dc: make program_regamma_pwl return void 2017-09-29 13:02:08 -04:00
Makefile drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00