From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [PATCH 10/26] drm/i915: add more clock gating for VLV, allow force wake at init Date: Fri, 8 Mar 2013 08:52:53 -0800 Message-ID: <20130308085253.716ddbc3@jbarnes-desktop> References: <1362175722-9281-1-git-send-email-jbarnes@virtuousgeek.org> <1362175722-9281-10-git-send-email-jbarnes@virtuousgeek.org> <87d2vaui1g.fsf@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy9.bluehost.com (oproxy9.bluehost.com [69.89.24.6]) by gabe.freedesktop.org (Postfix) with SMTP id BEAE6E6E3B for ; Fri, 8 Mar 2013 08:52:28 -0800 (PST) In-Reply-To: <87d2vaui1g.fsf@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: Jani Nikula Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, 08 Mar 2013 15:39:55 +0200 Jani Nikula wrote: > On Sat, 02 Mar 2013, Jesse Barnes wrote: > > From: Ben Widawsky > > > > Disable all Gunit clock gating and make set the "allow force wake" bit. > > > > Signed-off-by: Jesse Barnes > > --- > > drivers/gpu/drm/i915/i915_gem.c | 4 ++++ > > drivers/gpu/drm/i915/i915_reg.h | 1 + > > drivers/gpu/drm/i915/intel_pm.c | 10 +++++++++- > > 3 files changed, 14 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c > > index 8413ffc..dd67698 100644 > > --- a/drivers/gpu/drm/i915/i915_gem.c > > +++ b/drivers/gpu/drm/i915/i915_gem.c > > @@ -4010,7 +4010,11 @@ int i915_gem_init(struct drm_device *dev) > > int ret; > > > > mutex_lock(&dev->struct_mutex); > > + > > + /* VLVA0 (potential hack), BIOS isn't actually waking us */ > > + I915_WRITE(VLV_GTLC_WAKE_CTRL, 1); > > Wrap that in if IS_VALLEYVIEW(dev)? Separate this from the other hunk > into a separate patch? Ah this one did sneak in, I'll factor it out and put it under an IS_VLV check. Thanks, -- Jesse Barnes, Intel Open Source Technology Center