From: Ben Widawsky <ben@bwidawsk.net>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: hangcheck parameter
Date: Wed, 22 Jun 2011 10:55:33 -0700 [thread overview]
Message-ID: <20110622175526.GD5157@bwgnt.jf.intel.com> (raw)
In-Reply-To: <d08817$g5q74@azsmga001.ch.intel.com>
On Wed, Jun 22, 2011 at 06:45:56PM +0100, Chris Wilson wrote:
> On Wed, 22 Jun 2011 10:32:50 -0700, Ben Widawsky <ben@bwidawsk.net> wrote:
> > The hangcheck is undesirable when doing shader debugging. The debugger
> > interacts with the EU, and these may cause the hangcheck to fire at most
> > unfortunate times.
> >
> > This provides a way to let the user disable the hangcheck when they want
> > to do shader debugging.
>
> Looks like a reasonable idea, I'm tempted to suggest to make it the period
> in ms rather a boolean. But for actual use, either a new ioctl for
> enable/disable or another wakelock? Just in case we have more than one
> program trying to debug at the same time. (Not so far fetched, as the user
> may be snooping on the results whilst debugging in another process?)
>
> -Chris
Ah, Chris! You reminded me what I had planned to do a month ago, but it
got lost in all the other stuff floating around in my brain.
Yes, actually I will make a debugfs file, which notifies the kernel
we're debugging from userspace, and it should disable the hangcheck
timer. This will allow us to read/write potentially valuable information
in the future, and like you said acts as a lock to prevent concurrent
debuggers.
Thanks! Very helpful response/reminder.
I was planning a debugfs entry for it. Do you see any advantages to
using an IOCTL?
Ben
next prev parent reply other threads:[~2011-06-22 17:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 17:32 [PATCH] drm/i915: hangcheck parameter Ben Widawsky
2011-06-22 17:45 ` Chris Wilson
2011-06-22 17:55 ` Ben Widawsky [this message]
2011-06-22 18:05 ` Chris Wilson
2011-06-22 23:07 ` [PATCH 1/2] drm/i915: hangcheck disable flag Ben Widawsky
2011-06-22 23:07 ` [PATCH 2/2] drm/i915: debugger debugfs entry Ben Widawsky
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=20110622175526.GD5157@bwgnt.jf.intel.com \
--to=ben@bwidawsk.net \
--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.