Summary: | Kingston DataTraveler G2 memory stick doesn't work | ||
---|---|---|---|
Product: | Base System | Reporter: | gja822 |
Component: | usb | Assignee: | freebsd-usb (Nobody) <usb> |
Status: | New --- | ||
Severity: | Affects Only Me | CC: | pmc, tomek |
Priority: | --- | ||
Version: | 9.3-RELEASE | ||
Hardware: | amd64 | ||
OS: | Any |
Description
gja822
2014-08-04 10:28:50 UTC
Now, on 10.3-STABLE amd64 it kills part of USB subsystem on detaching this Kingston flash stick, leaving working USB mouse, but no chance to use USB flash sticks before reboot. And in /dev/da* it leave the device. 'usbconfig list' command just hangs forever (hopefully could be Ctrl+C'd) after detaching. (I do unmount it and I can mount and transfer data to/from it for the first time it attached). I have the same piece: ugen0.2: <Kingston DataTraveler G2> at usbus0 umass0 numa-domain 0 on uhub0 umass0: <Kingston DataTraveler G2, class 0/0, rev 2.00/1.00, addr 1> on usbus0 umass0: SCSI over Bulk-Only; quirks = 0xc100 umass0:14:0: Attached to scbus14 da7 at umass-sim0 bus 0 scbus14 target 0 lun 0 da7: <Kingston DataTraveler G2 1.00> Removable Direct Access SCSI-2 device da7: Serial Number ************************ da7: 40.000MB/s transfers da7: 15269MB (31272544 512 byte sectors) da7: quirks=0x6<NO_6_BYTE,NO_PREVENT> As you can see, I added the NO_PREVENT quirk to make it work. Works fine now. In sys/cam/scsi/scsi_da.c we already have this for the G3 version. I simply expanded that to also handle the G2. { - {T_DIRECT, SIP_MEDIA_REMOVABLE, "Kingston", "DataTraveler G3", + {T_DIRECT, SIP_MEDIA_REMOVABLE, "Kingston", "DataTraveler G*", "1.00"}, /*quirks*/ DA_Q_NO_PREVENT }, (In reply to Peter Much from comment #2) Well, now on FreeBSD (12.3-STABLE r371482) the flash stick works. I've made no hand intrusion in the source. ugen6.2: <Kingston DataTraveler G2> at usbus6 umass0 on uhub7 umass0: <Kingston DataTraveler G2, class 0/0, rev 2.00/1.00, addr 2> on usbus6 umass0: SCSI over Bulk-Only; quirks = 0xc100 umass0:8:0: Attached to scbus8 da0 at umass-sim0 bus 0 scbus8 target 0 lun 0 da0: <Kingston DataTraveler G2 1.00> Removable Direct Access SCSI-2 device da0: Serial Number 001CC0EC330FF02026BF0D49 da0: 40.000MB/s transfers da0: 7634MB (15636304 512 byte sectors) da0: quirks=0x2<NO_6_BYTE> (And you have a bit different device, yours is 16Gb, mine is 8Gb). 128GB also works on 13.0-RELEASE. Although I noticed that it only works when directly connected to USB port, I had problems when attaching over USB 3.0 HUB, disk was detected in dmesg then /dev/da0 was not showing up, but that problem seems to be fixed on 13-STABLE now, so it should also show up in the release soon, thank you! :-) TODO: CLOSE. |