Subject: kern/34711: ehci(4) won't talk to iPod Nano
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Andreas Gustafsson <gson@gson.org>
List: netbsd-bugs
Date: 10/04/2006 13:05:00
>Number:         34711
>Category:       kern
>Synopsis:       ehci(4) won't talk to iPod Nano
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 04 13:05:00 +0000 2006
>Originator:     Andreas Gustafsson
>Release:        NetBSD 4.99.3
>Organization:
>Environment:
System: NetBSD guava.gson.org 4.99.3 NetBSD 4.99.3 (GENERIC) #0: Mon Sep 25 00:54:38 EEST 2006 root@guru.araneus.fi:/usr/build/1007/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

If I plug an iPod nano into a High-Speed USB 2.0 port based on an
Acer Labs M5239 ehci(4) controller, all that happens is that I get
the following kernel message:

   uhub5: device problem, disabling port 6

Plugging a Lexar JumpDrive 2.0 Pro into the same port works:

   umass0 at uhub5 port 6 configuration 1 interface 0
   umass0: LEXAR MEDIA JUMPDRIVE2, rev 2.00/1.25, addr 2
   umass0: using SCSI over Bulk-Only
   scsibus1 at umass0: 2 targets, 1 lun per target
   sd0 at scsibus1 target 0 lun 0: <Generic, STORAGE DEVICE, 1.25> disk removable
   sd0: fabricating a geometry
   sd0: 250 MB, 250 cyl, 64 head, 32 sec, 512 bytes/sect x 512000 sectors

Plugging the same iPod into a USB 1.1 port based on a VIA uhci(4)
controller on the same machine also works:

   umass0 at uhub0 port 2 configuration 1 interface 0
   umass0: Apple iPod, rev 2.00/0.01, addr 2
   umass0: using SCSI over Bulk-Only
   scsibus1 at umass0: 2 targets, 1 lun per target
   sd0 at scsibus1 target 0 lun 0: <Apple, iPod, 1.62> disk removable
   sd0(umass0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
       SENSE KEY:  Not Ready
	ASC/ASCQ:  Logical Unit Is in Process Of Becoming Ready
   sd0: drive offline

Here is the full dmesg output:

   Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
       The NetBSD Foundation, Inc.  All rights reserved.
   Copyright (c) 1982, 1986, 1989, 1991, 1993
       The Regents of the University of California.  All rights reserved.

   NetBSD 4.99.3 (GENERIC) #0: Mon Sep 25 00:54:38 EEST 2006
	   root@guru.araneus.fi:/usr/build/1007/obj/sys/arch/i386/compile/GENERIC
   total memory = 1023 MB
   avail memory = 996 MB
   timecounter: Timecounters tick every 10.000 msec
   timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
   timecounter: selected timecounter "i8254" frequency 1193182 Hz quality 100
   BIOS32 rev. 0 found at 0xfb660
   mainbus0 (root)
   cpu0 at mainbus0: (uniprocessor)
   cpu0: AMD Athlon XP 1800+ (686-class), 1535.30 MHz, id 0x662
   cpu0: features c3cbf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
   cpu0: features c3cbf9ff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMXX,MMX>
   cpu0: features c3cbf9ff<FXSR,SSE,3DNOW2,3DNOW>
   cpu0: "AMD Athlon(tm) XP 1800+"
   cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
   cpu0: L2 cache 256 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: 8 page colors
   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: Advanced Micro Devices AMD761 System Controller (rev. 0x13)
   agp0 at pchb0: aperture at 0xf0000000, size 0x4000000
   ppb0 at pci0 dev 1 function 0: Advanced Micro Devices AMD761 PCI-PCI Bridge (rev. 0x00)
   pci1 at ppb0 bus 1
   pci1: i/o space, memory space enabled
   vga1 at pci1 dev 5 function 0: Number 9 Computer Company product 0x5348 (rev. 0x01)
   wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
   wsmux1: connecting to wsdisplay0
   pcib0 at pci0 dev 7 function 0
   pcib0: VIA Technologies VT82C686A PCI-ISA Bridge (rev. 0x40)
   viaide0 at pci0 dev 7 function 1
   viaide0: VIA Technologies VT82C686A (Apollo KX133) ATA100 controller
   viaide0: bus-master DMA support present
   viaide0: primary channel configured to compatibility mode
   viaide0: primary channel interrupting at irq 14
   atabus0 at viaide0 channel 0
   viaide0: secondary channel configured to compatibility mode
   viaide0: secondary channel interrupting at irq 15
   atabus1 at viaide0 channel 1
   uhci0 at pci0 dev 7 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x1a)
   uhci0: interrupting at irq 9
   usb0 at uhci0: USB revision 1.0
   uhub0 at usb0
   uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
   uhub0: 2 ports with 2 removable, self powered
   uhci1 at pci0 dev 7 function 3: VIA Technologies VT83C572 USB Controller (rev. 0x1a)
   uhci1: interrupting at irq 9
   usb1 at uhci1: USB revision 1.0
   uhub1 at usb1
   uhub1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
   uhub1: 2 ports with 2 removable, self powered
   VIA Technologies VT82C686A SMBus Controller (SMBus serial bus, revision 0x40) at pci0 dev 7 function 4 not configured
   eap0 at pci0 dev 8 function 0: Ensoniq AudioPCI (rev. 0x00)
   eap0: interrupting at irq 9
   audio0 at eap0: full duplex, mmap, independent
   midi0 at eap0: AudioPCI MIDI UART
   fxp0 at pci0 dev 9 function 0: Intel i82557 Ethernet, rev 2
   fxp0: interrupting at irq 10
   fxp0: May need receiver lock-up workaround
   fxp0: Ethernet address 00:a0:c9:81:cf:eb
   inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 0
   inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
   re0 at pci0 dev 11 function 0: RealTek 8169S Single-chip Gigabit Ethernet
   re0: interrupting at irq 9
   re0: Ethernet address 00:50:fc:fe:81:9a
   re0: using 256 tx descriptors
   rgephy0 at re0 phy 7: RTL8169S/8110S 1000BASE-T media interface, rev. 0
   rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
   ohci0 at pci0 dev 13 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
   ohci0: interrupting at irq 11
   ohci0: OHCI version 1.0, legacy support
   usb2 at ohci0: USB revision 1.0
   uhub2 at usb2
   uhub2: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
   uhub2: 2 ports with 2 removable, self powered
   ohci1 at pci0 dev 13 function 1: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
   ohci1: interrupting at irq 9
   ohci1: OHCI version 1.0, legacy support
   usb3 at ohci1: USB revision 1.0
   uhub3 at usb3
   uhub3: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
   uhub3: 2 ports with 2 removable, self powered
   ohci2 at pci0 dev 13 function 2: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
   ohci2: interrupting at irq 10
   ohci2: OHCI version 1.0, legacy support
   usb4 at ohci2: USB revision 1.0
   uhub4 at usb4
   uhub4: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
   uhub4: 2 ports with 2 removable, self powered
   ehci0 at pci0 dev 13 function 3: Acer Labs M5239 USB 2.0 Host Controller (rev. 0x01)
   ehci0: interrupting at irq 11
   ehci0: BIOS has given up ownership
   ehci0: EHCI version 1.0
   ehci0: companion controllers, 2 ports each: ohci0 ohci1 ohci2
   usb5 at ehci0: USB revision 2.0
   uhub5 at usb5
   uhub5: Acer Labs EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
   uhub5: 6 ports with 6 removable, self powered
   siop0 at pci0 dev 17 function 0: Symbios Logic 53c810 (fast scsi)
   siop0: interrupting at irq 11
   scsibus0 at siop0: 8 targets, 8 luns per target
   hptide0 at pci0 dev 19 function 0
   hptide0: Triones/Highpoint HPT370A IDE Controller
   hptide0: bus-master DMA support present
   hptide0: primary channel wired to native-PCI mode
   hptide0: using irq 10 for native-PCI interrupt
   atabus2 at hptide0 channel 0
   hptide0: secondary channel wired to native-PCI mode
   atabus3 at hptide0 channel 1
   isa0 at pcib0
   lpt0 at isa0 port 0x378-0x37b irq 7
   com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
   com1 at isa0 port 0x2f8-0x2ff irq 3: 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
   attimer0 at isa0 port 0x40-0x43: AT Timer
   pcppi0 at isa0 port 0x61
   midi1 at pcppi0: PC speaker (CPU-intensive output)
   sysbeep0 at pcppi0
   isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
   npx0 at isa0 port 0xf0-0xff
   npx0: using exception 16
   fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
   pcppi0: attached to attimer0
   isapnp0: no ISA Plug 'n Play devices found
   timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
   fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
   Kernelized RAIDframe activated
   scsibus0: waiting 2 seconds for devices to settle...
   cd0 at scsibus0 target 4 lun 0: <PLEXTOR, CD-R   PX-R820T, 1.08> cdrom removable
   cd0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers
   wd0 at atabus0 drive 0: <WDC WD1000BB-00CAA0>
   wd0: drive supports 16-sector PIO transfers, LBA addressing
   wd0: 95396 MB, 193821 cyl, 16 head, 63 sec, 512 bytes/sect x 195371568 sectors
   wd0: 32-bit data port
   wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
   wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
   atapibus0 at atabus1: 2 targets
   cd1 at atapibus0 drive 0: <HITACHI DVD-ROM GD-7500, , 0005> cdrom removable
   cd1: 32-bit data port
   cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
   cd1(viaide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
   boot device: wd0
   root on wd0a dumps on wd0b
   root file system type: ffs
   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:

See above.

>Fix:

None provided.