Subject: Re: 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: 01/24/2007 15:50:02
The following reply was made to PR kern/34711; it has been noted by GNATS.

From: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/34711: ehci(4) won't talk to iPod Nano
Date: Wed, 24 Jan 2007 17:49:11 +0200

 I just tried plugging my iPod Nano into an ehci port again, now using
 a kernel built from sources updated a few minutes ago, and I'm still
 getting the same error message:
 
    uhub8: device problem, disabling port 6
 
 Since the original bug report, I have installed a second EHCI card,
 this one based on a VIA chip, in the hope that it would work better
 than the Acer one.  Alas, it also fails, but with a different error
 message:
 
    umass0 at uhub4 port 3 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 boot-time dmesg output from the current kernel, with
 both EHCI cards installed:
 
    Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
        2006, 2007
        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.9 (GUAVA) #4: Wed Jan 24 17:27:33 EET 2007
 	   gson@guava.gson.org:/usr/src/sys/arch/i386/compile/GUAVA
    total memory = 1023 MB
    rbus: rbus_min_start set to 0x40000000
    avail memory = 998 MB
    timecounter: Timecounters tick every 10.000 msec
    timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
    BIOS32 rev. 0 found at 0xfb660
    PCI BIOS rev. 2.1 found at 0xfb690
    pcibios: config mechanism [1][x], special cycles [1][x], last bus 1
    PCI IRQ Routing Table rev. 1.0 found at 0xfdeb0, size 192 bytes (10 entries)
    PCI Interrupt Router at 000:07:0 (VIA Technologies VT82C596A PCI-ISA Bridge compatible)
    PCI Exclusive IRQs: 5 9 10 11
    PIR Entry 0:
 	   Bus: 0  Device: 17
 		   INTA: link 0x01 bitmap 0xdeb8
 		   INTB: link 0x02 bitmap 0xdeb8
 		   INTC: link 0x03 bitmap 0xdeb8
 		   INTD: link 0x05 bitmap 0xdeb8
    PIR Entry 1:
 	   Bus: 0  Device: 15
 		   INTA: link 0x02 bitmap 0xdeb8
 		   INTB: link 0x05 bitmap 0xdeb8
 		   INTC: link 0x03 bitmap 0xdeb8
 		   INTD: link 0x01 bitmap 0xdeb8
    PIR Entry 2:
 	   Bus: 0  Device: 13
 		   INTA: link 0x02 bitmap 0xdeb8
 		   INTB: link 0x01 bitmap 0xdeb8
 		   INTC: link 0x05 bitmap 0xdeb8
 		   INTD: link 0x03 bitmap 0xdeb8
    PIR Entry 3:
 	   Bus: 0  Device: 11
 		   INTA: link 0x05 bitmap 0xdeb8
 		   INTB: link 0x01 bitmap 0xdeb8
 		   INTC: link 0x02 bitmap 0xdeb8
 		   INTD: link 0x03 bitmap 0xdeb8
    PIR Entry 4:
 	   Bus: 0  Device: 9
 		   INTA: link 0x03 bitmap 0xdeb8
 		   INTB: link 0x05 bitmap 0xdeb8
 		   INTC: link 0x01 bitmap 0xdeb8
 		   INTD: link 0x02 bitmap 0xdeb8
    PIR Entry 5:
 	   Bus: 0  Device: 8
 		   INTA: link 0x05 bitmap 0xdeb8
 		   INTB: link 0x02 bitmap 0xdeb8
 		   INTC: link 0x03 bitmap 0xdeb8
 		   INTD: link 0x01 bitmap 0xdeb8
    PIR Entry 6:
 	   Bus: 0  Device: 19
 		   INTA: link 0x03 bitmap 0xdeb8
 		   INTB: link 0x05 bitmap 0xdeb8
 		   INTC: link 0x01 bitmap 0xdeb8
 		   INTD: link 0x02 bitmap 0xdeb8
    PIR Entry 7:
 	   Bus: 1  Device: 5
 		   INTA: link 0x01 bitmap 0xdeb8
 		   INTB: link 0x02 bitmap 0xdeb8
 		   INTC: link 0x03 bitmap 0xdeb8
 		   INTD: link 0x05 bitmap 0xdeb8
    PIR Entry 8:
 	   Bus: 0  Device: 1
 		   INTA: link 0x01 bitmap 0xdeb8
 		   INTB: link 0x02 bitmap 0xdeb8
 		   INTC: link 0x03 bitmap 0xdeb8
 		   INTD: link 0x05 bitmap 0xdeb8
    PIR Entry 9:
 	   Bus: 0  Device: 7
 		   INTA: link 0x00 bitmap 0xdeb8
 		   INTB: link 0x00 bitmap 0xdeb8
 		   INTC: link 0x03 bitmap 0xdeb8
 		   INTD: link 0x05 bitmap 0xdeb8
    pciintr_link_fixup: PIRQ 0x00 already connected to IRQ 10
    pciintr_link_fixup: PIRQ 0x01 already connected to IRQ 9
    pciintr_link_fixup: PIRQ 0x02 already connected to IRQ 5
    pciintr_link_fixup: PIRQ 0x04 already connected to IRQ 9
    pciintr_link_route: route of PIRQ 0x00 -> IRQ 10 preserved BIOS setting
    pciintr_link_route: route of PIRQ 0x01 -> IRQ 9 preserved BIOS setting
    pciintr_link_route: route of PIRQ 0x02 -> IRQ 5 preserved BIOS setting
    pciintr_link_route: route of PIRQ 0x04 -> IRQ 9 preserved BIOS setting
    ------------------------------------------
      device vendor product pin PIRQ IRQ stage
    ------------------------------------------
    000:07:2 0x1106 0x3038   D  0x04   9  0    WARNING: preserving irq 5
    000:07:3 0x1106 0x3038   D  0x04   9  0    WARNING: preserving irq 5
    000:08:0 0x1106 0x3038   A  0x04   9  0    WARNING: preserving irq 5
    000:08:1 0x1106 0x3038   B  0x01   9  0    already assigned
    000:08:2 0x1106 0x3104   C  0x02   5  0    WARNING: preserving irq 10
    000:09:0 0x8086 0x1229   A  0x02   5  0    WARNING: preserving irq 10
    000:11:0 0x10ec 0x8169   A  0x04   9  0    WARNING: preserving irq 5
    000:13:0 0x10b9 0x5237   B  0x00  10  0    WARNING: preserving irq 11
    000:13:1 0x10b9 0x5237   C  0x04   9  0    WARNING: preserving irq 5
    000:13:2 0x10b9 0x5237   D  0x02   5  0    WARNING: preserving irq 10
    000:13:3 0x10b9 0x5239   A  0x01   9  0    already assigned
    000:15:0 0x105d 0x5348   A  0x01   9  0    already assigned
    000:17:0 0x1000 0x0001   A  0x00  10  0    WARNING: preserving irq 11
    000:19:0 0x1103 0x0004   A  0x02   5  0    WARNING: preserving irq 10
    001:05:0 0x105d 0x5348   A  0x00  10  0    WARNING: preserving irq 11
    ------------------------------------------
    pciintr_irq_release: fixup pciirq level/edge map 0x0620
    pciintr_irq_release: bios  pciirq level/edge map 0x0e20
    pciintr_irq_release: final pciirq level/edge map 0x0e20
    mainbus0 (root)
    cpu0 at mainbus0: (uniprocessor)
    cpu0: AMD Athlon XP 1800+ (686-class), 1535.31 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 0xe8000000, 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 5
    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 5
    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
    uhci2 at pci0 dev 8 function 0: VIA Technologies VT83C572 USB Controller (rev. 0x61)
    uhci2: interrupting at irq 5
    usb2 at uhci2: USB revision 1.0
    uhub2 at usb2
    uhub2: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub2: 2 ports with 2 removable, self powered
    uhci3 at pci0 dev 8 function 1: VIA Technologies VT83C572 USB Controller (rev. 0x61)
    uhci3: interrupting at irq 9
    usb3 at uhci3: 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
    ehci0 at pci0 dev 8 function 2: VIA Technologies VT8237 EHCI USB Controller (rev. 0x63)
    ehci0: interrupting at irq 10
    ehci0: BIOS has given up ownership
    ehci0: EHCI version 1.0
    ehci0: wrong number of companions (2 != 0)
    usb4 at ehci0: USB revision 2.0
    uhub4 at usb4
    uhub4: VIA Technologies EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
    uhub4: 4 ports with 4 removable, self powered
    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 5
    re0: Ethernet address 00:50:fc:fe:81:9a
    re0: using 256 tx descriptors
    ukphy0 at re0 phy 7: Generic IEEE 802.3u media interface
    ukphy0: RTL8169S/8110S 1000BASE-T media interface (OUI 0x00e04c, model 0x0011), rev. 0
    ukphy0: 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
    usb5 at ohci0: USB revision 1.0
    uhub5 at usb5
    uhub5: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub5: 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 5
    ohci1: OHCI version 1.0, legacy support
    usb6 at ohci1: USB revision 1.0
    uhub6 at usb6
    uhub6: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub6: 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
    usb7 at ohci2: USB revision 1.0
    uhub7 at usb7
    uhub7: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub7: 2 ports with 2 removable, self powered
    ehci1 at pci0 dev 13 function 3: Acer Labs M5239 USB 2.0 Host Controller (rev. 0x01)
    ehci1: interrupting at irq 9
    ehci1: BIOS has given up ownership
    ehci1: EHCI version 1.0
    ehci1: wrong number of companions (3 != 0)
    usb8 at ehci1: USB revision 2.0
    uhub8 at usb8
    uhub8: Acer Labs EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
    uhub8: 6 ports with 6 removable, self powered
    Number 9 Computer Company product 0x5348 (miscellaneous display, revision 0x02) at pci0 dev 15 function 0 not configured
    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
    pcppi0 at isa0 port 0x61
    midi0 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: reported by CPUID; using exception 16
    fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
    isapnp0: no ISA Plug 'n Play devices found
    timecounter: Timecounter "TSC" frequency 1535317610 Hz quality 800
    timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
    fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
    wd0 at atabus0 drive 0scsibus0: waiting 2 seconds for devices to settle...
    : <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)
    wd1 at atabus0 drive 1: <WDC WD1200JB-00FUA0>
    wd1: drive supports 16-sector PIO transfers, LBA48 addressing
    wd1: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
    wd1: 32-bit data port
    wd1: 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)
    wd1(viaide0:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
    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
    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)
 
 -- 
 Andreas Gustafsson, gson@gson.org