Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2012 21:18:13 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        Kaho Toshikazu <vinwa@elam.kais.kyoto-u.ac.jp>
Cc:        freebsd-current@freebsd.org, day1234@hotmail.com, freebsd-usb@freebsd.org, Andriy Gapon <avg@freebsd.org>, Hans Petter Selasky <hselasky@c2i.net>
Subject:   Re: USB Flash drive problem with 9.0
Message-ID:  <4F75F8E5.9000508@FreeBSD.org>
In-Reply-To: <1782.1332719733@pf2.ed.niigata-u.ac.jp>
References:  <COL112-W354F702F0F2A3DDF718D49B7460@phx.gbl> <201203230825.32954.hselasky@c2i.net> <17628.1332555469@pf2.ed.niigata-u.ac.jp> <4F6D9672.4050201@FreeBSD.org> <2087.1332651759@pf2.ed.niigata-u.ac.jp> <4F6EF03E.6060001@FreeBSD.org> <1782.1332719733@pf2.ed.niigata-u.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/26/12 02:55, Kaho Toshikazu wrote:
>    Hello, Andriy Gapon and ML members,
>
>> Date: Sun, 25 Mar 2012 13:15:26 +0300
>>
>> on 25/03/2012 08:02 Kaho Toshikazu said the following:
>>>    Hello Andriy Gapon,
>>> Thank you for your comment.
>>>
>>>> Message-ID:<4F6D9672.4050201@FreeBSD.org>
>>>> Date: Sat, 24 Mar 2012 11:40:02 +0200
>>>>
>>>> on 24/03/2012 04:17 Kaho Toshikazu said the following:
>>>>>    Hello,
>>>>>
>>>>>    I have a similar problem with Transcend 16GB USB flash. When the flash
>>>>> is plugged, FreeBSD attache it, but reports very big capacity and can
>>>>> not read/write it. UQ_MSC_NO_INQUIRY makes jobs in my machines.
>>>>> 10-current and 8-stable have same problem, and 9-stable is not tested.
>>>>
>>>> Could the problem be related to r229288 (r232943 in stable/9)?
>>>> The dates below match the MFC date 2012-03-13.
>>>
>>>    10-current r233336 with reveting only scsi_da.c changed by
>>> r233288 has same problem. Should I revert whole system ?
>>>
>>
>> Sorry, it seems that I copied wrong revisions into my email.
>> They should have been r232941 for stable/9 and r228846 for head.
>
>    Yes, r228846 for current is related this problem. 10-current reverting
> scsi/scsi_da.c introduced by r228846 detects valid capacity and
> can read/write USB flash. USB flash may be died of "READ CAPACITY(16)".

Could you collect more information about what's exactly happens with the 
device? Can you execute some camcontrol inquiry or camcontrol readcap 
commands after kernel misdetected size with "READ CAPACITY(16)"?

If yes (device is still alive), could you run these commands (with 
proper device name) and send me the output files:
camcontrol cmd da0 -E -v -c "12 00 00 00 80 00" -i 128 - > INQ.res
camcontrol cmd da0 -E -v -c "9e 10 00 00 00 00 00 00 00 00 00 00 00 20 
00 00" -i 32 - > RC16.result

-- 
Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F75F8E5.9000508>