From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 1/2] drm/i915: check whether we actually received an edid in detect_ddc Date: Wed, 11 Jul 2012 22:02:25 +0200 Message-ID: <20120711200225.GB5204@phenom.ffwll.local> References: <1342000687_250108@CP5-2952> <1342002713-12628-1-git-send-email-daniel.vetter@ffwll.ch> <1342003482_250546@CP5-2952> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 62EE49E879 for ; Wed, 11 Jul 2012 13:02:25 -0700 (PDT) Received: by weyr3 with SMTP id r3so1152238wey.36 for ; Wed, 11 Jul 2012 13:02:24 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1342003482_250546@CP5-2952> 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: Chris Wilson Cc: Daniel Vetter , Intel Graphics Development List-Id: intel-gfx@lists.freedesktop.org On Wed, Jul 11, 2012 at 11:44:36AM +0100, Chris Wilson wrote: > On Wed, 11 Jul 2012 12:31:52 +0200, Daniel Vetter wrote: > > Somehow detect_ddc manages to fall through all checks when we think > > that something responds on the ddc i2c address, but the edid read > > failed. Fix this up by explicitly checking for this case. > > > > This fixes a regression on newer chips because since > > > > commit aaa377302b2994fcc2c66741b47da33feb489dca > > Author: Daniel Vetter > > Date: Sat Jun 16 15:30:32 2012 +0200 > > > > drm/i915/crt: Do not rely upon the HPD presence pin > > > > we use ddc detection also on hotplug capable platforms. And one of > > these reads all 0s for any i2c transaction if nothing is connected to > > the vga port. > > > > v2: Implement Chris Wilson's review: > > - simplify logic, default to "nothing detected" > > - kill stale comment > > - BUG_ON(!crt->type != ANALOG) > > > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51900 > > Tested-by: Yang Guang > > Signed-Off-by: Daniel Vetter > > I'm happy with that, and thanks for the extra clarification in the debug > messages. > Reviewed-by: Chris Wilson Both patches merged to dinq, thanks a lot for the review. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48