Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2011 09:12:52 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Gustau =?iso-8859-15?q?P=E9rez?= <gperez@entel.upc.edu>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: Quirk for a USB mass storage device
Message-ID:  <201110280912.52103.hselasky@c2i.net>
In-Reply-To: <4EAA3D37.4060909@entel.upc.edu>
References:  <4EA9127E.80504@entel.upc.edu> <201110272028.40342.hselasky@c2i.net> <4EAA3D37.4060909@entel.upc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 28 October 2011 07:27:19 Gustau P=E9rez wrote:
> Al 27/10/2011 20:28, En/na Hans Petter Selasky ha escrit:
> > On Thursday 27 October 2011 10:12:46 Gustau P=E9rez wrote:
> >>    Hi,
> >>   =20
> >>    I'm running FreeBSD 10.0 r226042 on AMD64 and I'm having problems
> >>=20
> >> with the following device:
> >>         umass0: <Kingston DataTraveler 200, class 0/0, rev 2.00/1.10,
> >>=20
> >> addr 7> on usbus0
> >>=20
> >>         umass0:  SCSI over Bulk-Only; quirks =3D 0x4001
> >>         umass0: Get Max Lun not supported (USB_ERR_TIMEOUT)
> >>         umass0:5:0:-1: Attached to scbus5
> >>   =20
> >>    as you can see, UQ_MSC_NO_GETMAXLUN should be set to use the device.
> >>=20
> >> As it is a 64Gb mass storage I would like  to use it.
> >>=20
> >>    I tried to manually add the quirk and it worked. Later on I tried
> >>=20
> >> with 9.0Beta2/i386 on the same machine and the problem also appeared. =
So
> >> I made a patch (which works on CURRENT, did not try with STABLE) to add
> >> the quirk, which is attached.
> >>=20
> >>    Hans: is it necessary to fill a PR with the patch or would it be
> >>=20
> >> enough with the inline patch?
> >=20
> > Hi Gustau,
> >=20
> > Does this device work at all without this patch?
> >=20
> > I was thinking to auto detect this behaviour instead.
> >=20
> > --HPS
>=20
>    It did not work without the quirk. The corresponding /dev/daX device
> never appeared. After manually setting the quirk I could use it by
> unplugging and re-plugging the device.
>=20
>    I see a few number of devices using this quirk. However many of them
> use other quirks too. So auto detecting this behavior would be good for
> those pseudo-scsi devices having only problems with LUN detection.
>=20
>    Please let me know if you want me to test any patch or you want me to
> check any code.
>=20
>    Gus

Try to set the no synchronize cache quirk instead. Does that solve the prob=
lem=20
aswell?

=2D-HPS



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