From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: [PATCH v5] drm/i915: pass ELD to HDMI/DP audio driver Date: Thu, 10 Nov 2011 15:33:50 +0800 Message-ID: <20111110073350.GA14569@localhost> References: <4EA82DBD.9020301@pulseforce.com> <4EA9B6EF.9040305@pulseforce.com> <20111101113645.GA19100@localhost> <4EB025B0.4000900@pulseforce.com> <20111102014541.GA16026@localhost> <4EB4813B.6060809@pulseforce.com> <20111109131233.GA13654@localhost> <4EBB3637.1070606@pulseforce.com> <20111110032712.GA10116@localhost> <4EBB4EC2.80802@pulseforce.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 88F239E763 for ; Wed, 9 Nov 2011 23:33:52 -0800 (PST) Content-Disposition: inline In-Reply-To: <4EBB4EC2.80802@pulseforce.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: Christopher White Cc: Jeremy Bush , "intel-gfx@lists.freedesktop.org" , "Wang, Zhenyu Z" , "Bossart, Pierre-louis" List-Id: intel-gfx@lists.freedesktop.org Wow I reproduced the bug and got a very interesting dmesg: gfx => [ 4561.287980] [drm:intel_write_eld], ELD on [CONNECTOR:12:HDMI-A-2], [ENCODER:11:TMDS-11] gfx => [ 4561.291730] [drm:ironlake_write_eld], ELD on pipe B gfx => [ 4561.293804] [drm:ironlake_write_eld], Audio directed to unknown port gfx => [ 4561.295273] [drm:ironlake_write_eld], alsa => [ 4561.295486] HDMI hot plug event: Codec=3 Pin=6 Presence_Detect=1 ELD_Valid=0 alsa => [ 4561.295564] HDMI status: Codec=3 Pin=6 Presence_Detect=1 ELD_Valid=0 gfx => [ 4561.300020] ELD size 13 alsa => [ 4561.300697] HDMI hot plug event: Codec=3 Pin=6 Presence_Detect=1 ELD_Valid=1 alsa => [ 4561.303322] HDMI status: Codec=3 Pin=6 Presence_Detect=1 ELD_Valid=1 alsa => [ 4561.311120] ALSA hda_eld.c:259 HDMI: Unknown ELD version 0 Hey the two parts are interleaved! But still it should work all fine, since the gfx driver does set ELD_Valid = 0 write ELD set ELD_Valid = 1 So the audio driver would read the correct ELD unless the ELD content and flag writes are somehow _reordered_ underneath. Or the ELD content writes take some time to take effect? Thanks, Fengguang