]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit0085c95061e836f3ed489d042b502733c094e7e4
treee794cfa956b05f53c3c9c93f68c2b6b00a45a631
parent557017a0e219b2a466a71a8d72332a715d460416
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