All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Park the breadcrumbs signaler across a GPU reset
Date: Mon, 13 Feb 2017 10:48:14 +0000	[thread overview]
Message-ID: <20170213104814.GD30915@nuc-i3427.alporthouse.com> (raw)
In-Reply-To: <87h93ypefh.fsf@gaia.fi.intel.com>

On Mon, Feb 13, 2017 at 12:34:26PM +0200, Mika Kuoppala wrote:
> Chris Wilson <chris@chris-wilson.co.uk> writes:
> > At least we now do the irq_barrier hammer once at the start in reset_prepare,
> > so we should be better, but I'm wondering if we want to store the
> > request from prepare and then double check in the actual reset.
> >
> 
> #1 store seqno from hangcheck
> #2 get mutex for reset
> #3 barrier
> #4 find_request (only once) 
> #5 on prepare path, check the submachinery
> against this req and if inconsistent, queue hangcheck
> and return from prepare without resetting.
> 
> ?

Per-engine, or global voting.

The issue I just found with the find_request once plan is that it does
have to be after the reset / hw is truly idle. And then we should employ
a really big hammer on top. The problem is that for legacy ringbuffer
sumbission, we restart from the point of last retirement and so if our
retirement is inaccurate we may replay one too many requests. Hmm. we
may get corruption either way of course, so perhaps this is not as big
an issue as I thought.

Aborting the reset if we detect just before we do that the GPU recovered
is definitely an improvement over my plan.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

      reply	other threads:[~2017-02-13 10:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-12  0:44 [PATCH] drm/i915: Park the breadcrumbs signaler across a GPU reset Chris Wilson
2017-02-12  1:22 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-02-12 14:08 ` [PATCH] " Chris Wilson
2017-02-13  9:56 ` Mika Kuoppala
2017-02-13 10:15   ` Chris Wilson
2017-02-13 10:34     ` Mika Kuoppala
2017-02-13 10:48       ` Chris Wilson [this message]

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=20170213104814.GD30915@nuc-i3427.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=mika.kuoppala@linux.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.