From: Daniel Vetter Subject: Re: [PATCH 1/8] drm/i915: update VLV PLL and DPIO code v10 Date: Thu, 18 Apr 2013 17:42:28 +0200 Message-ID: <20130418154228.GH6169@phenom.ffwll.local> References: <20130418081740.GE6169@phenom.ffwll.local> <1366274775-10733-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 8AD2AE64EF for ; Thu, 18 Apr 2013 08:39:27 -0700 (PDT) Received: by mail-ee0-f44.google.com with SMTP id c41so1335722eek.17 for ; Thu, 18 Apr 2013 08:39:26 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1366274775-10733-1-git-send-email-daniel.vetter@ffwll.ch> 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: Intel Graphics Development Cc: Daniel Vetter , Vijay Purushothaman , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Thu, Apr 18, 2013 at 10:46:08AM +0200, Daniel Vetter wrote: > @@ -3782,6 +3905,27 @@ static void i9xx_crtc_disable(struct drm_crtc *crtc) > > i9xx_pfit_disable(intel_crtc); > > + for_each_encoder_on_crtc(dev, crtc, encoder) > + if (encoder->post_disable) > + encoder->post_disable(encoder); > + > + /* Reset lane for VLV platform*/ > + if (IS_VALLEYVIEW(dev)) { > + mutex_lock(&dev_priv->dpio_lock); > + if (intel_pipe_has_type(crtc, INTEL_OUTPUT_HDMI)) { > + intel_dpio_write(dev_priv, DPIO_PCS_TX(0), > + 0x00000000); > + intel_dpio_write(dev_priv, DPIO_PCS_CLK(0), > + 0x00e00060); > + } else { > + intel_dpio_write(dev_priv, DPIO_PCS_TX(1), > + 0x00000000); > + intel_dpio_write(dev_priv, DPIO_PCS_CLK(1), > + 0x00e00060); > + } > + mutex_unlock(&dev_priv->dpio_lock); > + } > + Oops, I've missed this part here in my split-out. Probably needs the same port abstraction like the enable code (i.e. DP seems to be on the wrong port) and then shovelled into ->post_disable. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch