From: Ben Widawsky Subject: Re: enabling forcewake from userspace Date: Fri, 25 Mar 2011 19:23:58 -0700 Message-ID: <20110326022358.GA24223@lundgren.kumite> References: <1301105269-23970-1-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id 687F19E75B for ; Fri, 25 Mar 2011 19:24:01 -0700 (PDT) Received: from lundgren.kumite (unknown [67.208.96.87]) by cloud01.chad-versace.us (Postfix) with ESMTPSA id CB3441D4009 for ; Sat, 26 Mar 2011 02:24:37 +0000 (UTC) Content-Disposition: inline In-Reply-To: <1301105269-23970-1-git-send-email-ben@bwidawsk.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org 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