From dgilbert@daveg.ca  Sat Dec 13 15:46:24 2003
Return-Path: <dgilbert@daveg.ca>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E429116A4CE
	for <freebsd-gnats-submit@freebsd.org>; Sat, 13 Dec 2003 15:46:24 -0800 (PST)
Received: from sizone.org (mortar.sizone.org [65.126.154.242])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DDDD343D6E
	for <freebsd-gnats-submit@freebsd.org>; Sat, 13 Dec 2003 15:36:18 -0800 (PST)
	(envelope-from dgilbert@daveg.ca)
Received: by sizone.org (Postfix, from userid 66)
	id EED9230771; Sat, 13 Dec 2003 18:36:17 -0500 (EST)
Received: by canoe.dclg.ca (Postfix, from userid 101)
	id ADB4F1D233E; Sat, 13 Dec 2003 18:36:15 -0500 (EST)
Message-Id: <20031213233615.ADB4F1D233E@canoe.dclg.ca>
Date: Sat, 13 Dec 2003 18:36:15 -0500 (EST)
From: David Gilbert <dgilbert@daveg.ca>
Reply-To: David Gilbert <dgilbert@daveg.ca>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: EHCI controller halts when USB 2.0 device attached.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         60217
>Category:       kern
>Synopsis:       EHCI controller halts when USB 2.0 device attached.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-usb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 13 15:50:20 PST 2003
>Closed-Date:    Mon Jan 10 00:07:50 GMT 2005
>Last-Modified:  Mon Jan 10 00:07:50 GMT 2005
>Originator:     David Gilbert
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
DaveG.ca
>Environment:
System: FreeBSD canoe.dclg.ca 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sat Dec 13 18:09:50 EST 2003 dgilbert@canoe.dclg.ca:/usr/src/sys/i386/compile/CANOE i386


5.2-RC1-ish, I believe is correct.  CVSUP was as of 1700-ish.

>Description:
EHCI code seems to halt whenever a USB-2.0 device is attached.  In this
case, the device is a iomega hard drive enclosure.  The drive enclosure
attached properly if EHCI is not in the kernel.

Here are the USB portions of the boot:

uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xbf80-0xbf9f irq 11 at device 29.0 on pci0
usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0xbf40-0xbf5f irq 11 at device 29.1 on pci0
usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ums0: Logitech USB Receiver, rev 1.10/16.00, addr 2, iclass 3/1
ums0: 7 buttons and Z dir.
uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0xbf20-0xbf3f irq 11 at device 29.2 on pci0
usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xf4fffc00-0xf4ffffff irq 11 at device 29.7 on pci0
ehci_pci_attach: companion usb0
ehci_pci_attach: companion usb1
ehci_pci_attach: companion usb2
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <EHCI (generic) USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: (0x8086) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered

Here's what it says when I connect the device:

usb3: unrecoverable error, controller halted
usb3: blocking intrs 0x10
usb3: port reset timeout

If the drive is connected at boot, the boot hangs (although I only
waited a couple of minutes).

>How-To-Repeat:
My laptop is available for testing.  The ICH4 chipset can't be that
rare, tho.
>Fix:

I don't have anything yet.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: znerd 
Responsible-Changed-When: Mon Jan 5 02:47:13 PST 2004 
Responsible-Changed-Why:  
Over to USB maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60217 

From: David Johnson <david@usermode.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/60217: EHCI controller halts when USB 2.0 device attached.
Date: Sun, 13 Jun 2004 13:12:13 -0700

 I am seeing the same problem on my system. I am trying to use a Memorex 
 256MB USB 2.0 drive, and a Lexar 256MB USB 2.0 drive.
 
 uname -a is:
 
 FreeBSD scatha.home 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Sun Mar 14 
 14:05:06 PST 2004     david@scatha.home:/usr/obj/usr/src/sys/SCATHA  
 i386
 
 Relevant portions of dmesg are:
 
 uhci0: <Intel 82801EB (ICH5) USB controller USB-A> port 0xcc00-0xcc1f 
 irq 16 at
 device 29.0 on pci0
 usb0: <Intel 82801EB (ICH5) USB controller USB-A> on uhci0
 usb0: USB revision 1.0
 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhci1: <Intel 82801EB (ICH5) USB controller USB-B> port 0xd000-0xd01f 
 irq 19 at
 device 29.1 on pci0
 usb1: <Intel 82801EB (ICH5) USB controller USB-B> on uhci1
 usb1: USB revision 1.0
 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 uhci2: <Intel 82801EB (ICH5) USB controller USB-C> port 0xd400-0xd41f 
 irq 18 at
 device 29.2 on pci0
 usb2: <Intel 82801EB (ICH5) USB controller USB-C> on uhci2
 usb2: USB revision 1.0
 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub2: 2 ports with 2 removable, self powered
 uhci3: <Intel 82801EB (ICH5) USB controller USB-D> port 0xd800-0xd81f 
 irq 16 at
 device 29.3 on pci0
 usb3: <Intel 82801EB (ICH5) USB controller USB-D> on uhci3
 usb3: USB revision 1.0
 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub3: 2 ports with 2 removable, self powered
 ehci0: <EHCI (generic) USB 2.0 controller> mem 0xffaffc00-0xffafffff irq 
 23 at d
 evice 29.7 on pci0
 ehci_pci_attach: companion usb0
 ehci_pci_attach: companion usb1
 ehci_pci_attach: companion usb2
 ehci_pci_attach: companion usb3
 usb4: EHCI version 1.0
 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
 usb4: <EHCI (generic) USB 2.0 controller> on ehci0
 usb4: USB revision 2.0
 uhub4: (0x8086) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 uhub4: 8 ports with 8 removable, self powered
 
 Upon plugging in the drive:
 
 usb4: unrecoverable error, controller halted
 usb4: blocking intrs 0x10
 usb4: port reset timeout
 
 -- 
 David Johnson
State-Changed-From-To: open->feedback 
State-Changed-By: le 
State-Changed-When: Sat Jul 31 18:58:07 GMT 2004 
State-Changed-Why:  
Does this still happen with newer versions of -current? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60217 
Responsible-Changed-From-To: joe->freebsd-usb 
Responsible-Changed-By: joe 
Responsible-Changed-When: Wed Nov 10 11:02:01 GMT 2004 
Responsible-Changed-Why:  
Hand this over to the usb mailling list. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60217 
State-Changed-From-To: feedback->closed 
State-Changed-By: julian 
State-Changed-When: Mon Jan 10 00:07:01 GMT 2005 
State-Changed-Why:  
Submitters not having the problem any more. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60217 
>Unformatted:
