]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/amd/display: Move copy_construct from state_alloc to atomic_check.
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Thu, 21 Sep 2017 20:13:00 +0000 (16:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:16:48 +0000 (18:16 -0400)
commitd4d4a64574ab546811d29a21366afe6bb6cdb264
treef68dd9f14af3d6a560e32cda780ebfc1608aa1d4
parent81c90ec0348002b6f6b0c108e3e60e666cb4b673
drm/amd/display: Move copy_construct from state_alloc to atomic_check.

Previously atomic_check assumed that dc_state is allocated and filled
in. This is not the case when we hit EDEADLK and have to backup and
retry.

We could change atomic_state_clear but that revealed some other
problems. For now let's create and construct dc_state in atomic_check.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c