TencentOS-kernel/drivers/gpu/drm/amd
Wayne Lin 529735e85b drm/amd/display: Fix to be able to stop crc calculation
[ Upstream commit 02ce73b01e09e388614b22b7ebc71debf4a588f0 ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-04-12 12:51:35 +08:00
..
acp Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
amdgpu drm/amdgpu/psp: fix psp gfx ctrl cmds 2021-04-12 12:51:35 +08:00
amdkfd drm/amdkfd: Fix leak in dmabuf import 2021-03-16 16:43:21 +08:00
display drm/amd/display: Fix to be able to stop crc calculation 2021-04-12 12:51:35 +08:00
include Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
powerplay drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running 2021-03-16 16:40:43 +08:00