drm/amdgpu: Use atomic function to disable crtcs with dc enabled
authorMikita Lipski <mikita.lipski@amd.com>
Wed, 14 Mar 2018 17:41:29 +0000 (13:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Mar 2018 04:43:42 +0000 (23:43 -0500)
commitff97cba8c1b24f6017e16ca6facca3c3f32d2c00
tree247210b1c60fc8226618869a847f458a8c0617eb
parent864917a3b8d459ee2cfd37a1d1c9251cca88d108
drm/amdgpu: Use atomic function to disable crtcs with dc enabled

This change fixes the deadlock when unloading the driver with displays
connected.

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c