Skip to content

Commit 2f0fa78

Browse files
Wayne Linalexdeucher
authored andcommitted
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. Acked-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Wayne Lin <Wayne.Lin@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent a7ddd22 commit 2f0fa78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ int amdgpu_dm_crtc_configure_crc_source(struct drm_crtc *crtc,
113113
mutex_lock(&adev->dm.dc_lock);
114114

115115
/* Enable CRTC CRC generation if necessary. */
116-
if (dm_is_crc_source_crtc(source)) {
116+
if (dm_is_crc_source_crtc(source) || source == AMDGPU_DM_PIPE_CRC_SOURCE_NONE) {
117117
if (!dc_stream_configure_crc(stream_state->ctx->dc,
118118
stream_state, NULL, enable, enable)) {
119119
ret = -EINVAL;

0 commit comments

Comments
 (0)