Subject: kern/24359: Acer USB 2.0 flash Stick on USB 2.0 port (VIA or NEC chip) won't work
To: None <gnats-bugs@gnats.NetBSD.org>
From: Frank Kardel <kardel@pip.acrys.com>
List: netbsd-bugs
Date: 02/08/2004 14:46:41
>Number:         24359
>Category:       kern
>Synopsis:       Acer USB 2.0 flash Stick on USB 2.0 port (VIA or NEC chip) won't work
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 08 13:47:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Frank Kardel
>Release:        NetBSD 1.6ZI
>Organization:
>Environment:
System: NetBSD pip 1.6ZI NetBSD 1.6ZI (SYSPIP_ISDN) #0: Sun Feb 8 12:57:29 MET 2004 kardel@pip:/fs/IC35L120AVV207-0-e/src/NetBSD/netbsd/sys/arch/i386/compile/obj.i386/SYSPIP_ISDN i386
Architecture: i386
Machine: i386
>Description:

When connecting a Acer USB 2.0 Flash stick to a USB 2.0 port (VIA or NEC
USB chips) uhubx: device problem, disabling port x appears. Without the
ehci driver connections are possible via USB 1.x and connections are
also possible when a USB 1.x hub is used inbetween.
Problem is similar with VIA chips and NEC chips.
Is this problem related to the flash stick ? I have read on -current
that thre exist some workking USB 2.0 drives.

dmesg output:

NetBSD 1.6ZI (SYSPIP_ISDN) #0: Sun Feb  8 12:57:29 MET 2004
	kardel@pip:/fs/IC35L120AVV207-0-e/src/NetBSD/netbsd/sys/arch/i386/compile/obj.i386/SYSPIP_ISDN
total memory = 1023 MB
avail memory = 996 MB
BIOS32 rev. 0 found at 0xf1aa0
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD K7 (Athlon) XP 2800+ (686-class), 2083.24 MHz, id 0x6a0
cpu0: features c3c3fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features c3c3fbff<PGE,MCA,CMOV,PAT,PSE36,MMXX,MMX>
cpu0: features c3c3fbff<FXSR,SSE,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 512 KB 64b/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: calibrating local timer
cpu0: apic clock running at 333 MHz
cpu0: 8 page colors
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 3, 24 pins
ioapic0: misconfigured as apic 0
ioapic0: remapped to apic 2
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20031203
acpi0: X/RSDT: OemId <ASUS  ,A7V8X   ,42302e31>, AslId <MSFT,31313031>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
PNP0C01 at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0A03 at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0000 at acpi0 not configured
PNP0200 at acpi0 not configured
PNP0100 at acpi0 not configured
PNP0B00 at acpi0 not configured
PNP0800 at acpi0 not configured
npx1 at acpi0 (PNP0C04)
npx1: io 0xf0-0xff irq 13
npx1: using exception 16
fdc1 at acpi0 (PNP0700)
fdc1: io 0x3f2-0x3f5,0x3f7 irq 6 drq 2
lpt1 at acpi0 (PNP0401)
lpt1: io 0x378-0x37f,0x778-0x77b irq 7 drq 3
com3 at acpi0 (PNP0501-1)
com3: io 0x3f8-0x3ff irq 4
com3: ns16550a, working fifo
com4 at acpi0 (PNP0501-2)
com4: io 0x2f8-0x2ff irq 3
com4: ns16550a, working fifo
pckbc1 at acpi0 (PNP0303): kbd port
pckbc1: io 0x60,0x64 irq 1
PNPB02F at acpi0 not configured
PNP0C02 at acpi0 not configured
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: unable to establish interrupt for aux slot
wsmouse0 at pms0 mux 0
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: VIA Technologies VT8377 Apollo KT400 CPU to PCI Bridge (rev. 0x00)
agp0 at pchb0: aperture at 0xf8000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT8377 CPU-AGP Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Matrox MGA G400 AGP (rev. 0x82)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
fwohci0 at pci0 dev 7 function 0: VIA Technologies VT3606 OHCI IEEE 1394 Controller (rev. 0x80)
fwohci0: interrupting at ioapic0 pin 17 (irq 10)
fwohci0: OHCI 1.0, 00:e0:18:00:00:0e:37:67, 400Mb/s, 2048 max_rec, 4 ir_ctx, 8 it_ctx
Promise Technology PDC20376 SATA/150 IDE controller (RAID mass storage, revision 0x02) at pci0 dev 8 function 0 not configured
bge0 at pci0 dev 9 function 0: Broadcom BCM5702X Gigabit Ethernet
bge0: interrupting at ioapic0 pin 18 (irq 5)
bge0: ASIC BCM5703 A2 (0x1002), Ethernet address 00:e0:18:dd:34:6f
brgphy0 at bge0 phy 1: BCM5703 1000BASE-T media interface, rev. 2
brgphy0: using BCM5703 DSP patch
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
isic0 at pci0 dev 10 function 0: ELSA QuickStep 1000pro/PCI
isic0: IPAC PSB2115 Version 1.1
isic0: interrupting at ioapic0 pin 16 (irq 11)
ISDN 0 at isic0, 2 B channels
ex0 at pci0 dev 11 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
ex0: interrupting at ioapic0 pin 19 (irq 9)
ex0: MAC address 00:10:5a:d8:53:54
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc0 at pci0 dev 12 function 0: Adaptec 2940 Pro Ultra SCSI adapter
ahc0: interrupting at ioapic0 pin 19 (irq 9)
ahc0: aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
ohci0 at pci0 dev 13 function 0: NEC USB Host Controller (rev. 0x41)
ohci0: interrupting at ioapic0 pin 16 (irq 11)
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 13 function 1: NEC USB Host Controller (rev. 0x41)
ohci1: interrupting at ioapic0 pin 17 (irq 10)
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 13 function 2: NEC USB Host Controller (rev. 0x02)
ehci0: interrupting at ioapic0 pin 18 (irq 5)
ehci0: EHCI version 0.95
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 5 ports with 5 removable, self powered
ex1 at pci0 dev 14 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0x6c)
ex1: interrupting at ioapic0 pin 17 (irq 10)
ex1: MAC address 00:50:da:ee:ca:2e
bmtphy0 at ex1 phy 24: Broadcom 3c905C internal PHY, rev. 4
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pdcide0 at pci0 dev 15 function 0
pdcide0: Promise Ultra133/ATA Bus Master IDE Accelerator (rev. 0x02)
pdcide0: bus-master DMA support present
pdcide0: primary channel configured to native-PCI mode
pdcide0: using ioapic0 pin 18 (irq 5) for native-PCI interrupt
atabus0 at pdcide0 channel 0
pdcide0: secondary channel configured to native-PCI mode
atabus1 at pdcide0 channel 1
uhci0 at pci0 dev 16 function 0: VIA Technologies VT83C572 USB Controller (rev. 0x80)
uhci0: interrupting at ioapic0 pin 21 (irq 9)
usb3 at uhci0: USB revision 1.0
uhub3 at usb3
uhub3: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1: VIA Technologies VT83C572 USB Controller (rev. 0x80)
uhci1: interrupting at ioapic0 pin 21 (irq 9)
usb4 at uhci1: USB revision 1.0
uhub4 at usb4
uhub4: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub4: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x80)
uhci2: interrupting at ioapic0 pin 21 (irq 9)
usb5 at uhci2: USB revision 1.0
uhub5 at usb5
uhub5: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub5: 2 ports with 2 removable, self powered
ehci1 at pci0 dev 16 function 3: VIA Technologies VT8237 EHCI USB Controller (rev. 0x82)
ehci1: interrupting at ioapic0 pin 21 (irq 9)
ehci1: EHCI version 1.0
ehci1: companion controllers, 2 ports each: uhci0 uhci1 uhci2
usb6 at ehci1: USB revision 2.0
uhub6 at usb6
uhub6: VIA Technologie EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub6: 6 ports with 6 removable, self powered
pcib0 at pci0 dev 17 function 0
pcib0: VIA Technologies VT8235 (Apollo KT400) PCI-ISA Bridge (rev. 0x00)
viaide0 at pci0 dev 17 function 1
viaide0: VIA Technologies VT8235 ATA133 controller
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus2 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus3 at viaide0 channel 1
auvia0 at pci0 dev 17 function 5: VIA VT8235 AC'97 Audio (rev 0x50)
auvia0: interrupting at ioapic0 pin 22 (irq 9)
auvia0: ac97: Avance Logic ALC650 codec; 20 bit DAC, 18 bit ADC, Realtek 3D
auvia0: ac97: ext id 5c7<AC97_22,LDAC,SDAC,CDAC,SPDIF,DRA,VRA>
audio0 at auvia0: full duplex, mmap, independent
isa0 at pcib0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
ioapic0: enabling
fd0 at fdc1 drive 0: density unknown
Kernelized RAIDframe activated
vinum: loaded
IPsec: Initialized Security Association Processing.
fw0 at fwohci0: 00:e0:18:00:00:0e:37:67:0a:02:ff:ff:f0:01:00:00
scsibus0: waiting 2 seconds for devices to settle...
uhub7 at uhub3 port 2
uhub7: Texas Instruments UT-USB41 hub, class 9/0, rev 1.10/1.10, addr 2
uhub7: 4 ports with 4 removable, self powered
wd0 at atabus0 drive 0: <IC35L180AVV207-1>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 172 GB, 359010 cyl, 16 head, 63 sec, 512 bytes/sect x 361882080 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(pdcide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
wd1 at atabus1 drive 0: <IC35L180AVV207-1>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 172 GB, 359010 cyl, 16 head, 63 sec, 512 bytes/sect x 361882080 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(pdcide0:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
wd2 at atabus2 drive 0: <IC35L060AVER07-0>
wd2: drive supports 16-sector PIO transfers, LBA addressing
wd2: 58644 MB, 119150 cyl, 16 head, 63 sec, 512 bytes/sect x 120103200 sectors
wd2: 32-bit data port
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd3 at atabus2 drive 1: <IBM-DTLA-305040>
wd3: drive supports 16-sector PIO transfers, LBA addressing
wd3: 39266 MB, 79780 cyl, 16 head, 63 sec, 512 bytes/sect x 80418240 sectors
wd3: 32-bit data port
wd3: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd2(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
wd3(viaide0:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
wd4 at atabus3 drive 0: <IC35L120AVV207-1>
wd4: drive supports 16-sector PIO transfers, LBA48 addressing
wd4: 115 GB, 239340 cyl, 16 head, 63 sec, 512 bytes/sect x 241254720 sectors
wd4: 32-bit data port
wd4: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd5 at atabus3 drive 1: <IBM-DTTA-351010>
wd5: drive supports 16-sector PIO transfers, LBA addressing
wd5: 9671 MB, 19650 cyl, 16 head, 63 sec, 512 bytes/sect x 19807200 sectors
wd5: 32-bit data port
wd5: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd4(viaide0:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
wd5(viaide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
cd0 at scsibus0 target 5 lun 0: <YAMAHA, CRW-F1S, 1.0g> cdrom removable
cd0: sync (50.00ns offset 15), 8-bit (20.000MB/s) transfers
st0 at scsibus0 target 8 lun 0: <SONY, SDT-10000, 0101> tape removable
st0: density code 37, 512-byte blocks, write-enabled
st0: sync (50.00ns offset 8), 16-bit (40.000MB/s) transfers
uhidev0 at uhub7 port 1 configuration 1 interface 0
uhidev0: Microsoft Microsoft IntelliMouse M-. with IntelliEye, rev 1.10/1.01, addr 3, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0
boot device: wd3
root on wd3a dumps on wd3b
root file system type: ffs
umodem0 at uhub7 port 2 configuration 2 interface 0
umodem0: Lucent Technologies, Inc. ELSA Modem Board, rev 1.00/1.00, addr 4, iclass 2/2
umodem0: data interface 1, has CM over data, has break
umodem0: status change notification available
ucom0 at umodem0
IP Filter: v3.4.29 initialized.  Default = block all, Logging = enabled
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x50, vt100 emulation)
wsdisplay0: screen 4 added (80x50, vt100 emulation)
wsdisplay0: screen 5 added (80x50, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)
XFree86 aperture driver version 2.0
Pentium Pro MTRR support enabled
Connection attempt to TCP 127.0.0.1:953 from 127.0.0.1:65534
Connection attempt to TCP [::0001]:25 from [::0001]:65532
Connection attempt to TCP 127.0.0.1:25 from 127.0.0.1:65530
Connection attempt to TCP [::0001]:113 from [::0001]:65527
pckbc: command timeout
pms_enable: command error 35
pckbc: command timeout
pckbc: command timeout
pms_disable: command error
pckbc: command timeout
pms_enable: command error 35
uhub2: device problem, disabling port 3
uhub2: device problem, disabling port 3
uhub2: device problem, disabling port 3
uhub2: device problem, disabling port 2
uhub2: device problem, disabling port 1
umass0 at uhub7 port 4 configuration 1 interface 0
umass0: Pen Drive USB 2.0 Flash Drive, rev 1.10/0.50, addr 5
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, 1 lun per target
sd0 at scsibus1 target 0 lun 0: <Acer USB, 2.0 Flash Stick, 1.02> disk removable
sd0: fabricating a geometry
sd0: 248 MB, 248 cyl, 64 head, 32 sec, 512 bytes/sect x 507904 sectors
umass0: at uhub7 port 4 (addr 5) disconnected
sd0 detached
scsibus1 detached
umass0 detached
umass0 at uhub7 port 4 configuration 1 interface 0
umass0: Pen Drive USB 2.0 Flash Drive, rev 1.10/0.50, addr 5
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, 1 lun per target
sd0 at scsibus1 target 0 lun 0: <Acer USB, 2.0 Flash Stick, 1.02> disk removable
umass0: at uhub7 port 4 (addr 5) disconnected
sd0(umass0:0:0:0): generic HBA error
sd0(umass0:0:0:0): generic HBA error
sd0: drive offline
sd0(umass0:0:0:0): generic HBA error
sd0 detached
scsibus1 detached
umass0 detached
umass0 at uhub7 port 4 configuration 1 interface 0
umass0: Pen Drive USB 2.0 Flash Drive, rev 1.10/0.50, addr 5
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, 1 lun per target
sd0 at scsibus1 target 0 lun 0: <Acer USB, 2.0 Flash Stick, 1.02> disk removable
sd0: fabricating a geometry
sd0: 248 MB, 248 cyl, 64 head, 32 sec, 512 bytes/sect x 507904 sectors

usbdevs -v output (Flash Stick now attached via USB 1.x hub):
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), NEC(0x1033), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), NEC(0x1033), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb2:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), NEC(0x1033), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA Technologies(0x1106), rev 1.00
 port 1 powered
 port 2 addr 2: full speed, self powered, config 1, UT-USB41 hub(0x1446), Texas Instruments(0x0451), rev 1.10
  port 1 addr 3: low speed, power 100 mA, config 1, Microsoft IntelliMouse  with IntelliEye(0x0025), Microsoft(0x045e), rev 1.01
  port 2 addr 4: full speed, power 400 mA, config 2, ELSA Modem Board(0x2267), Lucent Technologies, Inc.(0x05cc), rev 1.00
  port 3 powered
  port 4 addr 5: full speed, power 500 mA, config 1, USB 2.0 Flash Drive(0x1300), Pen Drive(0x0d7d), rev 0.50
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA Technologies(0x1106), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb5:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA Technologies(0x1106), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb6:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), VIA Technologie(0x1106), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered

>How-To-Repeat:
	Try to use an Acer USB 2.0 Flash Stick with a VIA or NEC USB 2.0
	Port - observe uhub?: device problem, disabling port x

>Fix:
	unconfigure ehci driver or connect via usb 1.0 hub
>Release-Note:
>Audit-Trail:
>Unformatted:
 		current-20040208-090000