From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Skip repeated calls to i915_gem_set_wedged()
Date: Mon, 23 Jul 2018 15:23:32 -0700 [thread overview]
Message-ID: <20180723222332.GA16907@intel.com> (raw)
In-Reply-To: <20180723145335.24579-1-chris@chris-wilson.co.uk>
On Mon, Jul 23, 2018 at 03:53:35PM +0100, Chris Wilson wrote:
> If we already wedged, i915_gem_set_wedged() becomes a complicated no-op.
>
> References: https://bugs.freedesktop.org/show_bug.cgi?id=107343
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/i915/i915_gem.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> index 8b52cb768a67..a4031fab57b0 100644
> --- a/drivers/gpu/drm/i915/i915_gem.c
> +++ b/drivers/gpu/drm/i915/i915_gem.c
> @@ -3312,8 +3312,8 @@ void i915_gem_set_wedged(struct drm_i915_private *i915)
> intel_engine_dump(engine, &p, "%s\n", engine->name);
> }
>
> - set_bit(I915_WEDGED, &i915->gpu_error.flags);
> - smp_mb__after_atomic();
> + if (test_and_set_bit(I915_WEDGED, &i915->gpu_error.flags))
> + goto out;
>
> /*
> * First, stop submission to hw, but do not yet complete requests by
> @@ -3372,6 +3372,7 @@ void i915_gem_set_wedged(struct drm_i915_private *i915)
> i915_gem_reset_finish_engine(engine);
> }
>
> +out:
> GEM_TRACE("end\n");
>
> wake_up_all(&i915->gpu_error.reset_queue);
> --
> 2.18.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-07-23 22:23 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-23 14:53 [PATCH] drm/i915: Skip repeated calls to i915_gem_set_wedged() Chris Wilson
2018-07-23 15:35 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-07-23 16:44 ` ✓ Fi.CI.IGT: " Patchwork
2018-07-23 17:21 ` [PATCH] " Chris Wilson
2018-07-23 17:37 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Skip repeated calls to i915_gem_set_wedged() (rev2) Patchwork
2018-07-23 17:59 ` ✓ Fi.CI.BAT: success " Patchwork
2018-07-23 19:39 ` [PATCH] drm/i915: Skip repeated calls to i915_gem_set_wedged() Chris Wilson
2018-07-23 19:41 ` ✓ Fi.CI.IGT: success for drm/i915: Skip repeated calls to i915_gem_set_wedged() (rev2) Patchwork
2018-07-23 19:54 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Skip repeated calls to i915_gem_set_wedged() (rev3) Patchwork
2018-07-23 19:56 ` [PATCH v4] drm/i915: Skip repeated calls to i915_gem_set_wedged() Chris Wilson
2018-07-23 20:15 ` ✓ Fi.CI.BAT: success for drm/i915: Skip repeated calls to i915_gem_set_wedged() (rev3) Patchwork
2018-07-23 20:19 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Skip repeated calls to i915_gem_set_wedged() (rev4) Patchwork
2018-07-23 20:42 ` ✗ Fi.CI.BAT: failure " Patchwork
2018-07-23 22:23 ` Rodrigo Vivi [this message]
2018-07-25 7:09 ` [PATCH] drm/i915: Skip repeated calls to i915_gem_set_wedged() Chris Wilson
-- strict thread matches above, loose matches on Subject: below --
2018-08-15 9:25 Chris Wilson
2018-08-15 9:40 ` Chris Wilson
2018-08-15 9:42 ` Chris Wilson
2018-08-15 12:45 ` Chris Wilson
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=20180723222332.GA16907@intel.com \
--to=rodrigo.vivi@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.