usb/107243: [usb67] [cam] [quirk] [patch] Apacer USB Flash
Drive quirk
Tijl Coosemans
tijl at ulyssis.org
Thu Aug 27 17:24:58 UTC 2009
On Tuesday 25 August 2009 14:53:58 gavin at freebsd.org wrote:
> Old Synopsis: [cam] [patch] Apacer USB Flash Drive quirk
> New Synopsis: [usb67] [cam] [quirk] [patch] Apacer USB Flash Drive quirk
>
> State-Changed-From-To: open->feedback
> State-Changed-By: gavin
> State-Changed-When: Tue Aug 25 12:52:05 UTC 2009
> State-Changed-Why:
> To submitter: Do you know if this issue has ever been resolved? Also, do
> you know if this is still an issue with the new USB stack found in FreeBSD 8?
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=107243
It's still an issue on today's 7-stable.
I currently don't have time to upgrade to 8 so I don't know about that.
I've attached an updated patch for 7-stable, because the old one
doesn't apply anymore.
And here's dmesg output (btw, vendor id isn't recognised either):
umass0: <vendor 0x1005 USB FLASH DRIVE, class 0/0, rev 2.00/0.50, addr 2> on uhub3
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
(probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
da0 at umass-sim0 bus 0 target 0 lun 0
da0: < USB FLASH DRIVE 1.01> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 124MB (253952 512 byte sectors: 64H 32S/T 124C)
Without the patch I then get these messages repeatedly:
umass0: Phase Error, residue = 0
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
-------------- next part --------------
--- sys/cam/scsi/scsi_da.c.orig 2008-09-30 17:24:40.000000000 +0200
+++ sys/cam/scsi/scsi_da.c 2008-09-30 17:26:42.000000000 +0200
@@ -546,6 +546,13 @@
{
{T_DIRECT, SIP_MEDIA_REMOVABLE, "Netac", "OnlyDisk*",
"2000"}, /*quirks*/ DA_Q_NO_SYNC_CACHE
+ },
+ {
+ /*
+ * Apacer Handy Steno
+ */
+ {T_DIRECT, SIP_MEDIA_REMOVABLE, "", "USB FLASH DRIVE",
+ "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE
}
};
More information about the freebsd-usb
mailing list