>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:
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to