projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86b0426
)
drm/i915/userptr: Deactivate a failed userptr if the worker reports an EFAULT
author
Chris Wilson
<
[email protected]
>
Tue, 7 Mar 2017 20:58:49 +0000
(20:58 +0000)
committer
Chris Wilson
<
[email protected]
>
Thu, 9 Mar 2017 07:30:23 +0000
(07:30 +0000)
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 <
[email protected]
>
Cc: Michał Winiarski <
[email protected]
>
Cc: Tvrtko Ursulin <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Michał Winiarski <
[email protected]
>
Reviewed-by: Tvrtko Ursulin <
[email protected]
>
drivers/gpu/drm/i915/i915_gem_userptr.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem_userptr.c
b/drivers/gpu/drm/i915/i915_gem_userptr.c
index 22b46398831e09653b7d4621da08cdc1ff03a109..6ef05d5b884db3748b2662098864fe41f711670e 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem_userptr.c
+++ b/
drivers/gpu/drm/i915/i915_gem_userptr.c
@@
-541,6
+541,8
@@
__i915_gem_userptr_get_pages_worker(struct work_struct *_work)
}
obj->userptr.work = ERR_CAST(pages);
+ if (IS_ERR(pages))
+ __i915_gem_userptr_set_active(obj, false);
}
mutex_unlock(&obj->mm.lock);