NetBSD Problem Report #26973

From autolearn=ham version=2.63
Received: (qmail 21090 invoked by uid 605); 16 Sep 2004 17:08:21 -0000
Message-Id: <200409161708.TAA0000023546@zel459.zel.kfa-juelich.de>
Date: Thu, 16 Sep 2004 19:08:16 +0200
From: Matthias Drochner <M.Drochner@fz-juelich.de>
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: M.Drochner@fz-juelich.de
To: gnats-bugs@gnats.NetBSD.org
Subject: extremely long boot delay with no AC'97 codec connected

>Number:         26973
>Category:       kern
>Synopsis:       extremely long boot delay with no AC'97 codec connected
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kent
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 16 17:09:00 +0000 2004
>Closed-Date:    Thu Sep 23 16:44:52 +0000 2004
>Last-Modified:  Thu Sep 23 16:44:52 +0000 2004
>Originator:     Matthias Drochner
>Release:        NetBSD 2.0G, 2.0_BETA
>Organization:
	KFA Juelich
>Environment:
System: NetBSD zelz26 2.0G NetBSD 2.0G (ZELZ26) #56: Wed Sep 8 11:22:14 MEST 
2004 drochner@zelz26:/home/drochner/netbsd/sys/arch/i386/compile/ZELZ26 i386
Architecture: i386
Machine: i386
>Description:
	With sys/dev/ic/ac97.c rev 1.59 the code was changed to wait
until the codec(s) signal that they've reached power-up state on attach, and
after resume. This is right to do (required in the spec), but unfortunately
it waits for at least 10 minutes during boot if no codec is connected.
Such a hard hang for many minutes is unacceptable.
This change was pulled into the release branch as rev 1.52.2.2.
2.0_BETA with ac97.c rev 1.52.2.2 suffers from the problem. Reverting
to rev. 1.52.2.1 makes it go away.
>How-To-Repeat:
	Try to boot -current or the head of the 2.0 branch on hardware
without codec. My system looks that way:
NetBSD 2.0_BETA (GENERIC+EHCI) #7: Wed Sep 15 14:58:24 MEST 2004
        drochner@zelq08:/home/drochner/netbsd-2.0/sys/arch/i386/compile/GENERIC
+
EHCI
[...]
cpu0: Intel Pentium M (Banias) (686-class), 1697.17 MHz, id 0x695
[...]
pchb0: Intel E7501 MCH Host (rev. 0x01)
[...]
auich0 at pci0 dev 31 function 5: i82801DB/DBM (ICH4/ICH4M) AC-97 Audio
auich0: interrupting at irq 12
auich0: auich_reset_codec: time out
[long hang]
auich0: ac97: unknown (0x00000000) codec; no 3D stereo
Intel 82801DB/DBM AC97 Modem Controller (modem communications, revision 0x02) 
at
 pci0 dev 31 function 6 not configured

>Fix:
	At least in the newer "ICH" chips there is a bit to detect whether
the AC'97 bitclock is present at all. If it is not, there is no point
in trying any communication with codecs.
It might also make sense to stop codec attachment if just the initial
reset fails. This is also suggested by a comment in auich.c, but for
some reason it os not done that way. (There might be problems with
nonconformant hardware...)
The structure of the code is suboptimal obviously; while the Intel manual
strongly suggests to use shadow registers for almost all reads, the code
makes that they are not in effect except for restoration after resume.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: kent 
State-Changed-When: Wed Sep 22 11:19:37 UTC 2004 
State-Changed-Why:  


Responsible-Changed-From-To: kern-bug-people->kent 
Responsible-Changed-By: kent 
Responsible-Changed-When: Wed Sep 22 11:19:37 UTC 2004 
Responsible-Changed-Why:  

From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/arch/amiga/dev
Date: Wed, 22 Sep 2004 20:58:01 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:01 UTC 2004

 Modified Files:
 	src/sys/arch/amiga/dev [netbsd-2-0]: repulse.c

 Log Message:
 Pullup rev 1.9 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.8 -r1.8.4.1 src/sys/arch/amiga/dev/repulse.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/ic
Date: Wed, 22 Sep 2004 20:58:06 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:06 UTC 2004

 Modified Files:
 	src/sys/dev/ic [netbsd-2-0]: ac97var.h

 Log Message:
 Pullup rev 1.10 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.8 -r1.8.2.1 src/sys/dev/ic/ac97var.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/ic
Date: Wed, 22 Sep 2004 20:58:04 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:04 UTC 2004

 Modified Files:
 	src/sys/dev/ic [netbsd-2-0]: ac97.c

 Log Message:
 Pullup rev 1.62 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.52.2.2 -r1.52.2.3 src/sys/dev/ic/ac97.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:18 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:18 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: cs4280.c

 Log Message:
 Pullup rev 1.30 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.26 -r1.26.4.1 src/sys/dev/pci/cs4280.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:24 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:23 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: fms.c

 Log Message:
 Pullup rev 1.19 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.18 -r1.18.4.1 src/sys/dev/pci/fms.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:30 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:30 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: emuxki.c

 Log Message:
 Pullup rev 1.36 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.31.2.1 -r1.31.2.2 src/sys/dev/pci/emuxki.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:12 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:12 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: autri.c

 Log Message:
 Pullup rev 1.20 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.18 -r1.18.2.1 src/sys/dev/pci/autri.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:09 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:09 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: auich.c

 Log Message:
 Pullup rev 1.62 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.58 -r1.58.2.1 src/sys/dev/pci/auich.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:15 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:15 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: auvia.c

 Log Message:
 Pullup rev 1.42 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.36.2.1 -r1.36.2.2 src/sys/dev/pci/auvia.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:21 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:21 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: cs4281.c

 Log Message:
 Pullup rev 1.19 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.16 -r1.16.4.1 src/sys/dev/pci/cs4281.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:27 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:27 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: eap.c

 Log Message:
 Pullup rev 1.72 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.67 -r1.67.2.1 src/sys/dev/pci/eap.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:27 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:27 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: eap.c

 Log Message:
 Pullup rev 1.72 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.67 -r1.67.2.1 src/sys/dev/pci/eap.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:34 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:34 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: esa.c

 Log Message:
 Pullup rev 1.25 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.22 -r1.22.2.1 src/sys/dev/pci/esa.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:34 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:34 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: esa.c

 Log Message:
 Pullup rev 1.25 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.22 -r1.22.2.1 src/sys/dev/pci/esa.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:37 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:37 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: esm.c

 Log Message:
 Pullup rev 1.27 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.23 -r1.23.2.1 src/sys/dev/pci/esm.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:46 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:46 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: yds.c

 Log Message:
 Pullup rev 1.21 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.18 -r1.18.2.1 src/sys/dev/pci/yds.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:43 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:43 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: neo.c

 Log Message:
 Pullup rev 1.23 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.20 -r1.20.2.1 src/sys/dev/pci/neo.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: James Chacon <jmc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/26973 CVS commit: [netbsd-2-0] src/sys/dev/pci
Date: Wed, 22 Sep 2004 20:58:39 +0000 (UTC)

 Module Name:	src
 Committed By:	jmc
 Date:		Wed Sep 22 20:58:39 UTC 2004

 Modified Files:
 	src/sys/dev/pci [netbsd-2-0]: esmvar.h

 Log Message:
 Pullup rev 1.10 (requested by kent in ticket #867)

 ac97_host_if::reset() returns non-zero value if codec reset fails, and
 ac97 is not attached in that case. PR#26973


 To generate a diff of this commit:
 cvs rdiff -r1.9 -r1.9.2.1 src/sys/dev/pci/esmvar.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: analyzed->closed 
State-Changed-By: kent 
State-Changed-When: Thu Sep 23 16:44:11 UTC 2004 
State-Changed-Why:  
fixed in -current and 2.0 branch 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.