Date: Thu, 28 Jun 2012 00:14:43 +0300 From: Alexander Motin <mav@FreeBSD.org> To: Hans Petter Selasky <hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: [usb] Kingston 8Gb is not usable Message-ID: <4FEB77C3.2040803@FreeBSD.org> In-Reply-To: <201206272208.05877.hselasky@c2i.net> References: <4FE9AB28.3070704@passap.ru> <201206271826.33128.hselasky@c2i.net> <4FEB4813.6030007@FreeBSD.org> <201206272208.05877.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 27.06.2012 23:08, Hans Petter Selasky wrote: > On Wednesday 27 June 2012 19:51:15 Alexander Motin wrote: >> On 06/27/12 19:26, Hans Petter Selasky wrote: >>> On Wednesday 27 June 2012 18:15:24 Hans Petter Selasky wrote: >>>> ERR=STALLED >>> >>> Retrying might not work, until sense is cleared, due to stalled error. >>> >>> MAV: Maybe that failed prevent-allow medium removal left a sense error >>> that needs to be cleared. >> >> It should be cleared by fetching sense command. As I was assured by >> several people, it is SIM (controller driver, umass) obligation to fetch >> sense and respectively clear it when error detected. But not sure what >> should umass do if this device STALLs. May be should try to do it also. >> So far I haven't see any properly fetched sense from it in provided logs. > > Are you sure? And where should the sense output be sent? Sense output should be (and are now for working devices) sent within reply on the original command returning with the CHECK CONDITION SCSI status. In addition to general status fields there are space for sense data in struct scsiio: sense_data, sense_len and sense_resid fields. -- Alexander Motin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FEB77C3.2040803>