From owner-freebsd-usb@FreeBSD.ORG Tue Apr 24 21:04:34 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AEAEF16A402 for ; Tue, 24 Apr 2007 21:04:34 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swip.net [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 1FCD113C4BC for ; Tue, 24 Apr 2007 21:04:33 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.71.38.142] (account mc467741@c2i.net HELO [10.42.11.147]) by mailfe12.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 302169648; Tue, 24 Apr 2007 23:04:32 +0200 From: Hans Petter Selasky To: Mike Durian Date: Tue, 24 Apr 2007 23:04:13 +0200 User-Agent: KMail/1.9.5 References: <200704191213.21299.durian@shadetreesoftware.com> <200704242003.21153.hselasky@c2i.net> <200704241349.58604.durian@shadetreesoftware.com> In-Reply-To: <200704241349.58604.durian@shadetreesoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200704242304.13649.hselasky@c2i.net> Cc: Scott Long , freebsd-usb@freebsd.org Subject: Re: umass0: BBB reset failed, TIMEOUT on internal card reader X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 21:04:34 -0000 Hi, Scott, can you have a quick look at this? On Tuesday 24 April 2007 21:49, Mike Durian wrote: > On Tuesday 24 April 2007, Hans Petter Selasky wrote: > > On Friday 20 April 2007 17:36, Mike Durian wrote: > > > On Friday 20 April 2007, Hans Petter Selasky wrote: > > > > I would suggest you install the new USB stack from: > > > > > > > > http://www.turbocat.net/~hselasky/usb4bsd/ > > > > > > > > How to get the latest sources: > > > > > > > > svn --username anonsvn --password anonsvn \ > > > > checkout svn://svn.turbocat.net/i4b > > > > # > > > > # The following commands will > > > > # install the driver on FreeBSD: > > > > # > > > > cd i4b/trunk/i4b/FreeBSD.usb > > > > make S=3D../src package > > > > make install > > > > > > > > Install on FreeBSD 6.x . > > > > > > > > When you have rebooted your computer, then you turn on debugging: > > > > > > > > sysctl hw.usb.umass.debug=3D-1 > > > > > > > > Then post the dmesg you get. > > > > > > > > --HPS > > > > I have found a small data-toggle bug in my EHCI driver. I assume that > > your device is USB2.0. Could you do a "svn update", repeat the install > > procedure, and then build a new kernel. > > > > Then send me the dmesg with "sysctl hw.usb.umass.debug=3D-1", when you = plug > > your device. > > > > --HPS > > Yes, it is a USB 2.0 device. Here is the debug output. umass0:umass_transfer_start: transfer index =3D 4 umass0:umass_t_bbb_data_read_callback: max_bulk=3D131072, data_rem=3D255 umass0:umass_t_bbb_data_read_callback: max_bulk=3D131072, data_rem=3D0 umass0:umass_transfer_start: transfer index =3D 8 umass0:umass_t_bbb_status_callback: Failed to read CSW: USBD_STALLED, try 0 umass0:umass_transfer_start: transfer index =3D 5 umass0:umass_transfer_start: transfer index =3D 8 umass0:umass_bbb_dump_csw: CSW 3: sig =3D 0x53425355 (valid), tag =3D 0x000= 00003,=20 res =3D 209, status =3D 0x00 (good) =46rom what I can see it looks a little suspicious that the CAM command is = all=20 zero. Is this Normal? Also the residue from the last command, "res =3D 209"= =20 maybe confuses the CAM layer? umass0:umass_cam_action: 5:0:0:XPT_GET_TRAN_SETTINGS:. umass0:umass_cam_action: 5:0:0:XPT_PATH_INQ:. umass0:umass_cam_action: 5:0:0:XPT_GET_TRAN_SETTINGS:. umass0:umass_cam_action: 5:0:0:XPT_SET_TRAN_SETTINGS:. umass0:umass_cam_action: 5:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b cmd/= 0b=20 data/32b sense umass0:umass_bbb_dump_cbw: CBW 4: cmd =3D 6b (0x000000000000), data =3D 0b,= lun =3D=20 0, dir =3D out =2D-HPS