Re: USB Flash drive problem with 9.0

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Fri, 30 Mar 2012 21:18:13 +0300
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_at_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
Received on Fri Mar 30 2012 - 16:18:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:25 UTC