drm/i915/userptr: Deactivate a failed userptr if the worker reports an EFAULT
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Mar 2017 20:58:49 +0000 (20:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Mar 2017 07:30:23 +0000 (07:30 +0000)
commit42953b3c517af6fe64e45e6491921f0c7c90511b
treeb64e49e030de7a60a6739afb08bf2339f67d0f26
parent86b04268d4b25c3a00fa5f77ceebabecf681040a
drm/i915/userptr: Deactivate a failed userptr if the worker reports an EFAULT

If the worker fails, it no longer has pages to release and can be
immediately removed from the invalidate-tree.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170307205851.32578-1-chris@chris-wilson.co.uk
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_gem_userptr.c