From owner-freebsd-current@FreeBSD.ORG Mon Oct 31 07:57:02 2011 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 93D58106564A; Mon, 31 Oct 2011 07:57:02 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 7B54F8FC12; Mon, 31 Oct 2011 07:57:01 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 199399039; Mon, 31 Oct 2011 08:56:58 +0100 From: Hans Petter Selasky To: Pawel Jakub Dawidek Date: Mon, 31 Oct 2011 08:53:57 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <20111027170738.GB1667@garage.freebsd.pl> <201110280911.43003.hselasky@c2i.net> <20111028190947.GA1713@garage.freebsd.pl> In-Reply-To: <20111028190947.GA1713@garage.freebsd.pl> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201110310853.57877.hselasky@c2i.net> Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: umass(4) regression in 9.0-RC1. 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: Mon, 31 Oct 2011 07:57:02 -0000 On Friday 28 October 2011 21:09:47 Pawel Jakub Dawidek wrote: > On Fri, Oct 28, 2011 at 09:11:42AM +0200, Hans Petter Selasky wrote: > > On Thursday 27 October 2011 20:51:15 Pawel Jakub Dawidek wrote: > > > On Thu, Oct 27, 2011 at 08:42:09PM +0200, Hans Petter Selasky wrote: > > > > This is the root HUB. Can you also show the actual device? > > > > > > Sorry, it wasn't connected, here it goes: > > > > > > ugen0.2: at usbus0, cfg=255 md=HOST spd=HIGH > > > (480Mbps) pwr=ON > > > > > > bLength = 0x0012 > > > bDescriptorType = 0x0001 > > > bcdUSB = 0x0200 > > > bDeviceClass = 0x0000 > > > bDeviceSubClass = 0x0000 > > > bDeviceProtocol = 0x0000 > > > bMaxPacketSize0 = 0x0008 > > > idVendor = 0x0bda > > > idProduct = 0x0119 > > > bcdDevice = 0x1981 > > > iManufacturer = 0x0001 > > > iProduct = 0x0002 > > > iSerialNumber = 0x0003 > > > bNumConfigurations = 0x0001 > > > > Hi, > > > > The control request in question is mandatory according to the UMASS > > specification, and I wonder why it times out and all other control > > requests aswell. > > > > Could you try setting the no-synchronize cache quirk instead, and then > > plug your device. > > > > I'm sorry, but this problem needs further investigation before we can > > make a patch. > > It wasn't immediately obvious for me how to set the no-synchronize cache > quirk, but I think I found it: > > # usbconfig add_quirk UQ_MSC_NO_SYNC_CACHE > > And it seems to work: > > umass0: on usbus0 > (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error > (probe0:umass-sim0:0:0:0): SCSI status: Check Condition > (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready > to ready change, medium may have changed) da0 at umass-sim0 bus 0 scbus13 > target 0 lun 0 > da0: Removable Direct Access SCSI-0 device > da0: 40.000MB/s transfers > da0: 30799MB (63076352 512 byte sectors: 255H 63S/T 3926C) Hi Pawel, REALTEK, which is the manufacturer of your device has already been quirked: http://svnweb.freebsd.org/base?view=revision&revision=225777 I think the patch is just MFC'ed yet. --HPS