Subject: kern/23465: panic on USB attach at bootup
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jesse_off@stchome.com>
List: netbsd-bugs
Date: 11/17/2003 07:40:41
>Number:         23465
>Category:       kern
>Synopsis:       panic on USB attach at bootup
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 17 14:41:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.2_RC1
>Organization:
	Scientific Technolgies Corp.
>Environment:
System: NetBSD dumptruck 1.6.2_RC1 NetBSD 1.6.2_RC1 (DELL600SC) #8: Mon Nov 17 07:08:12 MST 2003     joff@angel:/usr/src/sys/arch/i386/compile/DELL600SC i386
Architecture: i386
Machine: i386
>Description:
	Every other reboot, the kernel panics before even mounting root when 
	probing USB.  If I don't have my USB hard drive attached, all is okay 
	until I plug it in. (sometimes crashes, sometimes not)  A hand
	transcribed trace of the panic:

	panic()
	ohci_add_done() + 0x66
	ohci_intr1
	ohci_intr
	Xintr5
	-- interrupt --
	idle
	bpendtsleep
	usb_delay_ms
	usbd_new_device
	uhub_explore
	usb_discover
	usb_event_thread

	Perhaps some sort of delay timing/ race condition issue?

	Here's my dmesg:

NetBSD 1.6.2_RC1 (DELL600SC) #8: Mon Nov 17 07:08:12 MST 2003
    joff@angel:/usr/src/sys/arch/i386/compile/DELL600SC
cpu0: Intel Pentium 4 (686-class), 1795.90 MHz
cpu0: D-cache 8 KB 64b/line 4-way
cpu0: features 3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 3febfbff<PGE,MCA,CMOV,FGPAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features 3febfbff<FXSR,SSE,SSE2,SS,HTT,TM>
total memory = 255 MB
avail memory = 234 MB
using 3296 buffers containing 13184 KB of memory
BIOS32 rev. 0 found at 0xffe90
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: ServerWorks CMIC_SL Host (rev. 0x32)
pchb1 at pci0 dev 0 function 1
pchb1: ServerWorks CMIC_SL Host (rev. 0x00)
pci1 at pchb1 bus 255
pci1: no spaces enabled!
wm0 at pci0 dev 2 function 0: Intel i82540EM 1000BASE-T Ethernet, rev. 2
wm0: interrupting at irq 10
wm0: Ethernet address 00:c0:9f:22:f1:63
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
vga1 at pci0 dev 8 function 0: ATI Technologies Rage XL (rev. 0x27)
pci_mem_find: void region
pci_mem_find: void region
pci_mem_find: void region
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pciide0 at pci0 dev 14 function 0: ServerWorks product 0x0217 (rev. 0xa0)
pciide0: bus-master DMA support present, used without full driver support
pciide0: primary channel configured to native-PCI mode
pciide0: using irq 11 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <ST3120023A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 111 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 234375000 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: secondary channel wired to native-PCI mode
pciide0: secondary channel ignored (not responding; disabled or no drives?)
pciide0:0:0: using DMA data transfers
pchb2 at pci0 dev 15 function 0
pchb2: ServerWorks product 0x0203 (rev. 0xa0)
pciide1 at pci0 dev 15 function 1: ServerWorks product 0x0213 (rev. 0xa0)
pciide1: bus-master DMA support present, used without full driver support
pciide1: primary channel configured to compatibility mode
pciide1: primary channel interrupting at irq 14
wd1 at pciide1 channel 0 drive 0: <ST3120023A>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 111 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 234375000 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide1: secondary channel configured to compatibility mode
pciide1: secondary channel interrupting at irq 15
wd2 at pciide1 channel 1 drive 0: <ST3120023A>
wd2: drive supports 16-sector PIO transfers, LBA addressing
wd2: 111 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 234375000 sectors
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide1:0:0: using DMA data transfers
pciide1:1:0: using DMA data transfers
ohci0 at pci0 dev 15 function 2: ServerWorks product 0x0221 (rev. 0x05)
ohci0: interrupting at irq 5
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ServerWorks OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pcib0 at pci0 dev 15 function 3
pcib0: ServerWorks product 0x0227 (rev. 0x00)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
biomask eb6d netmask ef6d ttymask ffef
Kernelized RAIDframe activated
IPsec: Initialized Security Association Processing.
RAID autoconfigure
Configuring raid0:
RAIDFRAME: protectedSectors is 64
RAIDFRAME: Configure (RAID Level 5): total number of sectors is 468524832 (228771 MB)
RAIDFRAME(RAID Level 5): Using 20 floating recon bufs with head sep limit 10
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: BUSlink USB 2.0 Hard Drive, rev 2.00/0.01, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <SAMSUNG, SP8004H, QW10> SCSI0 0/direct fixed
sd0: 76351 MB, 76351 cyl, 64 head, 32 sec, 512 bytes/sect x 156368017 sectors
boot device: raid0
root on raid0a dumps on raid0b
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
>How-To-Repeat:
>Fix:
	unknown
>Release-Note:
>Audit-Trail:
>Unformatted: