]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54961d37d4304935e236f18d12a5df415709d258
treefc35df46d3ee3b859bf7c2823719fdde6619abf1
parent68158144dcc0d5fbb599949b011e35ec9e1aa297
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