All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Ben Widawsky <ben@bwidawsk.net>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: hangcheck disable parameter
Date: Wed, 29 Jun 2011 09:26:39 +0100	[thread overview]
Message-ID: <1309335998_38459@CP5-2952> (raw)
In-Reply-To: <1309306194-2086-1-git-send-email-ben@bwidawsk.net>

On Tue, 28 Jun 2011 17:09:54 -0700, Ben Widawsky <ben@bwidawsk.net> wrote:
> Provide a parameter to disable hanghcheck. This is useful mostly for
> developers trying to debug known problems, and probably should not be
> touched by normal users.

Looks good, comments inline.

> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
> ---
>  drivers/gpu/drm/i915/i915_dma.c |    2 ++
>  drivers/gpu/drm/i915/i915_drv.c |    3 +++
>  drivers/gpu/drm/i915/i915_gem.c |    9 +++++++--
>  drivers/gpu/drm/i915/i915_irq.c |   17 +++++++++++++----
>  4 files changed, 25 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
> index 2b79588..279e357 100644
> --- a/drivers/gpu/drm/i915/i915_dma.c
> +++ b/drivers/gpu/drm/i915/i915_dma.c
> @@ -43,6 +43,8 @@
>  #include <linux/slab.h>
>  #include <acpi/video.h>
>  
> +extern unsigned int i915_enable_hangcheck;

Put this in i915_drv.h along with the other module parameters. And
consider making it __read_mostly.

>  static void gen6_pm_rps_work(struct work_struct *work)
> @@ -1664,6 +1668,11 @@ void i915_hangcheck_elapsed(unsigned long data)
>  	uint32_t acthd, instdone, instdone1;
>  	bool err = false;
>  
> +	if (!i915_enable_hangcheck) {
> +		DRM_DEBUG_DRIVER("Ignoring disabled hangcheck\n");

I'm not convinced of the value of this debug message since it is 99%
likely to occur after setting the i915_enable_hangcheck to 0 and just
means that the timer expired and nothing more.

DRM_DEBUG_DRIVER("Hangcheck disabled per user request\n");
is marginally more informative.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

  reply	other threads:[~2011-06-29  8:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-29  0:09 [PATCH] drm/i915: hangcheck disable parameter Ben Widawsky
2011-06-29  8:26 ` Chris Wilson [this message]
2011-07-02  8:04 ` Julien Cristau
  -- strict thread matches above, loose matches on Subject: below --
2011-06-29 17:26 Ben Widawsky
2011-06-29 17:41 ` Keith Packard

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=1309335998_38459@CP5-2952 \
    --to=chris@chris-wilson.co.uk \
    --cc=ben@bwidawsk.net \
    --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.