Date: Fri, 12 May 2006 15:52:10 +0200 (CEST) From: Ed Schouten <ed@fxq.nl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/97174: [umass] Y-E DATA USB-FDU quirk: no synchronize cache Message-ID: <20060512135210.38A6617101@palm.hoeg.nl> Resent-Message-ID: <200605121400.k4CE0X6x048410@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 97174 >Category: kern >Synopsis: [umass] Y-E DATA USB-FDU quirk: no synchronize cache >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 12 14:00:32 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Ed Schouten >Release: FreeBSD 7.0-CURRENT i386 >Organization: n/a >Environment: FreeBSD zonk.fxq.nl 7.0-CURRENT FreeBSD 7.0-CURRENT #9: Fri May 12 14:16:32 CEST 2006 root@zonk.fxq.nl:/usr/obj/export/src/sys/ZONK i386 >Description: A few days ago I bought a floppy drive at MyCom (http://www.mycom.nl/); a Y-E DATA USB-FDU. When connecting it to a FreeBSD box, the following messages are shown: | umass0: <Y-E DATA USB Floppy Drive, class 0/0, rev 1.10/6.01, addr 2> on uhub1 | da0 at umass-sim0 bus 0 target 0 lun 0 | da0: <Y-E DATA USB-FDU 6.01> Removable Direct Access SCSI-0 device | da0: 20KB/s transfers | da0: 1MB (2880 512 byte sectors: 64H 32S/T 1C) | umass0: Unsupported UFI command 0x35 | (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x6, scsi status == 0x0 | umass0: Unsupported UFI command 0x35 | (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x6, scsi status == 0x0 | umass0: Unsupported UFI command 0x35 | (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x6, scsi status == 0x0 I do get a /dev/da0 entry. Mounting, reading, writing and dismounting works properly. >How-To-Repeat: Connect a Y-E DATA USB-FDU to a machine running FreeBSD. >Fix: Below is a patch that disables cache synchronization on the device. %%% --- scsi_da.c Fri May 12 14:19:20 2006 +++ scsi_da.c Fri May 12 14:16:17 2006 @@ -443,6 +443,13 @@ {T_DIRECT, SIP_MEDIA_REMOVABLE, "Generic*", "STORAGE DEVICE*", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, + { + /* + * Y-E DATA USB Floppy Drive + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "Y-E DATA", "USB-FDU*", + "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE + }, }; static disk_strategy_t dastrategy; %%% When applying this patch, the messages are gone. | umass0: <Y-E DATA USB Floppy Drive, class 0/0, rev 1.10/6.01, addr 4> on uhub1 | da0 at umass-sim0 bus 0 target 0 lun 0 | da0: <Y-E DATA USB-FDU 6.01> Removable Direct Access SCSI-0 device | da0: 20KB/s transfers | da0: 1MB (2880 512 byte sectors: 64H 32S/T 1C) | # mounted the device, read/wrote some files and dismounted it | umass0: at uhub1 port 1 (addr 4) disconnected | (da0:umass-sim0:0:0:0): lost device | (da0:umass-sim0:0:0:0): removing device entry | umass0: detached >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060512135210.38A6617101>