]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Fix to be able to stop crc calculation
authorWayne Lin <Wayne.Lin@amd.com>
Tue, 24 Nov 2020 11:57:03 +0000 (19:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Dec 2020 16:33:55 +0000 (11:33 -0500)
commit02ce73b01e09e388614b22b7ebc71debf4a588f0
tree120e9e71ed2c9c15c227390ce8ec491ed3c1b350
parent570b302ba1ce508dbfa3f1d6c6dc6e2531e45be5
drm/amd/display: Fix to be able to stop crc calculation

[Why]
Find out when we try to disable CRC calculation,
crc generation is still enabled. Main reason is
that dc_stream_configure_crc() will never get
called when the source is AMDGPU_DM_PIPE_CRC_SOURCE_NONE.

[How]
Add checking condition that when source is
AMDGPU_DM_PIPE_CRC_SOURCE_NONE, we should also call
dc_stream_configure_crc() to disable crc calculation.
Also, clean up crc window when disable crc calculation.

Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c