From owner-freebsd-usb@FreeBSD.ORG Wed Jun 27 16:15:40 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 67F9A10656F3; Wed, 27 Jun 2012 16:15:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.c2i.net [212.247.154.66]) by mx1.freebsd.org (Postfix) with ESMTP id BF5A68FC1C; Wed, 27 Jun 2012 16:15:39 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 124536659; Wed, 27 Jun 2012 18:15:38 +0200 From: Hans Petter Selasky To: Boris Samorodov Date: Wed, 27 Jun 2012 18:15:24 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: <4FE9AB28.3070704@passap.ru> <201206271736.46305.hselasky@c2i.net> <4FEB2DC1.3030303@passap.ru> In-Reply-To: <4FEB2DC1.3030303@passap.ru> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@ =?utf-8?q?d2+AyewRX=7DmAm=3BYp=0A=09=7CU=5B?=@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y> =?utf-8?q?Y=7Dk1C4TfysrsUI=0A=09-=25GU9V5=5DiUZF=26nRn9mJ=27=3F=26?=>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201206271815.24726.hselasky@c2i.net> Cc: Alexander Motin , freebsd-usb@freebsd.org Subject: Re: [usb] Kingston 8Gb is not usable X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2012 16:15:40 -0000 On Wednesday 27 June 2012 17:58:57 Boris Samorodov wrote: > 27.06.2012 19:36, Hans Petter Selasky =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > Then you need to check using "usbdump -i usbusX -s 65536 -vvvv" what is > > actually going on there. >=20 > I'm using the unpatched kernel (i.e. stock r237572). There is no > /dev/ad*. I use "usbconfig -d 7.5 reset" and here is the log for > the quoted command (attached). Hi, A quick analysis. Read CAPACITY (0x0a 0x25 ....): 19:44:42.626128 usbus7.5 SUBM-BULK-EP=3D00000002,SPD=3DHIGH,NFR=3D1,SLEN=3D= 32,IVAL=3D0 frame[0] WRITE 31 bytes 0000 55 53 42 43 04 00 00 00 08 00 00 00 80 00 0A 25 |USBC...........%| 0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -- |............... | Returns 8-bytes: 19:44:42.626359 usbus7.5 DONE-BULK- EP=3D00000081,SPD=3DHIGH,NFR=3D1,SLEN=3D8,IVAL=3D0,ERR=3D0 frame[0] READ 8 bytes 0000 00 EE 97 4F 00 00 02 00 -- -- -- -- -- -- -- -- |...O.... | Then suddenly read CAPACITY: 19:44:42.630014 usbus7.5 SUBM-BULK-EP=3D00000002,SPD=3DHIGH,NFR=3D1,SLEN=3D= 32,IVAL=3D0 frame[0] WRITE 31 bytes 0000 55 53 42 43 0E 00 00 00 08 00 00 00 80 00 0A 25 |USBC...........%| 0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -- |............... | Returns zero-bytes. That is a memstick bug! Probably CAM layer could retry = one=20 more time in that case?? 19:44:42.630231 usbus7.5 DONE-BULK- EP=3D00000081,SPD=3DHIGH,NFR=3D1,SLEN=3D0,IVAL=3D0,ERR=3DSTALLED frame[0] READ 0 bytes =2D-HPS