Bug 88743

Summary: [hang] [regression] USB makes kernel hang at boot (regression in 6.0)
Product: Base System Reporter: Nicolas Le Scouarnec <nlsn>
Component: usbAssignee: freebsd-usb (Nobody) <usb>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: 6.0-STABLE   
Hardware: Any   
OS: Any   

Description Nicolas Le Scouarnec 2005-11-09 19:40:18 UTC
I recently updated from 5.4-RELENG to 6.0-RELEASE. I noticed my computer
sometimes hangs at boot. It hangs after detecting ehci0, at the point marked
with *** . I think I can't use debugging features as my keyboard has not been
initialized yet when the computer hang.

I copy the result of working try, I can't copy the result of non-working,
I may try to get some lines, with a pen...

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 6.0-STABLE #5: Wed Nov  2 12:50:43 CET 2005
    root@shiva.india.ath.cx:/usr/obj/usr/src/sys/SHIVA
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2422.65-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,C                                                                                                                                 MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x4400<CNTX-ID,<b14>>
real memory  = 536805376 (511 MB)
avail memory = 515969024 (492 MB)
ACPI APIC Table: <AMIINT INTEL865>
ioapic0 <Version 2.0> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AMIINT INTEL865> on motherboard
acpi0: Power Button (fixed)
pci_link0: <ACPI PCI Link LNKA> irq 11 on acpi0
pci_link1: <ACPI PCI Link LNKB> irq 6 on acpi0
pci_link2: <ACPI PCI Link LNKC> irq 5 on acpi0
pci_link3: <ACPI PCI Link LNKD> irq 3 on acpi0
pci_link4: <ACPI PCI Link LNKE> irq 5 on acpi0
pci_link5: <ACPI PCI Link LNKF> irq 0 on acpi0
pci_link6: <ACPI PCI Link LNKG> irq 0 on acpi0
pci_link7: <ACPI PCI Link LNKH> irq 10 on acpi0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82865 host to AGP bridge> mem 0xf8000000-0xfbffffff at device 0.0 o                                                                                                                                 n pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
uhci0: <Intel 82801EB (ICH5) USB controller USB-A> port 0xe000-0xe01f irq 16 at                                                                                                                                  device 29.0 on pci0
uhci0: [GIANT-LOCKED]
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 0xe400-0xe41f irq 19 at                                                                                                                                  device 29.1 on pci0
uhci1: [GIANT-LOCKED]
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 0xe800-0xe81f irq 18 at                                                                                                                                  device 29.2 on pci0
uhci2: [GIANT-LOCKED]
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 0xec00-0xec1f irq 16 at                                                                                                                                  device 29.3 on pci0
uhci3: [GIANT-LOCKED]
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 0xfebffc00-0xfebfffff irq 23 at d                                                                                                                                 evice 29.7 on pci0
ehci0: [GIANT-LOCKED]
*****
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: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcm0: <Creative CT5880-C> port 0xcc00-0xcc3f irq 18 at device 2.0 on pci2
pcm0: <SigmaTel STAC9721/23 AC97 Codec>
pcm0: [GIANT-LOCKED]
ed0: <RealTek 8029> port 0xc800-0xc81f irq 17 at device 5.0 on pci2
ed0: Ethernet address: 52:54:05:df:5a:a1
ed0: type RTL8029 (16 bit) 
fxp0: <Intel 82801BA (D865) Pro/100 VE Ethernet> port 0xc400-0xc43f mem 0xfeafe0                                                                                                                                 00-0xfeafefff irq 20 at device 8.0 on pci2
miibus0: <MII bus> on fxp0
inphy0: <i82562ET 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:0c:76:28:29:27
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH5 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x37                                                                                                                                 6,0xfc00-0xfc0f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
. (Resulting lines are not interesting) ...

I can't say if the detection is exactly the same
The computer is a Pentium4, with an Intel 865 chipset, on an
MSI 865PE Neo2 series motherboard.

How-To-Repeat: Booting ? Sometimes it works (1/3), sometimes it doesn't. I would
say that pressing enter before booting make it works sometimes ? 
I don't know at all.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-11-09 21:34:20 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-usb

Over to maintainer(s).
Comment 2 nicolasls 2005-12-16 12:10:31 UTC
This problem must have been fixed, as I don't have anymore hangs at
boot. It can be closed.

My current version system (recompiled just after a cvsup).
[nlsn@shiva ~]% uname -srv
FreeBSD 6.0-STABLE FreeBSD 6.0-STABLE #6: Sun Dec 11 18:16:58 CET 2005     root@shiva.india.ath.cx:/usr/obj/usr/src/sys/SHIVA 
-- 
Nicolas Le Scouarnec
Comment 3 Nicolas Le Scouarnec 2006-01-07 18:26:34 UTC
I noticed that in fact, it still does not work, as it's completely
random. It may not work 9 times and work on the tenth resetting, or it
may work at first time (without reseting). My computer still get
frozen during boot sequence, when detecting ehci. 

I don't know why and can't use the debugger as the keyboard has not yet
been initialized. 

-- 
Nicolas Le Scouarnec
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:27 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped