Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: Re: [PATCH] drm/i915: handle faked missed interrupts as simulated hangs, too
Date: Wed, 30 Oct 2013 10:36:46 +0100	[thread overview]
Message-ID: <20131030093646.GD4167@phenom.ffwll.local> (raw)
In-Reply-To: <1382948653-31350-1-git-send-email-daniel.vetter@ffwll.ch>

On Mon, Oct 28, 2013 at 09:24:13AM +0100, Daniel Vetter wrote:
> Otherwise QA will report this as a real hang when running igt
> ZZ_missed_irq.
> 
> v2: Actually test the right stuff and really shut up the DRM_ERROR
> output ...
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70747
> Tested-by: lu hua <huax.lu@intel.com>
> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

Merged with Chris' irc-ack.
-Daniel

> ---
>  drivers/gpu/drm/i915/i915_irq.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
> index 1a7dc7754e2f..68936da7c25d 100644
> --- a/drivers/gpu/drm/i915/i915_irq.c
> +++ b/drivers/gpu/drm/i915/i915_irq.c
> @@ -2258,8 +2258,12 @@ static void i915_hangcheck_elapsed(unsigned long data)
>  				if (waitqueue_active(&ring->irq_queue)) {
>  					/* Issue a wake-up to catch stuck h/w. */
>  					if (!test_and_set_bit(ring->id, &dev_priv->gpu_error.missed_irq_rings)) {
> -						DRM_ERROR("Hangcheck timer elapsed... %s idle\n",
> -							  ring->name);
> +						if (!(dev_priv->gpu_error.test_irq_rings & intel_ring_flag(ring)))
> +							DRM_ERROR("Hangcheck timer elapsed... %s idle\n",
> +								  ring->name);
> +						else
> +							DRM_INFO("Fake missed irq on %s\n",
> +								 ring->name);
>  						wake_up_all(&ring->irq_queue);
>  					}
>  					/* Safeguard against driver failure */
> -- 
> 1.8.4.rc3
> 

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

      reply	other threads:[~2013-10-30  9:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-28  8:24 [PATCH] drm/i915: handle faked missed interrupts as simulated hangs, too Daniel Vetter
2013-10-30  9:36 ` Daniel Vetter [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=20131030093646.GD4167@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=daniel.vetter@ffwll.ch \
    --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