Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2014 18:59:53 +0100
From:      Hans Petter Selasky <hps@bitfrost.no>
To:        scsi@freebsd.org
Subject:   Fwd: usb/185747: Patcf that fix support for USB key "Kingston DT 101 G2"
Message-ID:  <52D42999.20101@bitfrost.no>
In-Reply-To: <201401131501.s0DF1jln066335@oldred.freebsd.org>
References:  <201401131501.s0DF1jln066335@oldred.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------050906090309080403080607
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit




-------- Original Message --------
Subject: usb/185747: Patcf that fix support for USB key "Kingston DT 101 G2"
Resent-Date: Mon, 13 Jan 2014 15:10:01 GMT
Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer)
Resent-To: freebsd-usb@FreeBSD.org
Date: Mon, 13 Jan 2014 15:01:45 GMT
From: Olivier Cochard <olivier@cochard.me>
To: freebsd-gnats-submit@FreeBSD.org


>Number:         185747
>Category:       usb
>Synopsis:       Patcf that fix support for USB key "Kingston DT 101 G2"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-usb
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 13 15:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Olivier Cochard
>Release:        10.0-RC5
>Organization:
>Environment:
>Description:
FreeBSD 10.0 didn't support anymore Kingston DT 101 G2 (I belevied that 
9.1 supported it, but didn't have 9.1 for checking).
>How-To-Repeat:
Error message when USB key inserted:

ugen2.5: <Kingston> at usbus2
umass0: <Kingston DT 101 G2, class 0/0, rev 2.00/1.00, addr 5> on usbus2
umass0:  SCSI over Bulk-Only; quirks = 0x0100
umass0:6:0:-1: Attached to scbus6
da0 at umass-sim0 bus 0 scbus6 target 0 lun 0
da0: <Kingston DT 101 G2 1.00> Removable Direct Access SCSI-2 device
da0: Serial Number 0013729B6F4BC0B0B562C5A3
da0: 40.000MB/s transfers
da0: 1910MB (3913664 512 byte sectors: 255H 63S/T 243C)
da0: quirks=0x2<NO_6_BYTE>
(da0:umass-sim0:0:0:0): got CAM status 0x50
(da0:umass-sim0:0:0:0): fatal error, failed to attach to device
da0 at umass-sim0 bus 0 scbus6 target 0 lun 0
da0: <Kingston DT 101 G2 1.00> s/n 0013729B6F4BC0B0B562C5A3 detached
(da0:umass-sim0:0:0:0): Periph destroyed

>Fix:
Apply the patch attached.
Note: I've try with "DA_Q_NO_SYNC_CACHE" only first but it didn't work, 
then I've try with "DA_Q_NO_PREVENT" in place, but it still didn't work. 
At last I've used both "DA_Q_NO_SYNC_CACHE|DA_Q_NO_PREVENT" (without 
idea of what I'm doing, I've just read the other quirks)… and It's 
worked :-)

Patch attached with submission follows:

Index: sys/cam/scsi/scsi_da.c
===================================================================
--- sys/cam/scsi/scsi_da.c	(révision 259389)
+++ sys/cam/scsi/scsi_da.c	(copie de travail)
@@ -508,6 +508,14 @@
  	},
  	{
  		/*
+		 * Kingston DataTraveler 2.0 USB Flash memory.
+		 * PR: moi meme
+		 */
+		{T_DIRECT, SIP_MEDIA_REMOVABLE, "Kingston", "DT 101 G2",
+		"*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE|DA_Q_NO_PREVENT
+		},
+	{
+		/*
  		 * Creative MUVO Slim mp3 player (USB)
  		 * PR: usb/86131
  		 */


>Release-Note:
>Audit-Trail:
>Unformatted:




--------------050906090309080403080607
Content-Type: text/plain; charset=us-ascii;
 name="Attached Message Part"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="Attached Message Part"

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZnJlZWJz
ZC11c2JAZnJlZWJzZC5vcmcgbWFpbGluZyBsaXN0Cmh0dHA6Ly9saXN0cy5mcmVlYnNkLm9y
Zy9tYWlsbWFuL2xpc3RpbmZvL2ZyZWVic2QtdXNiClRvIHVuc3Vic2NyaWJlLCBzZW5kIGFu
eSBtYWlsIHRvICJmcmVlYnNkLXVzYi11bnN1YnNjcmliZUBmcmVlYnNkLm9yZyIK
--------------050906090309080403080607--



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