Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2009 18:53:08 +0200
From:      Tijl Coosemans <tijl@ulyssis.org>
To:        gavin@freebsd.org
Cc:        freebsd-usb@freebsd.org
Subject:   Re: usb/107243: [usb67] [cam] [quirk] [patch] Apacer USB Flash Drive quirk
Message-ID:  <200908271853.09981.tijl@ulyssis.org>
In-Reply-To: <200908251253.n7PCrwHQ065055@freefall.freebsd.org>
References:  <200908251253.n7PCrwHQ065055@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-00=_1nrlK+4G+36XeDX
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Tuesday 25 August 2009 14:53:58 gavin@freebsd.org wrote:
> Old Synopsis: [cam] [patch] Apacer USB Flash Drive quirk
> New Synopsis: [usb67] [cam] [quirk] [patch] Apacer USB Flash Drive quirk
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: gavin
> State-Changed-When: Tue Aug 25 12:52:05 UTC 2009
> State-Changed-Why: 
> To submitter:  Do you know if this issue has ever been resolved?  Also, do
> you know if this is still an issue with the new USB stack found in FreeBSD 8?
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=107243

It's still an issue on today's 7-stable.
I currently don't have time to upgrade to 8 so I don't know about that.

I've attached an updated patch for 7-stable, because the old one
doesn't apply anymore.

And here's dmesg output (btw, vendor id isn't recognised either):

umass0: <vendor 0x1005 USB FLASH DRIVE, class 0/0, rev 2.00/0.50, addr 2> on uhub3
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
(probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
da0 at umass-sim0 bus 0 target 0 lun 0
da0: < USB FLASH DRIVE 1.01> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 124MB (253952 512 byte sectors: 64H 32S/T 124C)

Without the patch I then get these messages repeatedly:

umass0: Phase Error, residue = 0
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0

--Boundary-00=_1nrlK+4G+36XeDX
Content-Type: text/plain;
  charset="iso-8859-15";
  name="patch-apacer-usb"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="patch-apacer-usb"

--- sys/cam/scsi/scsi_da.c.orig	2008-09-30 17:24:40.000000000 +0200
+++ sys/cam/scsi/scsi_da.c	2008-09-30 17:26:42.000000000 +0200
@@ -546,6 +546,13 @@
 	{
 		{T_DIRECT, SIP_MEDIA_REMOVABLE, "Netac", "OnlyDisk*",
 		 "2000"}, /*quirks*/ DA_Q_NO_SYNC_CACHE
+	},
+	{
+		/*
+		 * Apacer Handy Steno
+		 */
+		{T_DIRECT, SIP_MEDIA_REMOVABLE, "", "USB FLASH DRIVE",
+		 "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE
 	}
 };
 

--Boundary-00=_1nrlK+4G+36XeDX--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908271853.09981.tijl>