aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/basics/log_helpers.c
diff options
context:
space:
mode:
authorLeo (Sunpeng) Li <[email protected]>2017-11-10 20:02:19 +0000
committerAlex Deucher <[email protected]>2017-11-28 22:55:26 +0000
commit8ffca5dca093cdd25264e782cc0c4539cb318925 (patch)
treef780d5fb3940769939df3af82216f9895813bc11 /drivers/gpu/drm/amd/display/dc/basics/log_helpers.c
parentdrm/amd/display: Revert noisy assert messages (diff)
downloadkernel-8ffca5dca093cdd25264e782cc0c4539cb318925.tar.gz
kernel-8ffca5dca093cdd25264e782cc0c4539cb318925.zip
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 <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/basics/log_helpers.c')
0 files changed, 0 insertions, 0 deletions