From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH] drm/i915: be more careful when returning -ENXIO in gmbus transfer Date: Mon, 21 May 2012 19:24:34 +0100 Message-ID: <1337624682_164153@CP5-2952> References: <20120520181553.GE5145@phenom.ffwll.local> <1337624388-32498-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 fireflyinternet.com (smtp.fireflyinternet.com [109.228.6.236]) by gabe.freedesktop.org (Postfix) with ESMTP id 90BA69E78A for ; Mon, 21 May 2012 11:24:50 -0700 (PDT) In-Reply-To: <1337624388-32498-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 , Daniel Kurtz List-Id: intel-gfx@lists.freedesktop.org On Mon, 21 May 2012 20:19:48 +0200, Daniel Vetter wrote: > ... flaky ddc hardware can cause a spurious NAK, resulting in the i2c > core and drm edid functions not trying to retry the edid transfer. > > Luckily the gmbus quiescenting also times out for these cases, so we > can get out of this mess by returning -ETIMEDOUT for this specific > case. This way we keep the fast-fail of returning -ENXIO if there is > no device present, speeding up the boot process. > > This regression has been introduced in > > commit e646d5773572bf52017983d758bdf05777dc5600 > Author: Daniel Kurtz > Date: Fri Mar 30 19:46:38 2012 +0800 > > drm/i915/intel_i2c: always wait for IDLE before clearing NAK > > v2: Return -ETIMEDOUT for this case and keep the -ENXIO for real NAKs, > suggested by Daniel Kurtz. > > Cc: Daniel Kurtz > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=49518 > Reported-and-Tested-by: Julian Simioni > Signed-Off-by: Daniel Vetter Acked-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre