Subject: Re: READ ME: major umass (and general USB/SCSI) tillage
To: None <abuse@spamalicious.com>
From: MOCHIDA Shuji <mochid@netside.co.jp>
List: current-users
Date: 09/12/2003 15:17:52
> weird crap.  If you find a device that does not work, please build a
> kernel with "options USB_DEBUG" and "options MSGBUFSIZE=65536", set
> "umassdebug" to 0xffffffff just before doing whichever operation fails
> (usually attaching the device in the first place), and email me the
> output.  Alternatively, send me the device to look at directly.

 I have TEAC CF-R50 compact flash reader, that had worked with
USB_PRODUCT_GENESYS_GL641USB quirk entry. It shows error and sd0 
won't appear.

 Other USB devices I have seem work well.

% uname -a
NetBSD cypress 1.6Z NetBSD 1.6Z (BEECH2-USBDBG) #0: Fri Sep 12 12:12:03 JST 2003  mochid@.../BEECH2-USBDBG i386

Ctl+Alt+Esc
db> write umassdebug 0xffffffff

(plug CF-R50 to USB)


umass0 at uhub1 port 1 configuration 1 interface 0
umass0: Genesys Logic USB Storage Device, rev 1.10/1.13, addr 4
umass0: using SCSI over Bulk-Only
umass0: Get Max Lun
umass0: Get Max Lun not supported
umass0: opening iface 0xc0bdf340 epaddr 2 for BULKOUT
umass0: opening iface 0xc0bdf340 epaddr 129 for BULKIN
umass0: umass_attach_bus: SCSI
scsibus0 at umass0: 2 targets, 1 lun per target
umass0: Attach finished
scsibus0: waiting 2 seconds for devices to settle...
umass0: umass_scsi_cmd: at 1063346372.200036: 1:0 xs=0xc0c13000 cmd=0x00 datalen=0 (quirks=0x8000, poll=0)
umass_scsi_cmd: async dir=0, cmdlen=6 datalen=0
umass0: umass_bbb_transfer cmd=0x00
umass0: CBW 44: cmdlen=6 (0x00000000000000000000), data = 0 bytes, dir = out
umass0: start xfer buffer=0xc0c14a68 buflen=31 flags=0x0 timeout=15000
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc0bdb400, NORMAL_COMPLETION
umass0: no data phase
umass0: start xfer buffer=0xc0c14a87 buflen=13 flags=0x0 timeout=15000
umass0: Handling BBB state 4 (BBB CSW, 1st attempt), xfer=0xc0b83c00, NORMAL_COMPLETION
umass0: CSW 44: sig = 0x53425355 (valid), tag = 44, res = 0, status = 0x00 (good)
umass_scsipi_cb: at 1063346372.292260, delta=92224: xs=0xc0c13000 residue=0 status=0
umass_scsipi_cb: at 1063346372.292260: return xs->error=0, xs->xs_status=0x0 xs->resid=0
umass0: umass_scsi_cmd: at 1063346372.332136: 1:0 xs=0xc0c13000 cmd=0x12 datalen=74 (quirks=0x8000, poll=0)
umass_scsi_cmd: async dir=1, cmdlen=6 datalen=74
umass0: umass_bbb_transfer cmd=0x12
umass0: CBW 45: cmdlen=6 (0x120000004a0000000000), data = 74 bytes, dir = in
umass0: start xfer buffer=0xc0c14a68 buflen=31 flags=0x0 timeout=15000
umass0: Handling BBB state 1 (BBB CBW), xfer=0xc0bdb400, NORMAL_COMPLETION
umass0: start xfer buffer=0xcfbe0000 buflen=74 flags=0x5 timeout=15000
umass0: Handling BBB state 2 (BBB Data), xfer=0xc0bfbe00, IOERROR
umass0: BBB_DATA actlen=0
umass0: Data-in 74 failed, IOERROR
umass0: Bulk Reset
umass0: Handling BBB state 7 (BBB Reset), xfer=0xc0bfb100, IOERROR
umass0: BBB reset failed, IOERROR
umass0: Clear endpoint 0x81 stall
umass0: Handling BBB state 8 (BBB bulk-in clear stall), xfer=0xc0bfb600, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: Clear endpoint 0x02 stall
umass0: Handling BBB state 9 (BBB bulk-out clear stall), xfer=0xc0b5d900, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass_scsipi_cb: at 1063346372.447832, delta=115696: xs=0xc0c13000 residue=74 status=3
umass_scsipi_cb: at 1063346372.447832: return xs->error=8, xs->xs_status=0x0 xs->resid=74


-mochid