From owner-freebsd-usb@FreeBSD.ORG Fri Oct 28 19:10:35 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD0FE106566C; Fri, 28 Oct 2011 19:10:35 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 7CFDF8FC17; Fri, 28 Oct 2011 19:10:35 +0000 (UTC) Received: from localhost (89-73-195-149.dynamic.chello.pl [89.73.195.149]) by mail.dawidek.net (Postfix) with ESMTPSA id CA4DECAE; Fri, 28 Oct 2011 21:10:32 +0200 (CEST) Date: Fri, 28 Oct 2011 21:09:47 +0200 From: Pawel Jakub Dawidek To: Hans Petter Selasky Message-ID: <20111028190947.GA1713@garage.freebsd.pl> References: <20111027170738.GB1667@garage.freebsd.pl> <201110272042.09238.hselasky@c2i.net> <20111027185115.GD1667@garage.freebsd.pl> <201110280911.43003.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <201110280911.43003.hselasky@c2i.net> X-OS: FreeBSD 9.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: umass(4) regression in 9.0-RC1. 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: Fri, 28 Oct 2011 19:10:35 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? > >=20 > > Sorry, it wasn't connected, here it goes: > >=20 > > ugen0.2: at usbus0, cfg=3D255 md=3DHOST spd=3DHIGH= (480Mbps) > > pwr=3DON > >=20 > > bLength =3D 0x0012 > > bDescriptorType =3D 0x0001 > > bcdUSB =3D 0x0200 > > bDeviceClass =3D 0x0000 > > bDeviceSubClass =3D 0x0000 > > bDeviceProtocol =3D 0x0000 > > bMaxPacketSize0 =3D 0x0008 > > idVendor =3D 0x0bda > > idProduct =3D 0x0119 > > bcdDevice =3D 0x1981 > > iManufacturer =3D 0x0001 > > iProduct =3D 0x0002 > > iSerialNumber =3D 0x0003 > > bNumConfigurations =3D 0x0001 >=20 > Hi, >=20 > The control request in question is mandatory according to the UMASS=20 > specification, and I wonder why it times out and all other control reques= ts=20 > aswell. >=20 > Could you try setting the no-synchronize cache quirk instead, and then pl= ug=20 > your device. >=20 > I'm sorry, but this problem needs further investigation before we can mak= e a=20 > 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 t= o 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) --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://yomoli.com --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk6q/fsACgkQForvXbEpPzTlcQCfSjF9ybX8gZI7/YsVrBGVnY2r hDUAn2tf2+lzvlOI4Dh+gFk5h6rgNdP0 =xcWu -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--