summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display
diff options
context:
space:
mode:
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>2018-11-08 16:19:22 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-11-30 12:02:57 -0500
commited20dc0d8ca8285458f57e160ee3f99c6a9d8c48 (patch)
tree3c3810927aa210fc17d60d8dd4e65c323998ba21 /drivers/gpu/drm/amd/display
parent6de89f79ea7ad4804e3608863ffe3a155917b8b9 (diff)
downloadlinux-stable-ed20dc0d8ca8285458f57e160ee3f99c6a9d8c48.tar.gz
linux-stable-ed20dc0d8ca8285458f57e160ee3f99c6a9d8c48.tar.bz2
linux-stable-ed20dc0d8ca8285458f57e160ee3f99c6a9d8c48.zip
drm/amd/display: Copy crc_enabled when duplicating dm_crtc_state
[Why] When running igt@kms_plane@pixel-format-pipe-* tests the CRC read will time out and the test will fail. This is because the CRTC is duplicated but the crc_enabled parameter isn't copied over to the new dm_crtc_state. CRC reads will time out because amdgpu_dm_crtc_handle_crc_irq will no longer call drm_crtc_add_crc_entry. [How] Copy crc_enabled when duplicating the state. Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Reviewed-by: David Francis <David.Francis@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>
Diffstat (limited to 'drivers/gpu/drm/amd/display')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index bc3cf47a9a88..55e9b1249dd4 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -3003,6 +3003,7 @@ dm_crtc_duplicate_state(struct drm_crtc *crtc)
state->abm_level = cur->abm_level;
state->vrr_supported = cur->vrr_supported;
state->freesync_config = cur->freesync_config;
+ state->crc_enabled = cur->crc_enabled;
/* TODO Duplicate dc_stream after objects are stream object is flattened */