From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v2 1/3] drm/i915/userptr: Deactivate a failed userptr if the worker reports an EFAULT
Date: Wed, 8 Mar 2017 08:02:24 +0000 [thread overview]
Message-ID: <489caae7-9db3-0e13-4e19-d841e25a238e@linux.intel.com> (raw)
In-Reply-To: <20170307205851.32578-1-chris@chris-wilson.co.uk>
On 07/03/2017 20:58, Chris Wilson wrote:
> 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);
>
>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-03-08 8:02 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Tvrtko Ursulin [this message]
2017-03-08 9:34 ` [PATCH v2 1/3] " 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=489caae7-9db3-0e13-4e19-d841e25a238e@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.