]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: avoid deadlock if GPU lockup is detected in ib_pool_get
authorJerome Glisse <jglisse@redhat.com>
Mon, 23 Jan 2012 16:52:15 +0000 (11:52 -0500)
committerDave Airlie <airlied@redhat.com>
Wed, 25 Jan 2012 09:42:06 +0000 (09:42 +0000)
commit40a56fe0d2d495d9128b0423590b03c1ce50710b
treeb8e95f24e697b0876cf4e28ead5c1b314af178bc
parent0daf481d0ec3d1553740dc3ee4491d09a9d44ecb
drm/radeon: avoid deadlock if GPU lockup is detected in ib_pool_get

If GPU lockup is detected in ib_pool get we are holding the ib_pool
mutex that will be needed by the GPU reset code. As ib_pool code is
safe to be reentrant from GPU reset code we should not block if we
are trying to get the ib pool lock on the behalf of the same userspace
caller, thus use the radeon_mutex_lock helper.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
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_ring.c