linux/drivers/gpu/drm/amd
Nicholas Kazlauskas 452575c570 drm/amd/display: Lock the CRTC when setting CRC source
[Why]
We need to ensure that we're holding the lock on the CRTC when setting
the CRC source since we're modifying the CRTC state directly.

We also need to wait for any outstanding non-blocking commits to finish
so they aren't reading state that's potentially being modified -
non-blocking commits don't hold the CRTC lock while doing commit tail
work.

[How]
Lock the CRTC using its mutex. While holding the lock check if there's
any commit active on the CRTC - if there is, it's non-blocking and
we should wait until it's finished by waiting for hw_done to be
signaled since that's the last point where we touch CRTC state.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <David.Francis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-08-21 22:18:32 -05:00
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu drm/amd/amdgpu: disable MMHUB PG for navi10 2019-08-21 22:18:05 -05:00
amdkfd drm/amdkfd: Fill the name field in node topology with asic name v2 2019-08-21 22:16:28 -05:00
display drm/amd/display: Lock the CRTC when setting CRC source 2019-08-21 22:18:32 -05:00
include drm/amdgpu: Fix a typo in the include header guard of 'navi12_ip_offset.h' 2019-08-21 22:16:55 -05:00
powerplay drm/amd/powerplay: correct typo 2019-08-21 22:17:57 -05:00