From owner-freebsd-bugs@FreeBSD.ORG Fri May 12 14:00:43 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB6D716A6F6 for ; Fri, 12 May 2006 14:00:42 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76BD943D5C for ; Fri, 12 May 2006 14:00:33 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4CE0XQQ048411 for ; Fri, 12 May 2006 14:00:33 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4CE0X6x048410; Fri, 12 May 2006 14:00:33 GMT (envelope-from gnats) Resent-Date: Fri, 12 May 2006 14:00:33 GMT Resent-Message-Id: <200605121400.k4CE0X6x048410@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ed Schouten Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 133A316A435 for ; Fri, 12 May 2006 13:52:13 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1FAE43D73 for ; Fri, 12 May 2006 13:52:11 +0000 (GMT) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 38A6617101; Fri, 12 May 2006 15:52:10 +0200 (CEST) Message-Id: <20060512135210.38A6617101@palm.hoeg.nl> Date: Fri, 12 May 2006 15:52:10 +0200 (CEST) From: Ed Schouten To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/97174: [umass] Y-E DATA USB-FDU quirk: no synchronize cache X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ed Schouten List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 14:00:47 -0000 >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: on uhub1 | da0 at umass-sim0 bus 0 target 0 lun 0 | da0: 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: on uhub1 | da0 at umass-sim0 bus 0 target 0 lun 0 | da0: 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: