From: Daniel Vetter Subject: Re: [PATCH 7/8] Move encoder enable around Date: Thu, 18 Apr 2013 17:27:35 +0200 Message-ID: <20130418152735.GG6169@phenom.ffwll.local> References: <20130418081740.GE6169@phenom.ffwll.local> <1366274775-10733-1-git-send-email-daniel.vetter@ffwll.ch> <1366274775-10733-7-git-send-email-daniel.vetter@ffwll.ch> <20130418081403.0050bb22@jbarnes-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f173.google.com (mail-ea0-f173.google.com [209.85.215.173]) by gabe.freedesktop.org (Postfix) with ESMTP id 883D9E6429 for ; Thu, 18 Apr 2013 08:24:34 -0700 (PDT) Received: by mail-ea0-f173.google.com with SMTP id k11so1296977eaj.4 for ; Thu, 18 Apr 2013 08:24:33 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130418081403.0050bb22@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: Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Thu, Apr 18, 2013 at 08:14:03AM -0700, Jesse Barnes wrote: > On Thu, 18 Apr 2013 10:46:14 +0200 > Daniel Vetter wrote: > > > -> Will break everything else. > > --- > > drivers/gpu/drm/i915/intel_display.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > > index df3132c..7042b2f 100644 > > --- a/drivers/gpu/drm/i915/intel_display.c > > +++ b/drivers/gpu/drm/i915/intel_display.c > > @@ -3866,6 +3866,9 @@ static void i9xx_crtc_enable(struct drm_crtc *crtc) > > if (encoder->pre_enable) > > encoder->pre_enable(encoder); > > > > + for_each_encoder_on_crtc(dev, crtc, encoder) > > + encoder->enable(encoder); > > + > > if (IS_VALLEYVIEW(dev)) { > > char port; > > > > @@ -3894,9 +3897,6 @@ static void i9xx_crtc_enable(struct drm_crtc *crtc) > > /* Give the overlay scaler a chance to enable if it's on this pipe */ > > intel_crtc_dpms_overlay(intel_crtc, true); > > intel_crtc_update_cursor(crtc, true); > > - > > - for_each_encoder_on_crtc(dev, crtc, encoder) > > - encoder->enable(encoder); > > } > > > > static void i9xx_pfit_disable(struct intel_crtc *crtc) > > I don't think so; the gen4 docs even have this order now iirc? But > this patch can be dropped too. Not in my docs here. The only thing I remember is some note wrt disabling/enabling DP ports, which should be treated like the cpu port on ilk-ivb I think (according to the usual-terse wa db entry). But currently we do that by moving the steps around in the encoder callbacks, not the places the callbacks are called. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch