drm/radeon: rework and fix reset detection v2
authorChristian König <christian.koenig@amd.com>
Tue, 29 Oct 2013 19:14:47 +0000 (20:14 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Nov 2013 19:25:51 +0000 (15:25 -0400)
commitf9eaf9ae782d6480f179850e27e6f4911ac10227
treefc35df46d3ee3b859bf7c2823719fdde6619abf1
parent1dac28eb726109e7ac256051b157baf60b21a5f7
drm/radeon: rework and fix reset detection v2

Stop fiddling with jiffies, always wait for RADEON_FENCE_JIFFIES_TIMEOUT.
Consolidate the two wait sequence implementations into just one function.
Activate all waiters and remember if the reset was already done instead of
trying to reset from only one thread.

v2: clear reset flag earlier to avoid timeout in IB test

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_fence.c