From: Daniel Vetter Subject: Re: drm/i915: Disable DDI Pipe Control on HSW while disabling pipe Date: Fri, 8 Jun 2012 14:49:28 +0200 Message-ID: <20120608124928.GB5761@phenom.ffwll.local> References: <1339136063-29548-1-git-send-email-shobhit.kumar@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-bk0-f49.google.com (mail-bk0-f49.google.com [209.85.214.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 0645D9E70A for ; Fri, 8 Jun 2012 05:47:58 -0700 (PDT) Received: by bkwj4 with SMTP id j4so2205051bkw.36 for ; Fri, 08 Jun 2012 05:47:58 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1339136063-29548-1-git-send-email-shobhit.kumar@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: Shobhit Kumar Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Jun 08, 2012 at 11:44:23AM +0530, Shobhit Kumar wrote: > In Haswell while disabling a pipe, we need to disable the DDI control as > well along with the PIPECONF. Otherwise we will hit assertions during crtc > disable Hm, can you add such an example assert with backtrace please? All these asserts encode our current understanding of the hw depency chain, so I'd like to check whether we're really doing the right thing and don't just stfu some dmesg noise. Thanks, Daniel > > Signed-off-by: Shobhit Kumar > --- > drivers/gpu/drm/i915/intel_display.c | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > index 0161d94..c69671d 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -1645,6 +1645,13 @@ static void intel_disable_pipe(struct drm_i915_private *dev_priv, > > I915_WRITE(reg, val & ~PIPECONF_ENABLE); > intel_wait_for_pipe_off(dev_priv->dev, pipe); > + > + /* On HSW DDI Pipe control has to be disabled as well */ > + if (IS_HASWELL(dev_priv->dev)) { > + val = I915_READ(DDI_FUNC_CTL(pipe)); > + val = val & (~PIPE_DDI_FUNC_ENABLE); > + I915_WRITE(DDI_FUNC_CTL(pipe), val); > + } > } > > /* > -- > 1.7.7.6 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48