From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v3 4/4] drm/i915: Add is-wedged flag to intel_engine_dump()
Date: Fri, 17 Nov 2017 15:34:25 +0200 [thread overview]
Message-ID: <87efoxowpq.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <20171109235407.5595-4-chris@chris-wilson.co.uk>
Chris Wilson <chris@chris-wilson.co.uk> writes:
> Comparing the state tested by intel_engine_is_idle() and printed by
> intel_engine_dump(), the only bit not shown is whether or not the device
> is wedged. Add that little bit of information to the pretty printer so
> that if the engine fails to idle we can see why.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/intel_engine_cs.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_engine_cs.c b/drivers/gpu/drm/i915/intel_engine_cs.c
> index af5ecd4e5690..07432d3c6641 100644
> --- a/drivers/gpu/drm/i915/intel_engine_cs.c
> +++ b/drivers/gpu/drm/i915/intel_engine_cs.c
> @@ -1744,6 +1744,9 @@ void intel_engine_dump(struct intel_engine_cs *engine,
> drm_vprintf(m, fmt, &ap);
> va_end(ap);
>
> + if (i915_terminally_wedged(&engine->i915->gpu_error))
> + drm_printf(m, "*** WEDGED ***\n");
> +
> drm_printf(m, "\tcurrent seqno %x, last %x, hangcheck %x [%d ms], inflight %d\n",
> intel_engine_get_seqno(engine),
> intel_engine_last_submit(engine),
> --
> 2.15.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-11-17 13:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-09 23:54 [PATCH v3 1/4] drm-print Chris Wilson
2017-11-09 23:54 ` [PATCH v3 2/4] drm/i915: Make engine state pretty-printer header configurable Chris Wilson
2017-11-10 12:27 ` Mika Kuoppala
2017-11-09 23:54 ` [PATCH v3 3/4] drm/i915: Include engine state on detecting a missed breadcrumb/seqno Chris Wilson
2017-11-10 9:43 ` [PATCH v4] " Chris Wilson
2017-11-09 23:54 ` [PATCH v3 4/4] drm/i915: Add is-wedged flag to intel_engine_dump() Chris Wilson
2017-11-17 13:34 ` Mika Kuoppala [this message]
2017-11-10 0:14 ` ✓ Fi.CI.BAT: success for series starting with [v3,1/4] drm-print Patchwork
2017-11-10 1:10 ` ✓ Fi.CI.IGT: " Patchwork
2017-11-10 9:52 ` [PATCH v2] drm/printer: Add drm_vprintf() Chris Wilson
2017-11-10 11:28 ` Daniel Vetter
2017-11-10 10:03 ` ✗ Fi.CI.BAT: failure for series starting with [v3,1/4] drm-print (rev2) Patchwork
2017-11-10 10:20 ` ✗ Fi.CI.BAT: warning for series starting with [v2] drm/printer: Add drm_vprintf() (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=87efoxowpq.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