Date: Wed, 27 Jun 2012 12:01:35 +0300 From: Alexander Motin <mav@FreeBSD.org> To: Boris Samorodov <bsam@passap.ru> Cc: freebsd-usb@freebsd.org Subject: Re: [usb] Kingston 8Gb is not usable Message-ID: <4FEACBEF.1060406@FreeBSD.org> In-Reply-To: <4FEAC813.8060302@FreeBSD.org> References: <4FE9AB28.3070704@passap.ru> <201206261741.14338.hselasky@c2i.net> <4FE9E0F6.8040503@FreeBSD.org> <4FEABF3D.2010206@passap.ru> <4FEAC813.8060302@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06/27/12 11:45, Alexander Motin wrote: > On 06/27/12 11:07, Boris Samorodov wrote: >> 26.06.2012 20:19, Alexander Motin пишет: >> >>> I see no problems in this output. I would enable more debugging with >>> `camcontrol debug -IPp all` before plugging it in to see what's going >>> on. >> >> Here it is: >> ----- >> sudo: bsam : TTY=pts/5 ; PWD=/home/bsam ; USER=root ; >> COMMAND=/sbin/camcontrol debug -IPp all >> kernel: (xpt0:xpt0:0:-1:-1): debugging flags now 61 >> kernel: ugen7.2: <Kingston> at usbus7 >> kernel: umass0: <Kingston DT101 II, class 0/0, rev 2.00/1.00, addr 2> on >> usbus7 >> kernel: umass0: SCSI over Bulk-Only; quirks = 0x0100 >> kernel: (noperiph:umass-sim0:0:-1:-1): xpt_async(AC_PATH_REGISTERED) >> kernel: umass0:11:0:-1: Attached to scbus11 >> kernel: (probe0:umass-sim0:0:0:0): Periph created >> kernel: (probe0:umass-sim0:0:0:0): Probe started >> kernel: (probe0:umass-sim0:0:0:0): Probe PROBE_INVALID to PROBE_INQUIRY >> kernel: (probe0:umass-sim0:0:0:0): Probe PROBE_INQUIRY to >> PROBE_SUPPORTED_VPD_LIST >> kernel: (probe0:umass-sim0:0:0:0): Probe PROBE_SUPPORTED_VPD_LIST to >> PROBE_DEVICE_ID >> kernel: (probe0:umass-sim0:0:0:0): Probe PROBE_DEVICE_ID to >> PROBE_SERIAL_NUM >> kernel: (probe0:umass-sim0:0:0:0): Probe PROBE_SERIAL_NUM to >> PROBE_TUR_FOR_NEGOTIATION >> kernel: (probe0:umass-sim0:0:0:0): xpt_async(AC_FOUND_DEVICE) >> kernel: (pass4:umass-sim0:0:0:0): Periph created >> kernel: (da0:umass-sim0:0:0:0): Periph created >> kernel: (probe0:umass-sim0:0:0:0): Probe PROBE_TUR_FOR_NEGOTIATION to >> PROBE_DONE >> kernel: (probe0:umass-sim0:0:0:0): Probe completed >> kernel: (probe0:umass-sim0:0:0:0): Periph invalidated >> kernel: (probe0:umass-sim0:0:0:0): Periph destroyed >> kernel: da0 at umass-sim0 bus 0 scbus11 target 0 lun 0 >> kernel: da0: <Kingston DT101 II 1.00> Removable Direct Access SCSI-2 >> device >> kernel: da0: 40.000MB/s transfers >> kernel: da0: 7634MB (15636304 512 byte sectors: 255H 63S/T 973C) > > Up to this point everything is fine, but here problems begin. > >> kernel: (da0:umass-sim0:0:0:0): daopen >> kernel: (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 0 >> 0 0 1 0 >> kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error >> kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition >> kernel: (da0:umass-sim0:0:0:0): SCSI sense: No sense data present >> kernel: (da0:umass-sim0:0:0:0): Retrying command (per sense data) >> kernel: (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 0 >> 0 0 1 0 >> kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error >> kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition >> kernel: (da0:umass-sim0:0:0:0): SCSI sense: No sense data present >> kernel: (da0:umass-sim0:0:0:0): Error 5, Retries exhausted >> kernel: (da0:umass-sim0:0:0:0): daclose >> kernel: (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 >> 0 0 0 0 >> kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error >> kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition >> kernel: (da0:umass-sim0:0:0:0): SCSI sense: No sense data present >> kernel: (da0:umass-sim0:0:0:0): Retrying command (per sense data) >> kernel: (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 >> 0 0 0 0 >> kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error >> kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition >> kernel: (da0:umass-sim0:0:0:0): SCSI sense: No sense data present >> kernel: (da0:umass-sim0:0:0:0): Error 5, Retries exhausted >> kernel: (da0:umass-sim0:0:0:0): daopen >> kernel: (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 >> 0 0 >> kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error >> kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition >> kernel: (da0:umass-sim0:0:0:0): SCSI sense: No sense data present >> kernel: (da0:umass-sim0:0:0:0): Retrying command (per sense data) >> kernel: (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 >> 0 0 >> kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error >> kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition >> kernel: (da0:umass-sim0:0:0:0): SCSI sense: No sense data present >> kernel: (da0:umass-sim0:0:0:0): Retrying command (per sense data) >> kernel: (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 >> 0 0 >> kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error >> kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition >> kernel: (da0:umass-sim0:0:0:0): SCSI sense: No sense data present >> kernel: (da0:umass-sim0:0:0:0): Retrying command (per sense data) >> kernel: (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 >> 0 0 >> kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error >> kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition >> kernel: (da0:umass-sim0:0:0:0): SCSI sense: No sense data present >> kernel: (da0:umass-sim0:0:0:0): Retrying command (per sense data) >> kernel: (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 >> 0 0 >> kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error >> kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition >> kernel: (da0:umass-sim0:0:0:0): SCSI sense: No sense data present >> kernel: (da0:umass-sim0:0:0:0): Error 5, Retries exhausted >> kernel: (da0:umass-sim0:0:0:0): got CAM status 0x8c >> kernel: (da0:umass-sim0:0:0:0): fatal error, failed to attach to device >> kernel: (da0:umass-sim0:0:0:0): Periph invalidated >> kernel: (da0:umass-sim0:0:0:0): lost device - 0 outstanding, 4 refs >> kernel: (da0:umass-sim0:0:0:0): removing device entry >> kernel: (da0:umass-sim0:0:0:0): Periph destroyed > > Something is wrong there. I think this should not happen: > kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error > kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition > kernel: (da0:umass-sim0:0:0:0): SCSI sense: No sense data present > > Two questions: 1) what originally caused these errors and 2) why "No > sense data present". I am not sure whether it is device problem or umass > or both. I can't reproduce it with devices I have. Could you also show > your old error messages (preferably verbose) to compare? One more interesting aspect: during probe device properly report its size. On first open it works also, just reporting suspicious errors on PREVENT ALLOW MEDIUM REMOVAL and SYNCHRONIZE CACHE(10). But on second open READ CAPACITY(10) is no longer working. I suspect something happens to the device on first open. -- Alexander Motin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FEACBEF.1060406>