From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Don't overclock on Haswell Date: Mon, 25 Mar 2013 16:38:24 +0100 Message-ID: <20130325153824.GK9021@phenom.ffwll.local> References: <1363749596-1429-1-git-send-email-ben@bwidawsk.net> <1364085991-20495-1-git-send-email-ben@bwidawsk.net> <20130325073651.6b9b9202@jbarnes-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f172.google.com (mail-ea0-f172.google.com [209.85.215.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 698C5E5ECE for ; Mon, 25 Mar 2013 08:35:36 -0700 (PDT) Received: by mail-ea0-f172.google.com with SMTP id z7so730833eaf.31 for ; Mon, 25 Mar 2013 08:35:35 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130325073651.6b9b9202@jbarnes-desktop> 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: Jesse Barnes Cc: Ben Widawsky , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, Mar 25, 2013 at 07:36:51AM -0700, Jesse Barnes wrote: > On Sat, 23 Mar 2013 17:46:31 -0700 > Ben Widawsky wrote: > > > HSW doesn't overclock the same way as IVB or SNB. I do not know about > > VLV, so I've kept that off as well. I'm still working on getting the doc > > updates to explain how we overclock on Haswell. > > > > Cc: Jesse Barnes > > Signed-off-by: Ben Widawsky > > --- > > drivers/gpu/drm/i915/intel_pm.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c > > index ce3db2c..9c11dd9 100644 > > --- a/drivers/gpu/drm/i915/intel_pm.c > > +++ b/drivers/gpu/drm/i915/intel_pm.c > > @@ -2628,7 +2628,7 @@ static void gen6_enable_rps(struct drm_device *dev) > > (IS_HASWELL(dev) ? GEN7_RP_DOWN_IDLE_AVG : GEN6_RP_DOWN_IDLE_CONT)); > > > > ret = sandybridge_pcode_write(dev_priv, GEN6_PCODE_WRITE_MIN_FREQ_TABLE, 0); > > - if (!ret) { > > + if (!ret && IS_GEN6(dev) || IS_IVYBRIDGE(dev)) { > > pcu_mbox = 0; > > ret = sandybridge_pcode_read(dev_priv, GEN6_READ_OC_PARAMS, &pcu_mbox); > > if (!ret && (pcu_mbox & (1<<31))) { /* OC supported */ > > This won't affect VLV, since I have a new rps enable function in my > latest set. But it looks fine. > > Reviewed-by: Jesse Barnes Queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch