From: Jesse Barnes Subject: Re: [PATCH] drm/i915: load the LUT before pipe enable on ILK+ Date: Fri, 22 Jul 2011 12:54:22 -0700 Message-ID: <20110722125422.3397fdcd@jbarnes-desktop> References: <1308173553-2797-1-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy6-pub.bluehost.com (oproxy6-pub.bluehost.com [67.222.54.6]) by gabe.freedesktop.org (Postfix) with SMTP id EBAC9A0285 for ; Fri, 22 Jul 2011 12:54:27 -0700 (PDT) In-Reply-To: <1308173553-2797-1-git-send-email-jbarnes@virtuousgeek.org> 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: keithp@keithp.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, 15 Jun 2011 23:32:33 +0200 Jesse Barnes wrote: > Per the specs and to address > https://bugs.freedesktop.org/show_bug.cgi?id=36888. > > Signed-off-by: Jesse Barnes > --- > drivers/gpu/drm/i915/intel_display.c | 8 ++++++-- > 1 files changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > index 81a9059..03ce9fa 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -2699,14 +2699,18 @@ static void ironlake_crtc_enable(struct drm_crtc *crtc) > I915_WRITE(PF_WIN_SZ(pipe), dev_priv->pch_pf_size); > } > > + /* > + * On ILK+ LUT must be loaded before the pipe is running but with > + * clocks enabled > + */ > + intel_crtc_load_lut(crtc); > + > intel_enable_pipe(dev_priv, pipe, is_pch_port); > intel_enable_plane(dev_priv, plane, pipe); > > if (is_pch_port) > ironlake_pch_enable(crtc); > > - intel_crtc_load_lut(crtc); > - > mutex_lock(&dev->struct_mutex); > intel_update_fbc(dev); > mutex_unlock(&dev->struct_mutex); Keith, please pull this one in for 3.1. Hardware will wedge if we try to access the palette after pipe enable but before FDI or eDP training completes, so we may as well just do it right before pipe enable. Thanks, -- Jesse Barnes, Intel Open Source Technology Center