From: Daniel Vetter Subject: Re: [PATCH] drm/i915: implement WADPOClockGatingDisable for LPT Date: Fri, 10 May 2013 21:00:37 +0200 Message-ID: <20130510190037.GR12292@phenom.ffwll.local> References: <1366233349-18956-1-git-send-email-przanoni@gmail.com> <20130507131005.GB32312@strange.amr.corp.intel.com> <20130507133014.GC32312@strange.amr.corp.intel.com> <20130507144021.GA3182@strange.amr.corp.intel.com> <20130508125417.GB4754@strange.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by gabe.freedesktop.org (Postfix) with ESMTP id F1E37E5CC4 for ; Fri, 10 May 2013 11:57:29 -0700 (PDT) Received: by mail-ee0-f52.google.com with SMTP id d41so2383065eek.11 for ; Fri, 10 May 2013 11:57:29 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130508125417.GB4754@strange.amr.corp.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: Damien Lespiau Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Wed, May 08, 2013 at 01:54:17PM +0100, Damien Lespiau wrote: > On Tue, May 07, 2013 at 03:40:21PM +0100, Damien Lespiau wrote: > > On Tue, May 07, 2013 at 10:46:01AM -0300, Paulo Zanoni wrote: > > > 2013/5/7 Damien Lespiau : > > > > On Tue, May 07, 2013 at 02:10:05PM +0100, Damien Lespiau wrote: > > > >> On Wed, Apr 17, 2013 at 06:15:49PM -0300, Paulo Zanoni wrote: > > > >> > From: Paulo Zanoni > > > >> > > > > >> > This should prevent mode set failures on LPT. > > > >> > > > > >> > Signed-off-by: Paulo Zanoni > > > >> > --- > > > >> > drivers/gpu/drm/i915/intel_pm.c | 5 +++++ > > > >> > 1 file changed, 5 insertions(+) > > > >> > > > > >> > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c > > > >> > index 413877d..15ff0ac 100644 > > > >> > --- a/drivers/gpu/drm/i915/intel_pm.c > > > >> > +++ b/drivers/gpu/drm/i915/intel_pm.c > > > >> > @@ -3758,6 +3758,11 @@ static void lpt_init_clock_gating(struct drm_device *dev) > > > >> > I915_WRITE(SOUTH_DSPCLK_GATE_D, > > > >> > I915_READ(SOUTH_DSPCLK_GATE_D) | > > > >> > PCH_LP_PARTITION_LEVEL_DISABLE); > > > >> > + > > > >> > + /* WADPOClockGatingDisable */ > > > >> > + I915_WRITE(_TRANSA_CHICKEN1, > > > >> > + I915_READ(_TRANSA_CHICKEN1) | > > > >> > + TRANS_CHICKEN1_DP0UNIT_GC_DISABLE); > > > Of course, It'd be good to add the :hsw at the end of > WADPOClockGatingDisable (ammending the patch when applying?) now that > the workaround documentation has been pushed. Done and queued for -next, thanks for the patch. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch