From bjan@kode187.net  Fri Jun  6 22:41:32 2003
Return-Path: <bjan@kode187.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5B78E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  6 Jun 2003 22:41:32 -0700 (PDT)
Received: from rs2.luxsci.com (rs2.luxsci.com [209.61.189.139])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9D12843FA3
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  6 Jun 2003 22:41:31 -0700 (PDT)
	(envelope-from bjan@kode187.net)
Received: from euler.kode187.net (ip68-110-89-156.ph.ph.cox.net [68.110.89.156])
	(authenticated bits=0)
	by rs2.luxsci.com (8.12.9/8.12.9) with ESMTP id h575fSBA018035
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 7 Jun 2003 00:41:29 -0500
Received: by euler.kode187.net (sSMTP sendmail emulation); Fri, _d Jun 2003 23:41:17 -0700
Message-Id: <200306070541.h575fSBA018035@rs2.luxsci.com>
Date: Fri, _d Jun 2003 23:41:17 -0700
From: "Bruce Nourish" <bjan@kode187.net>
Reply-To: Bruce Nourish <bjan@rs2.luxsci.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: USB IntelligentStick SCSI DA quirk
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         53005
>Category:       kern
>Synopsis:       USB IntelligentStick SCSI DA quirk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    njl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 06 22:50:10 PDT 2003
>Closed-Date:    Sun Apr 18 20:44:48 PDT 2004
>Last-Modified:  Sun Apr 18 20:44:48 PDT 2004
>Originator:     Bruce Nourish
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
System: FreeBSD euler.kode187.net 4.8-RELEASE FreeBSD 4.8-RELEASE #5: Fri Jun 6 11:35:24 MST 2003 root@euler.kode187.net:/usr/obj/usr/src/sys/THINKER i386

Stock FreeBSD 4.8.

>Description:
The USB IntelligentStick pen drive, marketed by Power Quotient
International, Inc, needs a quirks entry in /usr/src/sys/cam/scsi/scsi_da.c.

>How-To-Repeat:
Insert pen drive. Type fdisk /dev/da0. Observe console.
>Fix:
Patch follows, hope it is okay - I'm new to FreeBSD and I'm not quite sure
what to diff against - current or 4.8. I diffed against 4.8.

--- scsi_da.c.orig	Fri Jun  6 14:56:04 2003
+++ scsi_da.c	Fri Jun  6 14:56:49 2003
@@ -440,6 +440,16 @@
 		 */
 		{T_DIRECT, SIP_MEDIA_REMOVABLE, "SanDisk", "ImageMate*", "*"},
 		/*quirks*/ DA_Q_NO_6_BYTE
+	},
+	{
+		/*
+		 * USB IntelligentStick, Power Quotient International, Inc.
+		 * Tested by Bruce Nourish <bjan@kode187.net>
+		 * Drive does not like cache sync or 6 byte commands.
+		 */
+		{T_DIRECT, SIP_MEDIA_REMOVABLE, "USB Card",
+		 	"IntelligentStick", "*"},
+		/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
 	}
 };
 


>Release-Note:
>Audit-Trail:

From: Thomas Quinot <thomas@cuivre.fr.eu.org>
To: bug-followup@freebsd.org
Cc:  
Subject: kern/53005: USB IntelligentStick SCSI DA quirk
Date: Thu, 17 Jul 2003 20:45:19 +0200

 Problem also noted by Samuel Tardieu <sam@rfc1149.net>, quirk entry
 committed to scsi_da.c rev. 1.145.
 
 -- 
     Thomas.Quinot@Cuivre.FR.EU.ORG
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: kris 
Responsible-Changed-When: Thu Jul 17 17:38:20 PDT 2003 
Responsible-Changed-Why:  
Assign to USB maintainer 

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

From: Samuel Tardieu <sam@rfc1149.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc: bjan@rs2.luxsci.com, thomas@freebsd.org
Subject: Re: kern/53005: USB IntelligentStick SCSI DA quirk
Date: Fri, 18 Jul 2003 18:00:29 +0200

 Here is some additional info.
 
 The kind of device is: http://virology-online.com/Products/istick128.htm
 
 # camcontrol devlist
 [...]
 <MATSHITA UJDA720 DVD/CDRW 1.00>   at scbus3 target 0 lun 0 (pass1,cd0)
 
 # camcontrol inquiry 3:0:0
 pass1: <MATSHITA UJDA720 DVD/CDRW 1.00> Removable CD-ROM SCSI-0 device 
 pass1: 16.000MB/s transfers 
 
 # usbdevs -v
 Controller /dev/usb0:
 addr 1: self powered, config 1, OHCI root hub(0x0000), AcerLabs(0x0000), rev 1.00
 [...]
  port 2 addr 3: power 100 mA, config 1, Intelligent Stick(0x8001), Intelligent Stick(0x09a6), rev 1.00
  port 3 powered
 
 dmesg:
 
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: <USB Card IntelligentStick 1.00> Removable Direct Access SCSI-0 device 
 da0: 650KB/s transfers
 da0: 127MB (260416 512 byte sectors: 64H 32S/T 127C)
 
 Additional messages without Thomas' patch: (when trying to access the device)
 
 umass0: Unsupported ATAPI command 0x08, 6 byte command should have been converted
 da0: reading primary partition table: error reading fsbn 0            
 umass0: Unsupported ATAPI command 0x35
 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x6, scsi status == 0x0
 umass0: Unsupported ATAPI command 0x08, 6 byte command should have been converted
 
Responsible-Changed-From-To: joe->njl 
Responsible-Changed-By: njl 
Responsible-Changed-When: Fri Aug 8 11:15:27 PDT 2003 
Responsible-Changed-Why:  
Take over this PR.  Could the submitter try with today's stable or current 
and report if it still works? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53005 
State-Changed-From-To: open->closed 
State-Changed-By: njl 
State-Changed-When: Sun Apr 18 20:44:40 PDT 2004 
State-Changed-Why:  
This should work on -current and -stable since 2003/8/7.  Close due to 
lack of response. 


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