drm/radeon: fix a bug with the ring syncing code
authorChristian König <deathsimple@vodafone.de>
Wed, 2 May 2012 13:11:18 +0000 (15:11 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 3 May 2012 08:16:27 +0000 (09:16 +0100)
commit8f676c4c6f0f500616560f13c0276ab6b4e39a6a
tree722ab761de1b53460f4b0308c08f0e41a18b4b5c
parentbfb9a07785fea0c41dff1a38890bc9b4679a9430
drm/radeon: fix a bug with the ring syncing code

Rings need to lock in order, otherwise
the ring subsystem can deadlock.

v2: fix error handling and number of locked doublewords.
v3: stop creating unneeded semaphores.

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-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_cs.c
drivers/gpu/drm/radeon/radeon_semaphore.c
drivers/gpu/drm/radeon/radeon_ttm.c