From owner-freebsd-current@FreeBSD.ORG Tue Sep 1 06:56:17 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CEB11065670 for ; Tue, 1 Sep 2009 06:56:17 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.tele2.se [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 058038FC1D for ; Tue, 1 Sep 2009 06:56:16 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=qiM62AFXJF0A:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6I5d2MoRAAAA:8 a=G0XHSz-fAAAA:8 a=3B_WLAnUy2AoDVHacLoA:9 a=_lXTQmjGwB7Qw_xK-qzUpRjXLSIA:4 a=G55ziAPEpLgA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe13.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 914365730; Tue, 01 Sep 2009 08:56:14 +0200 From: Hans Petter Selasky To: Tobias Grosser Date: Tue, 1 Sep 2009 08:56:20 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: <1251570251.1238.21.camel@localhost> <11278_1251745674_4A9C1F89_11278_90_1_20090831190735.GF60240@cicely7.cicely.de> <1251761217.1186.9.camel@localhost> In-Reply-To: <1251761217.1186.9.camel@localhost> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200909010856.23045.hselasky@c2i.net> Cc: freebsd-current@freebsd.org, ticso@cicely.de Subject: Re: [PATCH] USB Harddrive not recognized (umass appears, da0 not) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2009 06:56:17 -0000 On Tuesday 01 September 2009 01:26:57 Tobias Grosser wrote: > On Mon, 2009-08-31 at 21:07 +0200, Bernd Walter wrote: > > On Mon, Aug 31, 2009 at 06:59:18PM +0200, Tobias Grosser wrote: > > > On Mon, 2009-08-31 at 11:52 +0200, Bernd Walter wrote: > > > > On Sun, Aug 30, 2009 at 07:09:29PM +0200, Hans Petter Selasky wrote: > > > > > Hi, > > > > > > > > > > I looks like your device is hanging on SCSI command > > > > > 0x12,00,00,00,4a,00 > > > > > > > > 0x12 is an inquiry, which is bad if the device has problems with. > > > > > > I tried Linux on the same computer and the drive worked without any > > > problems. > > > > If those are timestamps then there is a 5 second delay. > > I wouldn't say that this is without problems. > > Maybe Linux just has a different handling of the case. > > > > > --------------------------------------- > > > linux_dmesg.log is attached. > > > --------------------------------------- > > > > > > There was also another report where the drive did not work on FreeBSD. > > > I mailed the user and he did not get it to run on FreeBSD, but his > > > drive also works on Linux. > > > > > > http://lists.freebsd.org/pipermail/freebsd-stable/2006-September/028999 > > >.html > > > > > > As I have two of these drives, I am pretty sure my device is not > > > completely broken, but WD has some uncommon/broken way to interact with > > > FreeBSD. > > > > > > To narrow it down I run the usb.org compliance test utility. > > > > > > http://www.usb.org/developers/tools/ : USB20CV R1.3.5.5 > > > > As Hans Petter said: this is not a USB problem, it is at SCSI. > > > > > The results for the generic device test and for the USB mass storage > > > test are attached. > > > > If this is just are startup problem you won't see anything at all after > > probing is over. > > My assumption would be that the device missbehaves until it spun up. > > But this is just an assumption. > > Thanks to all of you who pointed me in the right direction. It seems the > way inquiries are handled was broken. > I solved the problem by adding a new quirk for the WD MyPassword Series. > > Do you think this is the right approach? May this break anything else? > And finally if everything is alright, can someone commit this patch? > > Thanks > > Tobi Can you try this: + {USB_VENDOR_WESTERN, USB_PRODUCT_WESTERN_MYPASSWORD, RID_WILDCARD, + UMASS_PROTO_DEFAULT, + FORCE_SHORT_INQUIRY + }, --HPS