From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [PATCH 21/22] drm/i915: disable turbo on ValleyView for now Date: Wed, 28 Mar 2012 16:57:50 -0700 Message-ID: <20120328165750.0925b613@jbarnes-desktop> References: <1332967182-23298-1-git-send-email-jbarnes@virtuousgeek.org> <1332967182-23298-22-git-send-email-jbarnes@virtuousgeek.org> <20120328220203.GE2046@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy7-pub.bluehost.com (oproxy7-pub.bluehost.com [67.222.55.9]) by gabe.freedesktop.org (Postfix) with SMTP id 885AE9E7B3 for ; Wed, 28 Mar 2012 16:57:53 -0700 (PDT) In-Reply-To: <20120328220203.GE2046@phenom.ffwll.local> 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: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, 29 Mar 2012 00:02:03 +0200 Daniel Vetter wrote: > On Wed, Mar 28, 2012 at 01:39:41PM -0700, Jesse Barnes wrote: > > We'll probably need new init functions and will need to test it. > > > > Signed-off-by: Jesse Barnes > > --- > > drivers/gpu/drm/i915/i915_suspend.c | 2 +- > > drivers/gpu/drm/i915/intel_display.c | 4 ++-- > > 2 files changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/gpu/drm/i915/i915_suspend.c b/drivers/gpu/drm/i915/i915_suspend.c > > index 2b5eb22..2a52060 100644 > > --- a/drivers/gpu/drm/i915/i915_suspend.c > > +++ b/drivers/gpu/drm/i915/i915_suspend.c > > @@ -886,7 +886,7 @@ int i915_restore_state(struct drm_device *dev) > > intel_init_emon(dev); > > } > > > > - if (INTEL_INFO(dev)->gen >= 6) { > > + if (INTEL_INFO(dev)->gen >= 6 && !IS_VALLEYVIEW(dev)) { > > gen6_enable_rps(dev_priv); > > gen6_update_ring_freq(dev_priv); > > } > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > > index cfd4267..70cd86f 100644 > > --- a/drivers/gpu/drm/i915/intel_display.c > > +++ b/drivers/gpu/drm/i915/intel_display.c > > @@ -9756,7 +9756,7 @@ void intel_modeset_init(struct drm_device *dev) > > intel_init_emon(dev); > > } > > > > - if (IS_GEN6(dev) || IS_GEN7(dev)) { > > + if ((IS_GEN6(dev) && IS_GEN7(dev)) && !IS_VALLEYVIEW(dev)) { > > IS_GEN6 && IS_GEN7 is unlikely to exist ... Haha, how did that happen -- Jesse Barnes, Intel Open Source Technology Center