Subject: kern/10797: usb probing doesn't work correctly
To: None <gnats-bugs@gnats.netbsd.org>
From: Ted Lemon <mellon@hoffman.vix.com>
List: netbsd-bugs
Date: 08/09/2000 11:33:15
>Number:         10797
>Category:       kern
>Synopsis:       usb probing doesn't work correctly
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 09 11:34:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Ted Lemon
>Release:        NetBSD-1.5_Alpha, August 9, 2000
>Organization:
Nominum, Inc.

>Environment:
NetBSD 1.5_ALPHA (YIRANG) #11: Wed Aug  9 13:55:37 EDT 2000
    mellon@grosse:/var/src/sys/arch/i386/compile/YIRANG
cpu0: family 6 model 8 step 1
cpu0: Intel Pentium III (E) (686-class)
total memory = 127 MB
avail memory = 115 MB
using 1658 buffers containing 6632 KB of memory
BIOS32 rev. 0 found at 0xfd880
PCI BIOS rev. 2.1 found at 0xfd99e
pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xfdf40, size 160 bytes (8 entries)
PCI Interrupt Router at 000:07:0 (vendor 0x8086 product 0x122e)
PIR Entry 0:
	Bus: 0  Device: 1
		INTA: link 0x60 bitmap 0x0200
		INTB: link 0x61 bitmap 0x0200
		INTC: link 0x62 bitmap 0x0200
		INTD: link 0x63 bitmap 0x0200
PIR Entry 1:
	Bus: 0  Device: 7
		INTA: link 0x00 bitmap 0x0000
		INTB: link 0x00 bitmap 0x0000
		INTC: link 0x00 bitmap 0x0000
		INTD: link 0x63 bitmap 0x0200
PIR Entry 2:
	Bus: 0  Device: 8
		INTA: link 0x63 bitmap 0x0200
		INTB: link 0x00 bitmap 0x0000
		INTC: link 0x00 bitmap 0x0000
		INTD: link 0x00 bitmap 0x0000
PIR Entry 3:
	Bus: 0  Device: 9
		INTA: link 0x62 bitmap 0x0200
		INTB: link 0x00 bitmap 0x0000
		INTC: link 0x00 bitmap 0x0000
		INTD: link 0x00 bitmap 0x0000
PIR Entry 4:
	Bus: 0  Device: 10
		INTA: link 0x61 bitmap 0x0200
		INTB: link 0x00 bitmap 0x0000
		INTC: link 0x00 bitmap 0x0000
		INTD: link 0x00 bitmap 0x0000
PIR Entry 5:
	Bus: 0  Device: 11
		INTA: link 0x60 bitmap 0x0200
		INTB: link 0x00 bitmap 0x0000
		INTC: link 0x00 bitmap 0x0000
		INTD: link 0x00 bitmap 0x0000
PIR Entry 6:
	Bus: 0  Device: 12
		INTA: link 0x61 bitmap 0x0200
		INTB: link 0x00 bitmap 0x0000
		INTC: link 0x00 bitmap 0x0000
		INTD: link 0x00 bitmap 0x0000
PIR Entry 7:
	Bus: 0  Device: 13
		INTA: link 0x61 bitmap 0x0200
		INTB: link 0x00 bitmap 0x0000
		INTC: link 0x00 bitmap 0x0000
		INTD: link 0x00 bitmap 0x0000
pciintr_link_fixup: PIRQ 0 already connected to IRQ 9
pciintr_link_fixup: PIRQ 1 not connected, assigning IRQ 9
pciintr_link_fixup: PIRQ 2 not connected, assigning IRQ 9
pciintr_link_fixup: PIRQ 3 not connected, assigning IRQ 9
--------------------------------------------
  device vendor product pin PIRQ   IRQ stage
--------------------------------------------
000:07:2 0x8086 0x7112  D   0x03   09  1
000:08:0 0x104d 0x8039  A   0x03   09  1
000:09:0 0x1073 0x0010  A   0x02   09  1
000:10:0 0x14f1 0x2443  A   0x01   09  1
000:11:0 0x8086 0x1229  A   0x00   09  0
000:12:0 0x1180 0x0475  A   0x01   09  1
000:13:0 0x104d 0x808a  A   0x01   09  1
--------------------------------------------
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x7190 (rev. 0x03)
ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x7191 (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: vendor 0x10c8 product 0x0005 (rev. 0x20)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-3 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x8086 product 0x7110 (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <TOSHIBA MK1214GAP>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 11513 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 23579136 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 7 function 2: vendor 0x8086 product 0x7112 (rev. 0x01)
uhci0: interrupting at irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
vendor 0x8086 product 0x7113 (miscellaneous bridge, revision 0x03) at pci0 dev 7 function 3 not configured
vendor 0x104d product 0x8039 (Firewire serial bus, interface 0x10, revision 0x02) at pci0 dev 8 function 0 not configured
vendor 0x1073 product 0x0010 (audio multimedia, revision 0x02) at pci0 dev 9 function 0 not configured
vendor 0x14f1 product 0x2443 (miscellaneous communications, revision 0x01) at pci0 dev 10 function 0 not configured
fxp0 at pci0 dev 11 function 0: Intel i82557 Ethernet, rev 8
fxp0: interrupting at irq 9
fxp0: Ethernet address 08:00:46:06:6c:23, 10/100 Mb/s
OUI 0x00aa00 model 0x0015 rev 4 at fxp0 phy 1 not configured
cbb0 at pci0 dev 12 function 0: vendor 0x1180 product 0x0475 (rev. 0x80)
vendor 0x104d product 0x808a (flash memory, revision 0x01) at pci0 dev 13 function 0 not configured
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
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
isapnp0: no ISA Plug 'n Play devices found
cbb0: interrupting at irq 9
cbb0: cacheline 0x0 lattimer 0x20
cbb0: bhlc 0x21000 lscp 0x20000000
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 0 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
apm0 at mainbus0: Power Management spec V1.2
biomask ef6d netmask ef6d ttymask ffef
wi0 at pcmcia0 function 0
wi0: address 00:60:1d:23:a8:60
uhub1 at uhub0 port 2
uhub1: ALCOR macally Kbd Hub, class 9/0, rev 1.10/1.00, addr 2
uhub1: 3 ports with 2 removable, bus powered
ukbd0 at uhub1 port 1 configuration 1 interface 0
ukbd0: ALCOR macally Kbd Hub, rev 1.10/1.00, addr 3, iclass 3/1
wskbd1 at ukbd0 mux 1
uhub1: device problem, disabling port 3
boot device: wd0
root on wd0a dumps on wd0b
IP Filter: v3.4.6 initialized.  Default = pass all, Logging = enabled
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wskbd1: connecting to wsdisplay0
ums0 at uhub1 port 3 configuration 1 interface 0
ums0: Logitech USB-PS/2 Trackball, rev 1.00/2.00, addr 4, iclass 3/1
ums0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0
>Description:
	USB mouse is not detected on startup.   USB devices are lost
	when the system is put to sleep and then reawakened.   Unplugging
	a USB keyboard/hub causes the system to hang.
>How-To-Repeat:
	I have a MacAlly USB keyboard and a Logitech USB mouse.   The
	keyboard has a built in hub, into which I have plugged the mouse.
	The mouse is not detected on startup - I have to unplug it (which
	produces no syslog message) and then plug it back in, at which
	point it is correctly detected.   Additionally, if I unplug both
	the mouse and the keyboard, the system hangs.   If I put the
	system to sleep, the USB devices are lost, and are not redetected
	when the bus is reset.
>Fix:
	Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: