linux_dsm_epyc7002/drivers/gpu/drm/amd
Leo (Sunpeng) Li 8ffca5dca0 drm/amd/display: Do DC mode-change check when adding CRTCs
Within atomic check, dm_update_crtcs_state is called twice. First to
remove from the dc_state, and subsequently to add to it.

In both calls, a secondary mode-change check is done using dc-level
states. We shouldn't be doing this while removing, since a new
dc_stream_state has not been created to do the necessary comparison.
Because of this, the mode_changed flag within the DRM state can be
mistakenly set to false. Doing so only when adding prevents this.

We are also guaranteed that a call to add will come after remove, or
else the atomic check fails (and a commit will not happen).

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-11-28 17:55:26 -05:00
..
acp drm: amd: remove broken include path 2017-03-14 19:19:44 -04:00
amdgpu drm/amdgpu: drop experimental flag for raven 2017-11-28 17:53:34 -05:00
amdkfd main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
display drm/amd/display: Do DC mode-change check when adding CRTCs 2017-11-28 17:55:26 -05:00
include amdgpu DC display code for Vega. 2017-11-17 14:34:42 -08:00
lib drm/amd/chash: Fix typo 2017-09-28 16:03:29 -04:00
powerplay fixes/cleanups for rc1, non-desktop flags for VR 2017-11-23 21:04:56 -10:00
scheduler main drm pull request for v4.15 2017-11-15 20:42:10 -08:00