Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/i915: Provide a timeout to i915_gem_wait_for_idle() on setup
Date: Mon, 09 Jul 2018 15:01:41 +0300	[thread overview]
Message-ID: <87h8l8ty6y.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <20180709104237.21880-2-chris@chris-wilson.co.uk>

Chris Wilson <chris@chris-wilson.co.uk> writes:

> With a broken GPU we expect it to fail during the initial
> GPU setup where do a couple of context switches to record the defaults.
> This is a task that takes a few milliseconds even on the slowest of
> devices, but we may have to wait 60s for hangcheck to give in and
> declare the machine inoperable. In this a case where any gpu hang is
> unacceptable, both from a timeliness and practical standpoint.
>
> We can therefore set a timeout on our wait-for-idle that is shorter than
> the hangcheck (which may be up to 60s for a declaring a wedged driver)
> and so detect the broken GPU much more quickly during driver load (and
> so prevent stalling userspace for ages).
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2018-07-09 12:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-09 10:42 [PATCH 1/3] drm/i915: Provide a timeout to i915_gem_wait_for_idle() Chris Wilson
2018-07-09 10:42 ` [PATCH 2/3] drm/i915: Provide a timeout to i915_gem_wait_for_idle() on setup Chris Wilson
2018-07-09 12:01   ` Mika Kuoppala [this message]
2018-07-09 10:42 ` [PATCH 3/3] drm/i915/selftests: Replace wait-on-timeout with explicit timeout Chris Wilson
2018-07-09 12:07   ` Mika Kuoppala
2018-07-09 11:18 ` ✓ Fi.CI.BAT: success for series starting with [1/3] drm/i915: Provide a timeout to i915_gem_wait_for_idle() Patchwork
2018-07-09 11:38 ` [PATCH 1/3] " Mika Kuoppala
2018-07-09 11:47   ` Chris Wilson
2018-07-09 11:52     ` Mika Kuoppala
2018-07-09 13:06       ` Chris Wilson
2018-07-09 13:54 ` ✓ Fi.CI.IGT: success for series starting with [1/3] " 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=87h8l8ty6y.fsf@gaia.fi.intel.com \
    --to=mika.kuoppala@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox