From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Lespiau Subject: Re: [PATCH v2 6/6] drm/i915/vlv: Modifying WA 'WaDisableL3Bank2xClockGate for vlv Date: Mon, 24 Mar 2014 17:56:15 +0000 Message-ID: <20140324175615.GA8937@strange.amr.corp.intel.com> References: <1395682207-7092-1-git-send-email-sourab.gupta@intel.com> <1395682207-7092-7-git-send-email-sourab.gupta@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id CB0786EB6B for ; Mon, 24 Mar 2014 10:57:53 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1395682207-7092-7-git-send-email-sourab.gupta@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: sourab.gupta@intel.com Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org, Akash Goel List-Id: intel-gfx@lists.freedesktop.org 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). -- Damien