linux_dsm_epyc7002/drivers/gpu/drm/amd/display
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
..
amdgpu_dm drm/amd/display: Lock the CRTC when setting CRC source 2019-08-21 22:18:32 -05:00
dc drm/amd/display: Load NV12 SOC BB from firmware 2019-08-15 10:57:42 -05:00
include drm/amd/display: Add Logging for Gamma Related information (2/2) 2019-08-15 10:56:46 -05:00
modules drm/amd/display: Add Logging for Gamma Related information (1/2) 2019-08-15 10:55:55 -05:00
Kconfig drm/amd/display: Add drm_audio_component support to amdgpu_dm 2019-07-11 14:37:24 -05:00
Makefile drm/amd/display: move clk_mgr files to right place 2019-05-31 10:39:31 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00