Subject: Re: disk errors with UMASS
To: David Carrel <carrel@redback.com>
From: None <brett.mccoy@pobox.com>
List: current-users
Date: 05/22/2001 20:31:28
Bug kern/12501 addresses this. I had a fix for it, which is listed in the
bug report, which worked prior to the big scsipi changes. It doesn't work
as is now and I haven't had a chance to make it work again. In any case,
it's not a clean fix, but it did make it work.
The problem is that the CameraMate doesn't understand
ATAPI_READ_FORMAT_CAPACITIES, but it does grok READ_CAPACITY, which gives
back the information that ATAPI_READ_FORMAT_CAPACITIES is being used to
gather, and does so in a much simpler manner.
I'll try to reimplement my patch and post it tonight.
++Brett;
On Tue, 22 May 2001, David Carrel wrote:
>I have a Microtech CameraMate which is a USB attached CompactFlash and
>SmartMedia reader. The umass driver does support this, but I am unable to
>read my SmartMedia (I don't have a CompactFlash to try). It seems to
>attach but then gets quite unhappy. Can anyone help me decipher this. I
>would love to get this drive working.
>
>Below are the debugs. Once with no special debugs turned on and once with
>UMASS_DEBUG defined.
>
>Thanks
>
>Dave
>
>----------------------------------------------------------------
>With no DEBUG on
>----------------------------------------------------------------
>uhub1: 4 ports with 4 removable, self powered
>umass0 at uhub1 port 4 configuration 1 interface 0
>umass0: Microtech International, Inc DPCM-USB, rev 1.00/1.00, addr 3
>umass0: using SFF8070i over CBI
>atapibus1 at umass0 channel 0: 2 targets
>sd0 at atapibus1 drive 0: <eUSB, Compact Flash, 1> type 0 direct removable
>sd0(umass0:0:0): Check Condition on CDB: 0x23 00 00 00 00 00 00 00 0c 00
> SENSE KEY: Illegal Request
> ASC/ASCQ: Illegal Field in CDB
>
>sd0: drive offline
>sd0(umass0:0:0): invalid return code from adapter: 3
>findroot: can't open dev sd0a (5)
>sd0(umass0:0:0): invalid return code from adapter: 3
>boot device: wd0
>
>----------------------------------------------------------------
>With UMASS_DEBUG on
>----------------------------------------------------------------
>uhub1: 4 ports with 4 removable, self powered
>umass0 at uhub1 port 4 configuration 1 interface 0
>umass0: Microtech International, Inc DPCM-USB, rev 1.00/1.00, addr 3
>umass0: using SFF8070i over CBI
>atapibus1 at umass0 channel 0: 2 targets
>umass_atapi_probe_device: atapi=0xc05da080 target=0
>umass_atapi_probe_device: doing inquiry
>umass0: umass_scsi_cmd: at 1.654059: 0:0 xs=0xc05d1000 cmd=0x12 datalen=74 (quirks=0x0, poll=0)
>umass_scsi_cmd: async dir=1, cmdlen=12 datalen=74
>umass0: umass_cbi_transfer cmd=0x12, len=74
>umass0: Handling CBI state 10 (CBI Command), xfer=0xc05a2500, NORMAL_COMPLETION
>umass0: start xfer buffer=0xd7f70400 buflen=74 flags=0x5 timeout=10201
>umass0: Handling CBI state 11 (CBI Data), xfer=0xc05a2400, NORMAL_COMPLETION
>umass0: CBI_DATA actlen=36
>umass0: 0x 00800202000000006555534220202020 buffer=0xd7f70400, buflen=36
>umass0: 0x 436f6d7061637420466c617368202020
>umass0: 0x 00310000
>umass_scsipi_cb: at 1.663613, delta=9554: xs=0xc05d1000 residue=38 status=1
>umass0: umass_cbi_transfer cmd=0x03, len=32
>umass0: Handling CBI state 10 (CBI Command), xfer=0xc05a2500, NORMAL_COMPLETION
>umass0: start xfer buffer=0xc05d1060 buflen=32 flags=0x5 timeout=10201
>umass0: Handling CBI state 11 (CBI Data), xfer=0xc05a2400, NORMAL_COMPLETION
>umass0: CBI_DATA actlen=32
>umass0: 0x 700000000000000a0000000000000000 buffer=0xc05d1060, buflen=32
>umass0: 0x 00000000000000000000000000000000
>umass_scsipi_sense_cb: xs=0xc05d1000 residue=0 status=1
>umass_scsipi_sense_cb: return xs->error=0, xs->xs_status=0x1 xs->resid=38
>umass_atapi_probedev: doing atapi_probedev on 'eUSB' 'Compact Flash' '1'
>sd0 at atapibus1 drive 0: <eUSB, Compact Flash, 1> type 0 direct removable
>umass0: umass_scsi_cmd: at 1.671908: 0:0 xs=0xc05d1000 cmd=0x1b datalen=0 (quirks=0x0, poll=0)
>umass_scsi_cmd: async dir=0, cmdlen=12 datalen=0
>umass0: umass_cbi_transfer cmd=0x1b, len=0
>umass0: Handling CBI state 10 (CBI Command), xfer=0xc05a2500, NORMAL_COMPLETION
>umass0: no data phase
>umass_scsipi_cb: at 1.675890, delta=3982: xs=0xc05d1000 residue=0 status=1
>umass0: umass_cbi_transfer cmd=0x03, len=32
>umass0: Handling CBI state 10 (CBI Command), xfer=0xc05a2500, NORMAL_COMPLETION
>umass0: start xfer buffer=0xc05d1060 buflen=32 flags=0x5 timeout=10201
>umass0: Handling CBI state 11 (CBI Data), xfer=0xc05a2400, NORMAL_COMPLETION
>umass0: CBI_DATA actlen=32
>umass0: 0x 700000000000000a0000000000000000 buffer=0xc05d1060, buflen=32
>umass0: 0x 00000000000000000000000000000000
>umass_scsipi_sense_cb: xs=0xc05d1000 residue=0 status=1
>umass_scsipi_sense_cb: return xs->error=1, xs->xs_status=0x1 xs->resid=0
>umass0: umass_scsi_cmd: at 1.684202: 0:0 xs=0xc05d1000 cmd=0x23 datalen=12 (quirks=0x0, poll=0)
>umass_scsi_cmd: async dir=1, cmdlen=12 datalen=12
>umass0: umass_cbi_transfer cmd=0x23, len=12
>umass0: Handling CBI state 10 (CBI Command), xfer=0xc05a2500, NORMAL_COMPLETION
>umass0: start xfer buffer=0xd7f702ac buflen=12 flags=0x5 timeout=10201
>umass0: Handling CBI state 11 (CBI Data), xfer=0xc05a2400, STALLED
>umass0: CBI_DATA actlen=0
>umass0: Data-in 12b failed, STALLED
>umass0: Clear endpoint 0x82 stall
>umass0: Handling CBI state 13 (CBI Data bulk-in/-out clear stall), xfer=0xc05a2200, NORMAL_COMPLETION
>umass_scsipi_cb: at 1.692866, delta=8664: xs=0xc05d1000 residue=12 status=2
>umass0: umass_cbi_transfer cmd=0x03, len=32
>umass0: Handling CBI state 10 (CBI Command), xfer=0xc05a2500, NORMAL_COMPLETION
>umass0: start xfer buffer=0xc05d1060 buflen=32 flags=0x5 timeout=10201
>umass0: Handling CBI state 11 (CBI Data), xfer=0xc05a2400, NORMAL_COMPLETION
>umass0: CBI_DATA actlen=32
>umass0: 0x 700005000000000a0000000024000000 buffer=0xc05d1060, buflen=32
>umass0: 0x 00000000000000000000000000000000
>umass_scsipi_sense_cb: xs=0xc05d1000 residue=0 status=1
>umass_scsipi_sense_cb: return xs->error=1, xs->xs_status=0x1 xs->resid=12
>sd0(umass0:0:0): Check Condition on CDB: 0x23 0
>0 00 00 00 00 00 00 0c 00
> SENSE KEY: Illegal Request
> ASC/ASCQ: Illegal Field in CDB
>
>sd0: drive offline
>umass_atapi_probe_device: atapi=0xc05da080 target=1
>umass0: Attach finished
>umass0: umass_scsi_cmd: at 1.720815: 0:0 xs=0xc05d1000 cmd=0x00 datalen=0 (quirks=0x0, poll=0)
>umass_scsi_cmd: async dir=0, cmdlen=12 datalen=0
>umass0: umass_cbi_transfer cmd=0x00, len=0
>umass0: Handling CBI state 10 (CBI Command), xfer=0xc05a2500, STALLED
>umass0: Command Transport failed
>umass_scsipi_cb: at 1.724878, delta=4063: xs=0xc05d1000 residue=0 status=2
>umass0: umass_cbi_transfer cmd=0x03, len=32
>umass0: Handling CBI state 10 (CBI Command), xfer=0xc05a2500, STALLED
>umass0: Command Transport failed
>umass_scsipi_sense_cb: xs=0xc05d1000 residue=32 status=2
>umass0: Autosense failed, status 2
>umass_scsipi_sense_cb: return xs->error=3, xs->xs_status=0x1 xs->resid=0
>sd0(umass0:0:0): invalid return code from adapter: 3
>findroot: can't open dev sd0a (5)
>umass0: umass_scsi_cmd: at 1.752483: 0:0 xs=0xc05d1000 cmd=0x00 datalen=0 (quirks=0x0, poll=0)
>umass_scsi_cmd: async dir=0, cmdlen=12 datalen=0
>umass0: umass_cbi_transfer cmd=0x00, len=0
>umass0: Handling CBI state 10 (CBI Command), xfer=0xc05a2500, NORMAL_COMPLETION
>umass0: no data phase
>umass_scsipi_cb: at 1.754872, delta=2389: xs=0xc05d1000 residue=0 status=1
>umass0: umass_cbi_transfer cmd=0x03, len=32
>umass0: Handling CBI state 10 (CBI Command), xfer=0xc05a2500, STALLED
>umass0: Command Transport failed
>umass_scsipi_sense_cb: xs=0xc05d1000 residue=32 status=2
>umass0: Autosense failed, status 2
>umass_scsipi_sense_cb: return xs->error=3, xs->xs_status=0x1 xs->resid=0
>sd0(umass0:0:0): invalid return code from adapter: 3
>boot device: wd0
>
>
>