NetBSD Problem Report #29692

From www@netbsd.org  Mon Mar 14 12:45:27 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 1585063B118; Mon, 14 Mar 2005 12:45:27 +0000 (UTC)
Message-Id: <20050314124527.1585063B118@narn.netbsd.org>
Date: Mon, 14 Mar 2005 12:45:27 +0000 (UTC)
From: macallan18@earthlink.net
Reply-To: macallan@netbsd.org
To: gnats-bugs@netbsd.org
Subject: ohci hangs on sparc64 with "flags 1"
X-Send-Pr-Version: www-1.0

>Number:         29692
>Category:       port-sparc64
>Synopsis:       ohci hangs on sparc64 with "flags 1"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc64-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 14 12:46:00 +0000 2005
>Closed-Date:    Tue Aug 23 07:10:32 +0000 2011
>Last-Modified:  Tue Aug 23 07:10:32 +0000 2011
>Originator:     Michael Lorenz
>Release:        NetBSD -current
>Organization:
>Environment:
NetBSD Inishowen 2.99.16 NetBSD 2.99.16 (INISHOWEN) #308: Sat Mar 12 21:52:56 EST 2005  ml@Inishowen:/data/src/sys/arch/sparc64/compile/INISHOWEN sparc64

>Description:
Some recent commit of sys/dev/usb/ohci* apparently broke it for sparc64.
/*	$NetBSD: ohci.c,v 1.155 2005/02/27 00:27:51 perry Exp $	*/
works fine, but 
/*	$NetBSD: ohci.c,v 1.157 2005/03/11 19:25:22 mycroft Exp $	*/
hangs after finding the root hub:

ohci0 at pci2 dev 1 function 0: CMD Technology USB0673 (rev. 0x05)
ohci0: interrupting at ivec 10
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: CMD Technology OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
... here it would hang ...
uhub1 at uhub0 port 1
uhub1: vendor 0x03eb Standard USB Hub, class 9/0, rev 1.10/3.00, addr 2
uhub1: 4 ports with 4 removable, self powered
uhidev0 at uhub0 port 2 configuration 1 interface 0
uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/20.00, addr 3, iclass 3/1

the same code works fine on macppc though.
>How-To-Repeat:
put an ohci card into a sparc64 box, reboot.
>Fix:
downgrade to an earlier ohci driver

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-sparc64/29692: ohci broken on sparc64
Date: Mon, 14 Mar 2005 14:50:21 +0100

 On Mon, Mar 14, 2005 at 12:46:00PM +0000, macallan18@earthlink.net wrote:
 > hangs after finding the root hub:

 Could you add options OHCI_DEBUG (and DDB, if you don't have that), then
 boot -d and set ohcidebug to something > 10? Preferably with a serial
 console and capture the output on another machine.

 Martin

From: Michael <macallan18@earthlink.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-sparc64/29692
Date: Tue, 15 Mar 2005 17:23:01 -0500

 --Signature=_Tue__15_Mar_2005_17_23_01_-0500_rwfP1L82m_GC08od
 Content-Type: text/plain; charset=US-ASCII
 Content-Disposition: inline
 Content-Transfer-Encoding: 7bit

 It turns out the hangup only occurs when the usb bus is attached like this:
 usb*	at ohci?	flags 0x1
 to force early attachment of USB devices, so the default configuration with flags 0x0 works.

 Booting with options OHCI_DEBUG shows the problem is related to interrupts being not enabled, the cold contains 1,  ohci_waitintr() in sys/dev/usb/ohci.c fails with 'ohci_waitintr: timeout'

 --Signature=_Tue__15_Mar_2005_17_23_01_-0500_rwfP1L82m_GC08od
 Content-Type: application/pgp-signature

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (NetBSD)

 iQEVAwUBQjdgRcpnzkX8Yg2nAQJ6NAgAiFwucc8YZ/gv4O0Om9bl/1n+e+OnX4j3
 +VjdesQZwm9N0DCBXQJthQfm0EIEFKBvu2g0W8DRyEahYoPHSpPGGvOJ0BKACqTC
 fGxZ+2NwFp7zwrcXYmimaFFXgUpREIDJyIU3Lc+e5MyTrokpIrIGmR64RNd9xBI+
 GBCnBFenMBjfhAnqTdCNp/3zlVBlCPDbVaiOTMfhxcpew7+7nxRZsHBZxA8XGd5c
 lb2JHuo//lQoT/HKONXJoy2yS6CxrvKmbkOsK12m/rA61uPGhgLjtO74ulN4pIpQ
 Eu6u7GypmtMKpumuxv/9XDhMTzxH5j6PRAuTEbSckB4r0jwv9gPWQQ==
 =JX/n
 -----END PGP SIGNATURE-----

 --Signature=_Tue__15_Mar_2005_17_23_01_-0500_rwfP1L82m_GC08od--

State-Changed-From-To: open->feedback
State-Changed-By: jmcneill@NetBSD.org
State-Changed-When: Sun, 07 Aug 2011 13:55:05 +0000
State-Changed-Why:
does this work now that ohci polling is fixed?


State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 22 Aug 2011 02:06:22 +0000
State-Changed-Why:
Fix submitter's address...


State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 22 Aug 2011 02:06:36 +0000
State-Changed-Why:
...and try again.

does this work now that ohci polling is fixed?


From: Michael <macallan1888@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc64/29692 (ohci hangs on sparc64 with "flags 1")
Date: Mon, 22 Aug 2011 21:01:18 -0400

 This works now ( tested on a Sun Blade 2500 )

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 23 Aug 2011 07:10:32 +0000
State-Changed-Why:
hurray! thanks for checking :-)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.