]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Re-enable CRC capture following modeset
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 15 Jan 2019 15:33:58 +0000 (10:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Jan 2019 16:44:03 +0000 (11:44 -0500)
commitb01e7485005a871df5583424ce7b6a74b52d0d56
tree5c59d716008dbd2e10441a6a42bf7214ea39e11d
parent62f59e6191466e7c17df375c4357b9e728aefc20
drm/amd/display: Re-enable CRC capture following modeset

[Why]
During any modeset the CRTC stream is removed and a new stream is added.
This new stream doesn't carry over CRC capture state if it was
previously set.

[How]
Re-program the stream for CRC capture. The existing DRM callback can
be re-used here for the most part - the only modification needed is
additional locking now that it's called from within commit tail.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Sun peng Li <Sunpeng.Li@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c