From jon@caffeinated-systems.com  Sun Mar 23 13:44:22 2003
Return-Path: <jon@caffeinated-systems.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F219C37B407
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 23 Mar 2003 13:44:21 -0800 (PST)
Received: from hope.caffeinated-systems.com (hope.caffeinated-systems.com [209.98.4.50])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 075D143FA3
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 23 Mar 2003 13:44:20 -0800 (PST)
	(envelope-from jon@caffeinated-systems.com)
Received: by hope.caffeinated-systems.com (Postfix, from userid 1003)
	id C41344D911; Sun, 23 Mar 2003 15:22:36 -0600 (CST)
Message-Id: <20030323212236.C41344D911@hope.caffeinated-systems.com>
Date: Sun, 23 Mar 2003 15:22:36 -0600 (CST)
From: Jon Passki <jon@caffeinated-systems.com>
Reply-To: Jon Passki <jon@caffeinated-systems.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: QUIRK: MITSUMI USB FDD
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         50226
>Category:       kern
>Synopsis:       QUIRK: MITSUMI USB FDD
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    njl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 23 13:50:10 PST 2003
>Closed-Date:    Sun Apr 27 13:42:16 PDT 2003
>Last-Modified:  Sun Apr 27 13:42:16 PDT 2003
>Originator:     Jon Passki
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Caffeinated Systems
>Environment:
System: FreeBSD hope.caffeinated-systems.com 4.7-STABLE FreeBSD 4.7-STABLE #1: Wed Jan 29 17:23:50 CST 2003 root@novaV2:/usr/obj/usr/src/sys/NOVAV2 i386


	
>Description:
	Mitsumi USB FDD does not support 6 byte CAM commands and syncache
>How-To-Repeat:
	Upon attempting a mount with media in drive, kernel reports errors
>Fix:

src/sys/cam/scsi/scsi_da.c,v 1.42.2.30 2002/12/20 15:20:25 yar Exp

(diff -u scsi_da.c /usr/src/sys/cam/scsi/scsi_da.c)
--- scsi_da.c   Sun Mar 23 15:05:09 2003
+++ /usr/src/sys/cam/scsi/scsi_da.c     Sun Mar 23 15:10:44 2003
@@ -240,11 +240,6 @@
                /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
        },
        {
-               /* Another USB floppy */
-               {T_DIRECT, SIP_MEDIA_REMOVABLE, "MITSUMI", "USB FDD*","*"},
-               /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
-       },
-       {
                /*
                 * Sony Memory Stick adapter MSAC-US1 and
                 * Sony PCG-C1VJ Internal Memory Stick Slot (MSC-U01).

Info for http://www.root.org/~nate/freebsd/quirks.html
=================================
# Output of "camcontrol inquiry yourdevice"
pass0: <MITSUMI USB FDD 1039> Removable Direct Access SCSI-0 device 
pass0: 20KB/s transfers 
=================================
# Manufacturer name, model number, etc.
SmartDisk Titanium edition USB Floppy Disk Drive (from BestBuy)
=================================
# Transport type (FC, SCSI, USB, Firewire)
USB
=================================
# Output from dmesg for failed attach attempts
(mount_msdos /dev/da0 /mnt)
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-sim0:0:0:0): Synchronize cache failed, status == 0x6, scsi status == 0x0
=================================
# Output from dmesg for successful attach attempts (after quirk added)
(mount_msdos /dev/da0 /mnt)
da0s1: slice starts beyond end of the disk: rejecting it
da0s2: slice starts beyond end of the disk: rejecting it
da0s3: slice starts beyond end of the disk: rejecting it
=================================
# Output of "usbdevs -v" with device attached
Controller /dev/usb0:
addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
 port 1 addr 2: power 500 mA, config 1, MITSUMI USB FDD (0x6901), MITSUMI (0x03ee), rev 1.00
 port 2 powered
=================================

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->njl 
Responsible-Changed-By: johan 
Responsible-Changed-When: Tue Mar 25 10:38:13 PST 2003 
Responsible-Changed-Why:  
Over to quirks maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50226 

From: Nate Lawson <nate@root.org>
To: Jon Passki <jon@caffeinated-systems.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/50226 Mitsumi USB FDD
Date: Sun, 27 Apr 2003 12:39:53 -0700 (PDT)

 Thanks for all the information.  The only thing I need from you is to try
 the quirk again without the DA_Q_NO_SYNC_CACHE part of the quirk.  Then
 report whether it works and any dmesg of the errors.
 
 -Nate
 

From: Nate Lawson <nate@root.org>
To: Jon Passki <jon@caffeinated-systems.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/50226 Mitsumi USB FDD
Date: Sun, 27 Apr 2003 13:07:59 -0700 (PDT)

 On Sun, 27 Apr 2003, Jon Passki wrote:
 > On Sun, Apr 27, 2003 at 12:39:53PM -0700, Nate Lawson wrote:
 > > Thanks for all the information.  The only thing I need from you is to try
 > > the quirk again without the DA_Q_NO_SYNC_CACHE part of the quirk.  Then
 > > report whether it works and any dmesg of the errors.
 > 
 > Unfortunately, I do not have the device any longer.
 > 
 > Take care,
 > Jon
 
 Since you sent in enough information, I'll commit it.
 
 -Nate
 
State-Changed-From-To: open->closed 
State-Changed-By: njl 
State-Changed-When: Sun Apr 27 13:41:40 PDT 2003 
State-Changed-Why:  

Quirk is being committed with the NO_SYNCH_CACHE entry included.  It will 
be MFCd in 1 week. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50226 
>Unformatted:
