]> rtime.felk.cvut.cz Git - linux-imx.git/commit
drm/radeon: rework locking ring emission mutex in fence deadlock detection v2
authorChristian König <deathsimple@vodafone.de>
Wed, 9 May 2012 13:34:48 +0000 (15:34 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 9 May 2012 16:22:20 +0000 (17:22 +0100)
commit8a47cc9ec1249eefd600adb273148c62879a560d
tree70cda5e8f7830a508431b1a87c472978c927150b
parent3b7a2b24ea2b703b3af595d0d4ee233ab0b36377
drm/radeon: rework locking ring emission mutex in fence deadlock detection v2

Some callers illegal called fence_wait_next/empty
while holding the ring emission mutex. So don't
relock the mutex in that cases, and move the actual
locking into the fence code.

v2: Don't try to unlock the mutex if it isn't locked.

Signed-off-by: Christian König <deathsimple@vodafone.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_fence.c
drivers/gpu/drm/radeon/radeon_pm.c
drivers/gpu/drm/radeon/radeon_ring.c