From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/3] drm/i915: Warn if we hit the timeout for wait-for-idle
Date: Wed, 08 Aug 2018 14:58:35 +0300 [thread overview]
Message-ID: <871sb95atw.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <20180808105101.913-1-chris@chris-wilson.co.uk>
Chris Wilson <chris@chris-wilson.co.uk> writes:
> Hitting the timeout and finding that all engines are actually idle is
> indicative of an interrupt delivery problem. This problem is an issue
> that we need to fix, so make sure we log it and provide the GEM trace.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Mika Kuoppala <mika.kuoppala@intel.com>
> ---
> drivers/gpu/drm/i915/i915_gem.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> index 460f256114f7..71502512ac1f 100644
> --- a/drivers/gpu/drm/i915/i915_gem.c
> +++ b/drivers/gpu/drm/i915/i915_gem.c
> @@ -3823,6 +3823,12 @@ int i915_gem_wait_for_idle(struct drm_i915_private *i915,
> if (timeout < 0)
> return timeout;
> }
> + if (GEM_SHOW_DEBUG() && !timeout) {
> + /* Presume that timeout was non-zero to begin with! */
Now that you mentioned it, with all the current callsites you could
warn or even build_bug to enforce timeout > 0.
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> + dev_warn(&i915->drm.pdev->dev,
> + "Missed idle-completion interrupt!\n");
> + GEM_TRACE_DUMP();
> + }
>
> err = wait_for_engines(i915);
> if (err)
> --
> 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-08-08 11:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-08 10:50 [PATCH 1/3] drm/i915: Warn if we hit the timeout for wait-for-idle Chris Wilson
2018-08-08 10:51 ` [PATCH 2/3] drm/i915: Unmask user interrupts writes into HWSP on snb/ivb/vlv/hsw Chris Wilson
2018-08-08 10:51 ` [PATCH 3/3] drm/i915: Remove extra waiter kick on legacy resets Chris Wilson
2018-08-08 11:54 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/3] drm/i915: Warn if we hit the timeout for wait-for-idle Patchwork
2018-08-08 11:58 ` Mika Kuoppala [this message]
2018-08-08 12:11 ` ✓ Fi.CI.BAT: success " Patchwork
2018-08-08 16:09 ` ✓ Fi.CI.IGT: " 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=871sb95atw.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 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.