linux/drivers/gpu/drm/amd
Nicholas Kazlauskas d8d2f174bc drm/amd/display: Clear stream->mode_changed after commit
[Why]
The stream->mode_changed flag can persist in the following sequence
of atomic commits:

Commit 1:
Enable CRTC0 (mode_changed = true), Enable CRTC1 (mode_changed = true)

Commit 2:
Disable CRTC1 (mode_changed = false)

In this sequence we want to keep the exiting CRTC0 but it's not in the
atomic state for the commit since it hasn't been modified. In this case
the stream->mode_changed flag persists as true and we don't re-program
the planes for the existing stream.

[How]
The flag needs to be cleared and it makes the most sense to do it within
DC after the state has been committed. Nothing following dc_commit_state
should think that the stream's mode has changed.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Acked-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-02-19 15:58:26 -05:00
..
acp drm/amdgpu: Remove wrapper layer of cgs irq handling 2018-03-21 14:36:58 -05:00
amdgpu Revert "drm/amdgpu: Fix bugs in setting CP RB/MEC DOORBELL_RANGE registers" 2019-02-19 15:58:26 -05:00
amdkfd drm/amdkfd: Optimize out sdma doorbell array in kgd2kfd_shared_resources 2019-02-18 18:00:50 -05:00
display drm/amd/display: Clear stream->mode_changed after commit 2019-02-19 15:58:26 -05:00
include drm/amdkfd: Optimize out sdma doorbell array in kgd2kfd_shared_resources 2019-02-18 18:00:50 -05:00
lib
powerplay drm/amd/powerplay/smu7_hwmgr: Mark expected switch fall-throughs 2019-02-18 18:01:10 -05:00