drm/radeon: clear reset flags if engines are idle
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2013 16:04:39 +0000 (11:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Jan 2013 14:06:38 +0000 (09:06 -0500)
commit19fc42ed9950d5fe17089c0a928121047c882092
tree2cf4b53dcf43d870e6c1e9d3b7492381c1062005
parent7b4cf994e4c6ba48872bb25253cc393b7fb74c82
drm/radeon: clear reset flags if engines are idle

Fixes a hard lock in the gpu reset code after the
rework for DMA support (0ecebb9e0d14e9948e0b1529883a776758117d6f
"drm/radeon: switch to a finer grained reset for evergreen")
due to not bailing before the MC shutdown if the relevant engines
are idle.

Discussion:
http://lists.freedesktop.org/archives/dri-devel/2013-January/032985.html

Reported-by: Eldad Zack <eldad@fogrefinery.com>
Tested-by: Eldad Zack <eldad@fogrefinery.com>
Acked-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/si.c