From: Daniel Vetter Subject: Re: [PATCH 1/7] drm/i915: don't send DP idle pattern before normal pattern on HSW Date: Sat, 26 Jan 2013 17:53:50 +0100 Message-ID: <20130126165350.GT23080@phenom.ffwll.local> References: <1359140356-4050-1-git-send-email-przanoni@gmail.com> <1359140356-4050-2-git-send-email-przanoni@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by gabe.freedesktop.org (Postfix) with ESMTP id B0974E5F6C for ; Sat, 26 Jan 2013 08:51:43 -0800 (PST) Received: by mail-wi0-f172.google.com with SMTP id o1so390706wic.5 for ; Sat, 26 Jan 2013 08:51:42 -0800 (PST) Content-Disposition: inline In-Reply-To: <1359140356-4050-2-git-send-email-przanoni@gmail.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: Paulo Zanoni Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Fri, Jan 25, 2013 at 04:59:10PM -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > Previously I sent "drm/i915: don't read DP_TP_STATUS(PORT_A)", but > after some more discussion I was told by a hardware engineer that we > don't really need to send the idle patterns before the normal pattern > in our current code: we only need this for a DP mode that we currently > don't support. So for now, just kill the whole code. I've already > asked for an update on the documentation, so at some point this code > should match the docs. > > This solves "Timed out waiting for DP idle patterns" and "unclaimed > register" messages on eDP. > > Signed-off-by: Paulo Zanoni Since we already have the code, and it should be harmless to run this on DP ports B-D, can't we just disable this on port A? I fear that if we ever get around to enable that funky other DP mode, we'll miss this and suffer through some ugly bugs ... -Daniel > --- > drivers/gpu/drm/i915/intel_dp.c | 9 --------- > 1 file changed, 9 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c > index 51fd797..f2fa219 100644 > --- a/drivers/gpu/drm/i915/intel_dp.c > +++ b/drivers/gpu/drm/i915/intel_dp.c > @@ -1785,16 +1785,7 @@ intel_dp_set_link_train(struct intel_dp *intel_dp, > temp &= ~DP_TP_CTL_LINK_TRAIN_MASK; > switch (dp_train_pat & DP_TRAINING_PATTERN_MASK) { > case DP_TRAINING_PATTERN_DISABLE: > - temp |= DP_TP_CTL_LINK_TRAIN_IDLE; > - I915_WRITE(DP_TP_CTL(port), temp); > - > - if (wait_for((I915_READ(DP_TP_STATUS(port)) & > - DP_TP_STATUS_IDLE_DONE), 1)) > - DRM_ERROR("Timed out waiting for DP idle patterns\n"); > - > - temp &= ~DP_TP_CTL_LINK_TRAIN_MASK; > temp |= DP_TP_CTL_LINK_TRAIN_NORMAL; > - > break; > case DP_TRAINING_PATTERN_1: > temp |= DP_TP_CTL_LINK_TRAIN_PAT1; > -- > 1.7.10.4 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch