From pepper@reppep.com  Mon Sep 22 20:38:52 2003
Return-Path: <pepper@reppep.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 5DECA16A4B3; Mon, 22 Sep 2003 20:38:52 -0700 (PDT)
Received: from www.reppep.com (www.reppep.com [66.92.104.200])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id ABA9443FCB; Mon, 22 Sep 2003 20:38:50 -0700 (PDT)
	(envelope-from pepper@reppep.com)
Received: by www.reppep.com (Postfix, from userid 501)
	id 179A3FE49; Mon, 22 Sep 2003 23:38:50 -0400 (EDT)
Message-Id: <20030923033850.179A3FE49@www.reppep.com>
Date: Mon, 22 Sep 2003 23:38:50 -0400 (EDT)
From: Chris Pepper <pepper@rockefeller.edu>
Reply-To: Chris Pepper <pepper@rockefeller.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Scott Long <scottl@freebsd.org>,
	Nick Hibma <n_hibma@FreeBSD.org>, Barney Wolff <barney@databus.com>,
	Doug White <dwhite@gumbysoft.com>,
	Robert Kraus <robert.k@sympatico.ca>,
	regis rampnoux <regisr@regix.com>, Olivier <zozo@infogestion.org>,
	David LaCroix <dlacroix@demobsd.streams.com>,
	"Paul Horechuk" <phorechuk@docucom.ca>,
	Brandon Fosdick <bfoz@terrandev.com>
Subject: USB hangs at startup
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         57119
>Category:       kern
>Synopsis:       USB hangs at startup
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    joe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 22 20:40:17 PDT 2003
>Closed-Date:    Sat Nov 15 06:22:45 PST 2003
>Last-Modified:  Sat Nov 15 06:22:45 PST 2003
>Originator:     Chris Pepper
>Release:        FreeBSD 4.9-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD www.reppep.com 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #3: Mon Sep
 22 19:30:41 EDT 2003 root@www.reppep.com:/usr/obj/usr/src/sys/REPPEP i386
>Description:

	4.9-PRE hangs for many people on startup. For most people, this problem has only been present in STABLE for the past few months -- it was okay in July -- but I had trouble with 4.8-RELEASE.

	I can't boot with my IOGear 2-port USB KVM connected; it has an integral hub that switches over to the USB port of the active system. The KVM/hub works fine if I connect it after the system's up, but FreeBSD booting halts during USB probing if the hub is connected. This happens with or without other devices plugged into the KVM's built-in hub.

	During the last week, several other people have posted similar problems to freebsd-stable (threads are "USB Problem" & "USB hangs during boot of 4.9"), as well as "4.9-PRE hanging on boot with USB KVM active" on freebsd-hardware.

	Once my system (Dell 600SC with BIOS A05; it offers no option to disable legacy USB support, as one person suggested) is up, attaching looks like this:

uhub1: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 2
uhub1: 4 ports with 4 removable, self powered

	Detaching looks like this:

uhub1: at uhub0 port 1 (addr 2) disconnected
uhub1: detached

	Here's a normal boot, with just the onboard hub:

Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994        
        The Regents of the University of California. All rights reserved.       
FreeBSD 4.9-PRERELEASE #3: Mon Sep 22 19:30:41 EDT 2003                         
    root@www.reppep.com:/usr/obj/usr/src/sys/REPPEP                             
Timecounter "i8254"  frequency 1193182 Hz                                       
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2399.34-MHz 686-class CPU)              
  Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7                             
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,>
real memory  = 402587648 (393152K bytes)                                        
avail memory = 387510272 (378428K bytes)                                        
Preloaded elf kernel "kernel" at 0xc03e0000.                                    
Pentium Pro MTRR support enabled                                                
md0: Malloc disk                                                                
Using $PIR table, 7 entries at 0xc00fc320                                       
npx0: <math processor> on motherboard                                           
npx0: INT 16 interface                                                          
pcib0: <ServerWorks host to PCI bridge(unknown chipset)> on motherboard         
pci0: <PCI bus> on pcib0                                                        
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.16> port 0xecc0-0xecf0
em0:  Speed:N/A  Duplex:N/A                                                     
pci0: <ATI Mach64-GR graphics accelerator> at 8.0                               
atapci0: <Generic PCI ATA controller> port 0x900-0x90f,0x36c-0x36f,0x168-0x16f,0
ata2: at 0x1e8 on atapci0                                                       
ata3: at 0x168 on atapci0                                                       
atapci1: <Generic PCI ATA controller> port 0x8b0-0x8bf,0x374-0x377,0x170-0x177,0
ata0: at 0x1f0 irq 14 on atapci1                                                
ata1: at 0x170 irq 15 on atapci1                                                
ohci0: <OHCI (generic) USB controller> mem 0xfe120000-0xfe120fff irq 5 at devic0
usb0: OHCI version 1.0, legacy support                                          
usb0: SMM does not respond, resetting                                           
usb0: <OHCI (generic) USB controller> on ohci0                                  
usb0: USB revision 1.0                                                          
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1                 
uhub0: 2 ports with 2 removable, self powered                                   
isab0: <PCI to ISA bridge (vendor=1166 device=0227)> at device 15.3 on pci0     
isa0: <ISA bus> on isab0                                                        
pcib255: <ServerWorks host to PCI bridge(unknown chipset)> on motherboard       
pci255: <PCI bus> on pcib255                                                    
pcib1: <Host to PCI bridge> on motherboard                                      
pci1: <PCI bus> on pcib1                                                        
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xec000-0xeffff on isa0            
pmtimer0 on isa0                                                                

	With the KVM switched over (USB hub attached), nothing happens after the second uhub0 line; the TI hub is never listed.


						Chris Pepper
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: kris 
Responsible-Changed-When: Wed Oct 8 15:08:12 PDT 2003 
Responsible-Changed-Why:  
Assign to USB maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57119 
State-Changed-From-To: open->feedback 
State-Changed-By: joe 
State-Changed-When: Sat Nov 8 04:15:23 PST 2003 
State-Changed-Why:  
Can you reconfirm whether the problem still exists please? 

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

From: Chris Pepper <pepper@reppep.com>
To: Josef Karthauser <joe@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/57119: USB hangs at startup
Date: Fri, 14 Nov 2003 23:51:36 -0500

 At 4:16 AM -0800 2003/11/08, Josef Karthauser wrote:
 >Synopsis: USB hangs at startup
 >
 >State-Changed-From-To: open->feedback
 >State-Changed-By: joe
 >State-Changed-When: Sat Nov 8 04:15:23 PST 2003
 >State-Changed-Why:
 >Can you reconfirm whether the problem still exists please?
 >
 >http://www.freebsd.org/cgi/query-pr.cgi?pr=57119
 
 	Yes, fixed with 4.9-RELEASE as of last night, thanks!
 
 
 						Chris Pepper
 -- 
 Chris Pepper:               <http://www.reppep.com/~pepper/>
 Rockefeller University:     <http://www.rockefeller.edu/>
State-Changed-From-To: feedback->closed 
State-Changed-By: joe 
State-Changed-When: Sat Nov 15 06:22:10 PST 2003 
State-Changed-Why:  
The originator reports that the problem is solved in -stable. 

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