From owner-freebsd-current@FreeBSD.ORG Mon Jun 6 20:06:30 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8217716A41C for ; Mon, 6 Jun 2005 20:06:30 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FDF643D48 for ; Mon, 6 Jun 2005 20:06:30 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 4CE7872DD4; Mon, 6 Jun 2005 13:06:30 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 474F872DCB; Mon, 6 Jun 2005 13:06:30 -0700 (PDT) Date: Mon, 6 Jun 2005 13:06:30 -0700 (PDT) From: Doug White To: Nicolas Blais In-Reply-To: <200506051049.22537.nb_root@videotron.ca> Message-ID: <20050606130324.V16994@carver.gumbysoft.com> References: <200506051049.22537.nb_root@videotron.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-current@freebsd.org Subject: Re: USB still not working properly X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2005 20:06:30 -0000 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: 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: 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 > > 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@gumbysoft.com | www.FreeBSD.org