drm/radeon/kms: IB locking dumps out a lockdep ordering issue
authorDave Airlie <airlied@linux.ie>
Tue, 15 Sep 2009 01:12:56 +0000 (11:12 +1000)
committerDave Airlie <airlied@linux.ie>
Tue, 15 Sep 2009 23:15:39 +0000 (09:15 +1000)
commitecb114a128d150422d22eda238cb812f6b20bf39
tree6cd09599363f9760fed8a210c576c984cbbeec18
parent42dea5ddb56fe10e1d9a7840ddcb1df97a208a99
drm/radeon/kms: IB locking dumps out a lockdep ordering issue

We sometimes lock IB then the ring and sometimes the ring then
the IB. This is mostly due to the IB locking not being well defined
about what data in the structs it actually locks. Define what I
believe is the correct behaviour and gets rid of the lock dep ordering
warning.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600_blit_kms.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_ring.c