Bug 180837 - [scsi_da] [patch] Kingston DT 101 G2 usb stick quirk (scsi_da quirk)
Summary: [scsi_da] [patch] Kingston DT 101 G2 usb stick quirk (scsi_da quirk)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2013-07-25 13:50 UTC by patfbsd
Modified: 2018-03-02 04:15 UTC (History)
0 users

See Also:


Attachments
file.diff (492 bytes, patch)
2013-07-25 13:50 UTC, patfbsd
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description patfbsd 2013-07-25 13:50:00 UTC
Quirk for USB stick Kingston DT 101 G2 which does not handle SSCI command "PREVENT ALLOW MEDIUM REMOVAL"

dmesg:
ugen1.3: <Kingston> at usbus1
umass0: <Kingston product 0x6544, class 0/0, rev 2.00/1.00, addr 3> on usbus1
umass0:  SCSI over Bulk-Only; quirks = 0x4100
umass0:4:0:-1: Attached to scbus4
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
da0: <Kingston DT 101 G2 1.00> Removable Direct Access SCSI-0 device 
da0: 40.000MB/s transfers
da0: 7639MB (15644912 512 byte sectors: 255H 63S/T 973C)
da0: quirks=0x2<NO_6_BYTE>
(da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 
(da0:umass-sim0:0:0:0): CAM status: Auto-Sense Retrieval Failed
..

# camcontrol inquiry da0 
pass2: <Kingston DT 101 G2 1.00> Removable Direct Access SCSI-0 device 
pass2: Serial Number 001CC0C60D96CBB024222398
pass2: 40.000MB/s transfers

# usbconfig 
ugen0.1: <EHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.1: <EHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.2: <product 0x0024 vendor 0x8087> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.2: <product 0x0024 vendor 0x8087> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.3: <product 0x2f24 vendor 0x03f0> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (2mA)
ugen0.4: <DELL Laser Mouse vendor 0x0461> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
ugen0.5: <Dell QuietKey Keyboard Dell> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
ugen1.3: <DT 101 G2 Kingston> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (200mA)

Fix: This device needs a scsi_da.c quirk DA_Q_NO_PREVENT

Note: According to NetBSD, few other Kingston usb keys needs this quirk, but I don't have the hardware to checks this :

+product KINGSTON DT102_G2 0x1624 DT 102 G2
+product KINGSTON DT101_II 0x1625 DT 101 II
+product KINGSTON DTMINI10 0x162c DT Mini 10
+product KINGSTON DT101_G2 0x1642 DT 101 G2
+product KINGSTON DT100_G2 0x6544 DT 100 G2

see: http://freshbsd.org/commit/netbsd/6920595603b43ca9e73ca9bcc95e63d9201c9ad3



Patch attached with submission follows:
How-To-Repeat: plug the USB stick
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-07-26 03:02:33 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-usb

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:24 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped