From: "Gupta, Sourab" Subject: Re: [PATCH v2 6/6] drm/i915/vlv: Modifying WA 'WaDisableL3Bank2xClockGate for vlv Date: Tue, 1 Apr 2014 05:22:41 +0000 Message-ID: <1396329799.19358.128.camel@sourabgu-desktop> References: <1395682207-7092-1-git-send-email-sourab.gupta@intel.com> <1395682207-7092-7-git-send-email-sourab.gupta@intel.com> <20140324175615.GA8937@strange.amr.corp.intel.com> <1395730405.19358.95.camel@sourabgu-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id AB9756E49B for ; Mon, 31 Mar 2014 22:22:45 -0700 (PDT) In-Reply-To: <1395730405.19358.95.camel@sourabgu-desktop> Content-Language: en-US Content-ID: <2F37580F2D8E654E97327A62AF78A3C6@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: "Lespiau, Damien" Cc: Daniel Vetter , "intel-gfx@lists.freedesktop.org" , "Goel, Akash" List-Id: intel-gfx@lists.freedesktop.org On Tue, 2014-03-25 at 12:23 +0530, sourab gupta wrote: > On Mon, 2014-03-24 at 17:56 +0000, Lespiau, Damien wrote: > > On Mon, Mar 24, 2014 at 11:00:07PM +0530, sourab.gupta@intel.com wrote: > > > From: Akash Goel > > > > > > For disabling L3 clock gating we need to set bit 25 of MMIO > > > register 940c. Earlier this was being done by just writing 1 > > > into bit 25 and resetting all other bits. > > > This patch modifies the routine to read-modify-write of the > > > register, so that the values of other bits are not destroyed. > > > > > > v2: Modifying the comments and the patch commit message (Chris) > > > > This patch commit message lacks the most important information: which > > bit are we setting back to 0 and we shouldn't, and why is that > > important? We do direct writes to other registers in that function (for > > instance (MI_ARB_VLV just below). > > > Hi Damien, > The reset value of the register is 0x00F80003. Therefore, if we directly > set only bit 25 to 1, without caring about other bits, the following reg > bits will be affected (bits 1:0, bits 23:19). > This doesn't seem to be the case with other regs where we are writing > directly (MI_ARB_VLV ) whose default value is 0. > So, by this commit we're just trying to set only the bit which we really > want to change. > > Regards, > Sourab > > Hi Damien, Please provide your comments on the above explanation. I'll add more information to the commit message regarding the same, if it is okay. Thanks, Sourab