Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2011 21:09:47 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-current@freebsd.org, freebsd-usb@freebsd.org
Subject:   Re: umass(4) regression in 9.0-RC1.
Message-ID:  <20111028190947.GA1713@garage.freebsd.pl>
In-Reply-To: <201110280911.43003.hselasky@c2i.net>
References:  <20111027170738.GB1667@garage.freebsd.pl> <201110272042.09238.hselasky@c2i.net> <20111027185115.GD1667@garage.freebsd.pl> <201110280911.43003.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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: <USB2.0-CRW Generic> 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  <retrieving string failed>
> >   iProduct =3D 0x0002  <retrieving string failed>
> >   iSerialNumber =3D 0x0003  <retrieving string failed>
> >   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: <Generic USB2.0-CRW, class 0/0, rev 2.00/19.81, addr 2> 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: <Generic- SD/MMC 1.00> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111028190947.GA1713>