usb/110855: ugen: interrupt in msgs are truncated when buffer is full

Markus Henschel m.henschel at bally-wulff.de
Wed Mar 28 15:43:30 UTC 2007


Hans Petter Selasky schrieb:
> On Wednesday 28 March 2007 11:41, Markus Henschel wrote:
>> Hans Petter Selasky schrieb:
>>> The following reply was made to PR usb/110855; it has been noted by
>>> GNATS.
>>>
>> Hi,
>>
> 
> Could you edit /sys/dev/usb/umass.c
> 
> Then lookup:
> 
> usbd_delay_ms(uaa->device, 1000);
> 
> Change it into:
> 
> usbd_delay_ms(uaa->device, 5000);
> 
> Then lookup in the function "umass_attach()":
> 
> sc->sc_last_xfer_index = UMASS_T_BBB_COMMAND;
> 
> and change it into:
> 
> sc->sc_last_xfer_index = UMASS_T_BBB_RESET2;
> 
> Compile a new kernel and see what happens when you plug the stick again.
> 
> --HPS
> 

Hello again,

the 1st stick is working now ("JetFlash Mass Storage Device") but the
other stick that worked fine before ("LG USB DRIVE) has problems being
detected now. The "main" device node /dev/da0 is created but not the
node for the 1st partition /dev/da0s1, even after minutes. But when I
try to mount /dev/da0 directly (which doesn't make sense) the command
fails but suddenly /dev/da0s1 appears and is usable. Should I try to
decrease the delay again? Here is the dmesg output:

> umass0: SCSI over Bulk-Only; quirks = 0x0000
> umass0: Max Lun is 0
> umass0:0:-1:-1:XPT_PATH_INQ:.
> umass0:0:0:-1: Attached to scbus0
> umass0: Attach finished
> scbus0: scanning for umass0:0:0:-1
> umass0:0:-1:-1:XPT_PATH_INQ:.
> umass0:0:0:0:XPT_PATH_INQ:.
> umass0:0:0:0:XPT_PATH_INQ:.
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b cmd/36b data/18b sense
> umass0: CBW 1: cmd = 6b (0x120000002400), data = 36b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 008002021f0000004c47202020202020 buffer=0xc425ee84, buflen=36
> umass0: 0x 55534220445249564520202020202020
> umass0: 0x 322e3030
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 1: sig = 0x53425355 (valid), tag = 1, res = 0, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x12, flags: 0x40, 6b cmd/255b data/18b sense
> umass0: CBW 2: cmd = 6b (0x12018000ff00), data = 255b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 008002021f0000004c47202020202020 buffer=0xc4686e00, buflen=255
> umass0: 0x 55534220445249564520202020202020
> umass0: 0x 322e3030000000000000000000000000 ...
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 2: sig = 0x53425355 (valid), tag = 2, res = 219, status = 0x00 (good)
> umass0:0:0:0:XPT_GET_TRAN_SETTINGS:.
> umass0:0:0:0:XPT_PATH_INQ:.
> umass0:0:0:0:XPT_GET_TRAN_SETTINGS:.
> umass0:0:0:0:XPT_SET_TRAN_SETTINGS:.
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x00, flags: 0xc0, 6b cmd/0b data/32b sense
> umass0: CBW 3: cmd = 6b (0x000000000000), data = 0b, dir = out
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: no data phase
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 3: sig = 0x53425355 (valid), tag = 3, res = 0, status = 0x01 (failed)
> umass0: Command Failed, res = 0
> umass0: Fetching 32b sense data
> umass0: CBW 4: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700006000000000a0000000028000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 4: sig = 0x53425355 (valid), tag = 4, res = 14, status = 0x00 (good)
> umass0:0:0:0:XPT_PATH_INQ:.
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
> umass0: CBW 5: cmd = 10b (0x250000000000...), data = 8b, dir = in
> xpt0: Rescan succeeded
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_STALLED
> umass0: Data-in 8b failed, USBD_STALLED
> umass0: Clear endpoint 0x81 stall
> umass0: Handling BBB state 4 (BBB Data bulk-in/-out clear stall), xfer=0xc4687100, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 5: sig = 0x53425355 (valid), tag = 5, res = 8, status = 0x01 (failed)
> umass0: Command Failed, res = 8
> umass0: Fetching 32b sense data
> umass0: CBW 6: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700006000000000a0000000028000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 6: sig = 0x53425355 (valid), tag = 6, res = 14, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
> umass0: CBW 7: cmd = 10b (0x250000000000...), data = 8b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_STALLED
> umass0: Data-in 8b failed, USBD_STALLED
> umass0: Clear endpoint 0x81 stall
> umass0: Handling BBB state 4 (BBB Data bulk-in/-out clear stall), xfer=0xc4687100, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 7: sig = 0x53425355 (valid), tag = 7, res = 8, status = 0x01 (failed)
> umass0: Command Failed, res = 8
> umass0: Fetching 32b sense data
> umass0: CBW 8: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700006000000000a0000000028000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 8: sig = 0x53425355 (valid), tag = 8, res = 14, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
> umass0: CBW 9: cmd = 10b (0x250000000000...), data = 8b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_STALLED
> umass0: Data-in 8b failed, USBD_STALLED
> umass0: Clear endpoint 0x81 stall
> umass0: Handling BBB state 4 (BBB Data bulk-in/-out clear stall), xfer=0xc4687100, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 9: sig = 0x53425355 (valid), tag = 9, res = 8, status = 0x01 (failed)
> umass0: Command Failed, res = 8
> umass0: Fetching 32b sense data
> umass0: CBW 10: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700006000000000a0000000028000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 10: sig = 0x53425355 (valid), tag = 10, res = 14, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
> umass0: CBW 11: cmd = 10b (0x250000000000...), data = 8b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_STALLED
> umass0: Data-in 8b failed, USBD_STALLED
> umass0: Clear endpoint 0x81 stall
> umass0: Handling BBB state 4 (BBB Data bulk-in/-out clear stall), xfer=0xc4687100, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 11: sig = 0x53425355 (valid), tag = 11, res = 8, status = 0x01 (failed)
> umass0: Command Failed, res = 8
> umass0: Fetching 32b sense data
> umass0: CBW 12: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700006000000000a0000000028000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 12: sig = 0x53425355 (valid), tag = 12, res = 14, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
> umass0: CBW 13: cmd = 10b (0x250000000000...), data = 8b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_STALLED
> umass0: Data-in 8b failed, USBD_STALLED
> umass0: Clear endpoint 0x81 stall
> umass0: Handling BBB state 4 (BBB Data bulk-in/-out clear stall), xfer=0xc4687100, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 13: sig = 0x53425355 (valid), tag = 13, res = 8, status = 0x01 (failed)
> umass0: Command Failed, res = 8
> umass0: Fetching 32b sense data
> umass0: CBW 14: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700006000000000a0000000028000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 14: sig = 0x53425355 (valid), tag = 14, res = 14, status = 0x00 (good)
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0: <LG USB DRIVE 2.00> Removable Direct Access SCSI-2 device 
> umass0:0:0:0:XPT_GET_TRAN_SETTINGS:.
> umass0:0:0:0:XPT_PATH_INQ:.
> da0: 40.000MB/s transfers
> da0: Attempt to query device size failed: UNIT ATTENTION, Not ready to ready change,
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
> umass0: CBW 15: cmd = 10b (0x250000000000...), data = 8b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_STALLED
> umass0: Data-in 8b failed, USBD_STALLED
> umass0: Clear endpoint 0x81 stall
> umass0: Handling BBB state 4 (BBB Data bulk-in/-out clear stall), xfer=0xc4687100, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 15: sig = 0x53425355 (valid), tag = 15, res = 8, status = 0x01 (failed)
> umass0: Command Failed, res = 8
> umass0: Fetching 32b sense data
> umass0: CBW 16: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700006000000000a0000000028000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 16: sig = 0x53425355 (valid), tag = 16, res = 14, status = 0x00 (good)
> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
> umass0: CBW 17: cmd = 10b (0x250000000000...), data = 8b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_STALLED
> umass0: Data-in 8b failed, USBD_STALLED
> umass0: Clear endpoint 0x81 stall
> umass0: Handling BBB state 4 (BBB Data bulk-in/-out clear stall), xfer=0xc4687100, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 17: sig = 0x53425355 (valid), tag = 17, res = 8, status = 0x01 (failed)
> umass0: Command Failed, res = 8
> umass0: Fetching 32b sense data
> umass0: CBW 18: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700006000000000a0000000028000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 18: sig = 0x53425355 (valid), tag = 18, res = 14, status = 0x00 (good)
> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
> umass0: CBW 19: cmd = 10b (0x250000000000...), data = 8b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_STALLED
> umass0: Data-in 8b failed, USBD_STALLED
> umass0: Clear endpoint 0x81 stall
> umass0: Handling BBB state 4 (BBB Data bulk-in/-out clear stall), xfer=0xc4687100, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 19: sig = 0x53425355 (valid), tag = 19, res = 8, status = 0x01 (failed)
> umass0: Command Failed, res = 8
> umass0: Fetching 32b sense data
> umass0: CBW 20: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700006000000000a0000000028000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 20: sig = 0x53425355 (valid), tag = 20, res = 14, status = 0x00 (good)
> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
> umass0: CBW 21: cmd = 10b (0x250000000000...), data = 8b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_STALLED
> umass0: Data-in 8b failed, USBD_STALLED
> umass0: Clear endpoint 0x81 stall
> umass0: Handling BBB state 4 (BBB Data bulk-in/-out clear stall), xfer=0xc4687100, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 21: sig = 0x53425355 (valid), tag = 21, res = 8, status = 0x01 (failed)
> umass0: Command Failed, res = 8
> umass0: Fetching 32b sense data
> umass0: CBW 22: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700006000000000a0000000028000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 22: sig = 0x53425355 (valid), tag = 22, res = 14, status = 0x00 (good)
> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
> umass0: CBW 23: cmd = 10b (0x250000000000...), data = 8b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_STALLED
> umass0: Data-in 8b failed, USBD_STALLED
> umass0: Clear endpoint 0x81 stall
> umass0: Handling BBB state 4 (BBB Data bulk-in/-out clear stall), xfer=0xc4687100, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 23: sig = 0x53425355 (valid), tag = 23, res = 8, status = 0x01 (failed)
> umass0: Command Failed, res = 8
> umass0: Fetching 32b sense data
> umass0: CBW 24: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700006000000000a0000000028000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 24: sig = 0x53425355 (valid), tag = 24, res = 14, status = 0x00 (good)
> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 
> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
> (da0:umass-sim0:0:0:0): Retries Exhausted
> Opened disk da0 -> 6
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
> umass0: CBW 25: cmd = 10b (0x250000000000...), data = 8b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 001f3fff00000200 buffer=0xc3cdfa50, buflen=8
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 25: sig = 0x53425355 (valid), tag = 25, res = 0, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x1e, flags: 0xc0, 6b cmd/0b data/32b sense
> umass0: CBW 26: cmd = 6b (0x1e0000000100), data = 0b, dir = out
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: no data phase
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 26: sig = 0x53425355 (valid), tag = 26, res = 0, status = 0x01 (failed)
> umass0: Command Failed, res = 0
> umass0: Fetching 32b sense data
> umass0: CBW 27: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700005000000000a0000000024000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 27: sig = 0x53425355 (valid), tag = 27, res = 14, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x28, flags: 0x40, 10b cmd/512b data/32b sense
> umass0: CBW 28: cmd = 10b (0x280000000001...), data = 512b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 00000000000000000000000000000000 buffer=0xc446ac00, buflen=512
> umass0: 0x 00000000000000000000000000000000
> umass0: 0x 00000000000000000000000000000000 ...
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 28: sig = 0x53425355 (valid), tag = 28, res = 0, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x28, flags: 0x40, 10b cmd/512b data/32b sense
> umass0: CBW 29: cmd = 10b (0x280000000000...), data = 512b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x fa33c08ed0bc007c8bf45007501ffbfc buffer=0xc446a400, buflen=512
> umass0: 0x bf0006b90001f2a5ea1d060000bebe07
> umass0: 0x b304803c80740e803c00751c83c610fe ...
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 29: sig = 0x53425355 (valid), tag = 29, res = 0, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x35, flags: 0xc0, 10b cmd/0b data/32b sense
> umass0: CBW 30: cmd = 10b (0x350000000000...), data = 0b, dir = out
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: no data phase
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 30: sig = 0x53425355 (valid), tag = 30, res = 0, status = 0x01 (failed)
> umass0: Command Failed, res = 0
> umass0: Fetching 32b sense data
> umass0: CBW 31: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700005000000000a0000000020000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 31: sig = 0x53425355 (valid), tag = 31, res = 14, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x1e, flags: 0xc0, 6b cmd/0b data/32b sense
> umass0: CBW 32: cmd = 6b (0x1e0000000000), data = 0b, dir = out
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: no data phase
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 32: sig = 0x53425355 (valid), tag = 32, res = 0, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense
> umass0: CBW 33: cmd = 10b (0x250000000000...), data = 8b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 001f3fff00000200 buffer=0xc3cdf7a0, buflen=8
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 33: sig = 0x53425355 (valid), tag = 33, res = 0, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x1e, flags: 0xc0, 6b cmd/0b data/32b sense
> umass0: CBW 34: cmd = 6b (0x1e0000000100), data = 0b, dir = out
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: no data phase
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 34: sig = 0x53425355 (valid), tag = 34, res = 0, status = 0x01 (failed)
> umass0: Command Failed, res = 0
> umass0: Fetching 32b sense data
> umass0: CBW 35: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700005000000000a0000000024000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 35: sig = 0x53425355 (valid), tag = 35, res = 14, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x28, flags: 0x40, 10b cmd/1024b data/32b sense
> umass0: CBW 36: cmd = 10b (0x280000000000...), data = 1024b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x fa33c08ed0bc007c8bf45007501ffbfc buffer=0xc3be7800, buflen=1024
> umass0: 0x bf0006b90001f2a5ea1d060000bebe07
> umass0: 0x b304803c80740e803c00751c83c610fe ...
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 36: sig = 0x53425355 (valid), tag = 36, res = 0, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x35, flags: 0xc0, 10b cmd/0b data/32b sense
> umass0: CBW 37: cmd = 10b (0x350000000000...), data = 0b, dir = out
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: no data phase
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 37: sig = 0x53425355 (valid), tag = 37, res = 0, status = 0x01 (failed)
> umass0: Command Failed, res = 0
> umass0: Fetching 32b sense data
> umass0: CBW 38: cmd = 6b (0x030000002000), data = 32b, dir = in
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: Handling BBB state 3 (BBB Data), xfer=0xc4687e00, USBD_NORMAL_COMPLETION
> umass0: 0x 700005000000000a0000000020000000 buffer=0xc3cbe870, buflen=32
> umass0: 0x 00000000000000000000000000000000
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 38: sig = 0x53425355 (valid), tag = 38, res = 14, status = 0x00 (good)
> umass0:0:0:0:XPT_SCSI_IO: cmd: 0x1e, flags: 0xc0, 6b cmd/0b data/32b sense
> umass0: CBW 39: cmd = 6b (0x1e0000000000), data = 0b, dir = out
> umass0: Handling BBB state 2 (BBB CBW), xfer=0xc4688500, USBD_NORMAL_COMPLETION
> umass0: no data phase
> umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xc4687c00, USBD_NORMAL_COMPLETION
> umass0: CSW 39: sig = 0x53425355 (valid), tag = 39, res = 0, status = 0x00 (good)


-- 
Regards,



Markus Henschel
Development

BALLY WULFF Automaten GmbH
Maybachufer 48-51
12045 Berlin
Phone:  +49(30)62002 161
FAX:    +49(30)62002 230
http://www.ballywulff.de


More information about the freebsd-usb mailing list