From owner-freebsd-bugs Sun Jul 30 11:10:13 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9055037B6B7 for ; Sun, 30 Jul 2000 11:10:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA85128; Sun, 30 Jul 2000 11:10:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from shrike.dti.ad.jp (shrike.dti.ad.jp [202.216.228.218]) by hub.freebsd.org (Postfix) with ESMTP id BF02337B515 for ; Sun, 30 Jul 2000 11:02:10 -0700 (PDT) (envelope-from sakichan@lares.dti.ne.jp) Received: from pleione.sakichan.org (PPP13.kawasaki-ap3.dti.ne.jp [210.170.222.13]) by shrike.dti.ad.jp (8.9.3/3.7W) with ESMTP id DAA19232 for ; Mon, 31 Jul 2000 03:02:08 +0900 (JST) Received: (from sakichan@localhost) by pleione.sakichan.org (8.9.3/3.5Wpl5-ppp) id DAA01423; Mon, 31 Jul 2000 03:02:30 +0900 (JST) Message-Id: <200007301802.DAA19232@shrike.dti.ad.jp> Date: Mon, 31 Jul 2000 03:02:30 +0900 (JST) From: sakichan@lares.dti.ne.jp Reply-To: sakichan@lares.dti.ne.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/20300: [Patch] support for Panasonic USB FDD Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 20300 >Category: kern >Synopsis: [Patch] support for Panasonic USB FDD >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 30 11:10:04 PDT 2000 >Closed-Date: >Last-Modified: >Originator: SAKIYAMA Nobuo >Release: FreeBSD 4.1-STABLE i386 >Organization: none >Environment: machines with USB interfaces and a Panasonic USB FDD >Description: Panasonic USB FDD "MATSHITA FDD CF-VFDU03" does not work. The FDD is detected, but when trying to read or write, errors occur. In dmesg: umass0: MATSHITA CF-VFDU03 , rev 1.00/0.00, addr 2 da0 at umass-sim32 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 20KB/s transfers da0: 1MB (2880 512 byte sectors: 2H 18S/T 80C) but, when I executed "dd if=/dev/da0 of=/dev/null", umass0: Unsupported UFI command 0x08, 6 byte command should have been converted da0: reading primary partition table: error reading fsbn 0 umass0: Unsupported UFI command 0x35 (da0:umass-sim32:0:0:0): Synchronize cache failed, status == 0x6, scsi status == 0x0 >How-To-Repeat: as described in "Description:" >Fix: I think that the auto detection of UFI based drives in CAM is the best, but I don't know the CAM architecture well. So I wrote a patch similar to the quirks for YE-DATA USB FDD Drives. --- sys/cam/scsi/scsi_da.c.dist Sat Jul 8 23:24:08 2000 +++ sys/cam/scsi/scsi_da.c Mon Jul 31 02:14:50 2000 @@ -198,6 +198,13 @@ */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "Y-E DATA", "USB-FDU", "*"}, /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE + }, + { + /* + * See above. + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "MATSHITA", "FDD CF-VFDU*", "*"}, + /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE } }; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message