umass0: BBB reset failed, TIMEOUT on internal card reader

Hans Petter Selasky hselasky at c2i.net
Tue Apr 24 21:04:34 UTC 2007


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=../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=-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=-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 = 4
umass0:umass_t_bbb_data_read_callback: max_bulk=131072, data_rem=255
umass0:umass_t_bbb_data_read_callback: max_bulk=131072, data_rem=0
umass0:umass_transfer_start: transfer index = 8
umass0:umass_t_bbb_status_callback: Failed to read CSW: USBD_STALLED, try 0
umass0:umass_transfer_start: transfer index = 5
umass0:umass_transfer_start: transfer index = 8
umass0:umass_bbb_dump_csw: CSW 3: sig = 0x53425355 (valid), tag = 0x00000003, 
res = 209, status = 0x00 (good)

From what I can see it looks a little suspicious that the CAM command is all 
zero. Is this Normal? Also the residue from the last command, "res = 209" 
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 
data/32b sense
umass0:umass_bbb_dump_cbw: CBW 4: cmd = 6b (0x000000000000), data = 0b, lun = 
0, dir = out

--HPS


More information about the freebsd-usb mailing list