All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Widawsky <ben@bwidawsk.net>
To: intel-gfx@lists.freedesktop.org
Subject: Re: enabling forcewake from userspace
Date: Fri, 25 Mar 2011 19:23:58 -0700	[thread overview]
Message-ID: <20110326022358.GA24223@lundgren.kumite> (raw)
In-Reply-To: <1301105269-23970-1-git-send-email-ben@bwidawsk.net>

On Fri, Mar 25, 2011 at 07:07:48PM -0700, Ben Widawsky wrote:
> 
> Chris, do you already have something like this queued up?
> 
> I don't have a SNB with which to test this patch right now. I'd like to
> know if anyone has any major issues with this, because I intend to use
> this to enable userspace to properly read and write registers on SNB.

So right after hitting 'y' I realized how much I detest this. It leaves
buggy usespace the opportunity to allow the GPU to never sleep. However,
I'd really like to find a solution to allow intel_reg_read and
intel_reg_write to work properly on GEN6.

Chris' idea from IRC of using LOAD/STORE_REGISTER will not work unless
we use a secure batch buffer.

The only other option floating around is IOCTLs to read/write the
registers, which previously seemed like a bad idea, but is now looking
like the only option.

Ben

  parent reply	other threads:[~2011-03-26  2:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-26  2:07 enabling forcewake from userspace Ben Widawsky
2011-03-26  2:07 ` [PATCH] drm/i915: have a forcewake "refcount" Ben Widawsky
2011-03-26  2:23 ` Ben Widawsky [this message]
2011-03-26  7:11   ` enabling forcewake from userspace Chris Wilson
2011-03-26 15:46     ` Ben Widawsky
2011-03-26 17:18       ` Chris Wilson
2011-03-26 19:27         ` Ben Widawsky
2011-03-26 20:20           ` Chris Wilson

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=20110326022358.GA24223@lundgren.kumite \
    --to=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.