]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit43a6a02eb3558d1f3a0618f9bf02328662fb06e3
tree5c59d716008dbd2e10441a6a42bf7214ea39e11d
parent428da2bdb05d76c48d0bd8fbfa2e4c102685be08
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