All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] drm/i915/userptr: Deactivate a failed userptr if the worker reports an EFAULT
@ 2017-03-07 20:58 Chris Wilson
  2017-03-07 20:58 ` [PATCH v2 2/3] drm/i915/userptr: Only flush the workqueue if required Chris Wilson
                   ` (6 more replies)
  0 siblings, 7 replies; 23+ messages in thread
From: Chris Wilson @ 2017-03-07 20:58 UTC (permalink / raw)
  To: intel-gfx

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>
---
 drivers/gpu/drm/i915/i915_gem_userptr.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_gem_userptr.c b/drivers/gpu/drm/i915/i915_gem_userptr.c
index 22b46398831e..6ef05d5b884d 100644
--- 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);
 
-- 
2.11.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2017-03-09  7:39 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-07 20:58 [PATCH v2 1/3] drm/i915/userptr: Deactivate a failed userptr if the worker reports an EFAULT Chris Wilson
2017-03-07 20:58 ` [PATCH v2 2/3] drm/i915/userptr: Only flush the workqueue if required Chris Wilson
2017-03-08  8:06   ` Tvrtko Ursulin
2017-03-08  9:35   ` Michał Winiarski
2017-03-07 20:58 ` [PATCH v2 3/3] drm/i915/userptr: Disallow wrapping GTT into a userptr Chris Wilson
2017-03-08  8:25   ` Tvrtko Ursulin
2017-03-08 10:01     ` Chris Wilson
2017-03-08 13:04       ` Tvrtko Ursulin
2017-03-08 13:10         ` Chris Wilson
2017-03-08 13:12           ` Tvrtko Ursulin
2017-03-08 10:33   ` [PATCH v3] " Chris Wilson
2017-03-08 13:28     ` Tvrtko Ursulin
2017-03-08 13:46       ` Chris Wilson
2017-03-08 17:25         ` Chris Wilson
2017-03-08 21:58           ` Chris Wilson
2017-03-08 21:59   ` [PATCH v4] " Chris Wilson
2017-03-09  6:55     ` Tvrtko Ursulin
2017-03-09  7:39       ` Chris Wilson
2017-03-07 21:48 ` ✓ Fi.CI.BAT: success for series starting with [v2,1/3] drm/i915/userptr: Deactivate a failed userptr if the worker reports an EFAULT Patchwork
2017-03-08  8:02 ` [PATCH v2 1/3] " Tvrtko Ursulin
2017-03-08  9:34 ` Michał Winiarski
2017-03-08 13:17 ` ✓ Fi.CI.BAT: success for series starting with [v2,1/3] drm/i915/userptr: Deactivate a failed userptr if the worker reports an EFAULT (rev2) Patchwork
2017-03-08 22:48 ` ✓ Fi.CI.BAT: success for series starting with [v2,1/3] drm/i915/userptr: Deactivate a failed userptr if the worker reports an EFAULT (rev3) Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.