From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: matthew.auld@intel.com
Subject: Re: [PATCH 3/7] drm/i915: Signal fence completion from i915_request_wait
Date: Wed, 19 Jun 2019 15:27:21 +0100 [thread overview]
Message-ID: <22892c2a-194f-d41e-2408-1c4b2a97daa2@linux.intel.com> (raw)
In-Reply-To: <20190619112341.9082-3-chris@chris-wilson.co.uk>
On 19/06/2019 12:23, Chris Wilson wrote:
> With the upcoming change to automanaged i915_active, the intent is that
> whenever we wait on the set of active fences, they are signaled and
> collected. The requirement is that all successful returns from
> i915_request_wait() signal the fence, so fixup the one remaining path
> where we may return before the interrupt has been run.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> ---
> drivers/gpu/drm/i915/i915_request.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c
> index 0c2b53b8a3d1..8d59c35bd22f 100644
> --- a/drivers/gpu/drm/i915/i915_request.c
> +++ b/drivers/gpu/drm/i915/i915_request.c
> @@ -1451,8 +1451,10 @@ long i915_request_wait(struct i915_request *rq,
> for (;;) {
> set_current_state(state);
>
> - if (i915_request_completed(rq))
> + if (i915_request_completed(rq)) {
> + dma_fence_signal(&rq->fence);
> break;
> + }
>
> if (signal_pending_state(state, current)) {
> timeout = -ERESTARTSYS;
>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Patch is fine, but I have to say commit message scares me a bit. Where
are we adding such subtle fragility that wait has to exit with fence
signaled? Is it just some specific i915_request_wait call site or all of
them?
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:[~2019-06-19 14:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-19 11:23 [PATCH 1/7] drm/i915/gtt: Defer address space cleanup to an RCU worker Chris Wilson
2019-06-19 11:23 ` [PATCH 2/7] drm/i915: Track i915_active using debugobjects Chris Wilson
2019-06-19 11:23 ` [PATCH 3/7] drm/i915: Signal fence completion from i915_request_wait Chris Wilson
2019-06-19 14:27 ` Tvrtko Ursulin [this message]
2019-06-19 14:35 ` Chris Wilson
2019-06-19 11:23 ` [PATCH 4/7] drm/i915: Remove waiting & retiring from shrinker paths Chris Wilson
2019-06-19 11:23 ` [PATCH 5/7] drm/i915: Throw away the active object retirement complexity Chris Wilson
2019-06-19 11:23 ` [PATCH 6/7] drm/i915: Provide an i915_active.acquire callback Chris Wilson
2019-06-19 11:23 ` [PATCH 7/7] drm/i915: Push the i915_active.retire into a worker Chris Wilson
2019-06-19 11:53 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/7] drm/i915/gtt: Defer address space cleanup to an RCU worker Patchwork
2019-06-19 11:56 ` ✗ Fi.CI.SPARSE: " Patchwork
2019-06-19 12:34 ` ✗ Fi.CI.BAT: failure " Patchwork
2019-06-19 14:51 ` [PATCH 1/7] " Tvrtko Ursulin
2019-06-19 14:56 ` Chris Wilson
2019-06-20 16:51 ` Tvrtko Ursulin
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=22892c2a-194f-d41e-2408-1c4b2a97daa2@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
--cc=matthew.auld@intel.com \
/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.