Subject: port-sparc64/29692: ohci broken on sparc64
To: None <port-sparc64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <macallan18@earthlink.net>
List: netbsd-bugs
Date: 03/14/2005 12:46:00
>Number:         29692
>Category:       port-sparc64
>Synopsis:       ohci broken on sparc64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 14 12:46:00 +0000 2005
>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