linux/drivers/gpu/drm/amd/display/amdgpu_dm
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
..
amdgpu_dm_helpers.c
amdgpu_dm_irq.c drm/amd/display: Fix brace style 2017-10-21 16:53:46 -04:00
amdgpu_dm_irq.h
amdgpu_dm_mst_types.c drm/amd/display: Miss register MST encoder cbs 2017-11-14 11:32:45 -05:00
amdgpu_dm_mst_types.h
amdgpu_dm_services.c drm/amd/display: add performance trace macro to dc 2017-10-21 16:50:00 -04:00
amdgpu_dm.c drm/amd/display: Do DC mode-change check when adding CRTCs 2017-11-28 17:55:26 -05:00
amdgpu_dm.h drm/amd/display: use configurable FBC option in dm 2017-11-13 17:33:53 -05:00
Makefile