]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: use one wait queue for all rings add fence_wait_any v2
authorJerome Glisse <jglisse@redhat.com>
Wed, 9 May 2012 13:34:55 +0000 (15:34 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 9 May 2012 16:22:38 +0000 (17:22 +0100)
commitf2dc61261d590e1037e0f9316d455bc7a09eb353
treee794cfa956b05f53c3c9c93f68c2b6b00a45a631
parentac14051a2fbcf260c696cd723564ed9266714cd1
drm/radeon: use one wait queue for all rings add fence_wait_any v2

Use one wait queue for all rings. When one ring progress, other
likely does to and we are not expecting to have a lot of waiter
anyway.

Also add a fence_wait_any that will wait until the first fence
in the fence array (one fence per ring) is signaled. This allow
to wait on all rings.

v2: some minor cleanups and improvements.

Signed-off-by: Christian König <deathsimple@vodafone.de>
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_fence.c