]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2abc0d7ef87989b8d361f7917fecec645bb0309d
tree0754b2bc4fd022f055baa280213c1a33db48cb4a
parent2c4b0b331cb7193f73786d88cea97832ea0267a0
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