Re: USB still not working properly

From: Doug White <dwhite_at_gumbysoft.com>
Date: Mon, 6 Jun 2005 13:06:30 -0700 (PDT)
On Sun, 5 Jun 2005, Nicolas Blais wrote:

> Hi,
>
> I've had this problem for about 2 months now and posted twice about it but no
> replies.  My problem is that when I enable ehci in my kernel. There will be a
> 5 minutes delay at boot during the probing of my memory card reader. Which
> ends up not working :
>
> ehci0: <VIA VT6202 USB 2.0 controller> mem 0xfb800000-0xfb8000ff irq 5 at
> device 16.4 on pci0
> ehci0: Reserved 0x100 bytes for rid 0x10 type 3 at 0xfb800000
> ehci0: [GIANT-LOCKED]
> usb4: waiting for BIOS to give up control
> usb4: EHCI version 1.0
> usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
> usb4: <VIA VT6202 USB 2.0 controller> on ehci0
> usb4: USB revision 2.0
> uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
> uhub4: 8 ports with 8 removable, self powered
> umass0: VIA Technologies Inc. Mitsumi multi cardreader, rev 2.00/0.03, addr 2
> umass0:0:0:-1: Attached to scbus0
> <snip>
> probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR
> (probe0:umass-sim0:0:0:0): Retrying Command
> (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR
> (probe0:umass-sim0:0:0:0): Retrying Command
> (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR
> (probe0:umass-sim0:0:0:0): Retrying Command
> (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR
> (probe0:umass-sim0:0:0:0): Retrying Command
> (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR
> (probe0:umass-sim0:0:0:0): error 5
> (probe0:umass-sim0:0:0:0): Retries Exausted

First guess is that this is a problem with the device since these are CAM
messages.  It apparently is not liking some command used during the probe
sequence.  Usually it prints the offending SCSI command.  You'd need to
track down in what cases CAM_REQ_CMP_ERR gets returned.

Its also possible that in the ehci case data is getting corrupted.

I'd suggest compiling with USB_DEBUG, crank up the USB and umass debug
levels via sysctl, then plug in the device and see what comes out.  (The
output can be lengthy at higher levels.)

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite_at_gumbysoft.com          |  www.FreeBSD.org
Received on Mon Jun 06 2005 - 18:06:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:35 UTC