From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Re-enable rc6 w/fix Date: Tue, 15 Mar 2011 18:15:05 +0100 Message-ID: <20110315171505.GA4160@viiv.ffwll.ch> References: <1300164901-4937-1-git-send-email-ben@bwidawsk.net> <1bdc18$jsdqub@fmsmga002.fm.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.ffwll.ch (cable-static-216-94.intergga.ch [87.102.216.94]) by gabe.freedesktop.org (Postfix) with ESMTP id 3FDD29E796 for ; Tue, 15 Mar 2011 10:15:20 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1bdc18$jsdqub@fmsmga002.fm.intel.com> 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: Chris Wilson Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Mar 15, 2011 at 07:59:48AM +0000, Chris Wilson wrote: > I think I should update the comments to reflect what the spec says about > LOAD_REGISTER_IMM (even though I trust Daniel to have accurately > determined their impact on gen2/3)... The spec implies that the variable > length nature of the command is to handle 32/64 bit writes as opposed to > batch multiple writes into a single (ideally atomic) command. I've derived my knowledge about load_reg_imm from staring at the hw context layout in the public docs (where this command seems to be used). I don't recall how extensively I've tested it (iirc only had a i855gm back then) put it got the job done. On re-reading that stuff I've noticed that 2 MI_NOOP follow immediately, maybe that's part of the secret sauce? The load_reg_imm docs (at least the public variants) seem to completely drop the variable length thingy. At least the table looks fixed-length and the length = Total Length - 2 blurb is standard for all multi-word commands. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48