drm/radeon: Remove tests for -ERESTART from the TTM code.
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 7 Dec 2009 17:36:19 +0000 (18:36 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 10 Dec 2009 05:09:03 +0000 (15:09 +1000)
commit5cc6fbab9da5680e7e5d2507d0f0c2c52ff18031
tree0754b2bc4fd022f055baa280213c1a33db48cb4a
parent98ffc4158e12008102cb6ae242a7fc46f9243f0d
drm/radeon: Remove tests for -ERESTART from the TTM code.

Also sets affected TTM calls up to not wait interruptible, since
that would cause an in-kernel spin until the TTM call succeeds, since
the Radeon code does not return to user-space when a signal is received.

Modifies interruptible fence waits to return -ERESTARTSYS rather than
-EBUSY when interrupted by a signal, since that's the (yet undocumented)
semantics required by the TTM sync object hooks.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_fence.c
drivers/gpu/drm/radeon/radeon_object.c