drm/amdgpu: disable CRTCs before teardown
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 25 Sep 2016 20:34:48 +0000 (23:34 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Sep 2016 16:22:21 +0000 (12:22 -0400)
commita951ed85abd4615e98e36b536e3b3b07b22a88ac
treebe39fc799fb6342242dbeebacd2d0688d2874979
parent47a66e45d7a7613322549c2475ea9d809baaf514
drm/amdgpu: disable CRTCs before teardown

Some code called by drm_crtc_force_disable_all() wants to wait for all
fences, so only do fence teardown after CRTCs are disabled.

Fixes: 84b89bdcedf8 ("drm/amdgpu: Turn off CRTCs on driver unload")
Cc: stable@vger.kernel.org # v4.8+
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c