kern/96381: add a quirk table entry for a flash ram usb stick

Julian Stacey jhs at berklix.org
Wed Apr 26 21:40:19 UTC 2006


The following reply was made to PR kern/96381; it has been noted by GNATS.

From: "Julian Stacey" <jhs at berklix.org>
To: bug-followup at FreeBSD.org
Cc: jhs at berklix.com
Subject: Re: kern/96381: add a quirk table entry for a flash ram usb stick
Date: Wed, 26 Apr 2006 23:35:16 +0200 (CEST)

 I forgot the patch !  I just gave a URL to it.  Here it is.
 
 I forgot to mention that in current src/ at time of submission Wed
 Apr 26 22:41:11 CEST 2006  no one else had added this quirk table
 entry yet,  so its worth adding (even though the diff was created
 on a 6.0-RELEASE, not 6.1-PRERELEASE (which I'm about to do)
 
 
 *** 6.0-RELEASE/src/sys/cam/scsi/scsi_da.c	Thu Jun  9 19:35:04 2005
 --- new-generic/src/sys/cam/scsi/scsi_da.c	Wed Apr 26 18:24:56 2006
 ***************
 *** 354,359 ****
 --- 354,402 ----
   		{T_DIRECT, SIP_MEDIA_REMOVABLE, "Kingston" , "DataTraveler II+", "*"},
   		/*quirks*/ DA_Q_NO_SYNC_CACHE
   	},
 + 	{
 + 		/* Label on outside: "integral 1GB USB 2.0 Flash Drive"
 + 	   	 * cam/scsi/scsi_all.c scsi_inquiry_match() inq->vendor 
 + 	   	 * Shows 8 spurious spaces for just this flash stick.
 + 	   	 *	"        USB DISK Pro    PMAP"
 + 	   	 * Detected by stick owner "Julian H. Stacey" <jhs at berklix.com>
 + 	   	 * PS a "*" works as well as a " " in next line of code.
 + 	   	 */
 + 		/* This stick works without this patch, but then in /var/log/messages:
 + 		 * (This stick is lockable, when unlocked it appears with /dev/da0 /dev/da0s1 /dev/da1 ).
 + 		 *	umass0: vendor 0x0d7d USB DISK Pro, rev 2.00/1.00, addr 3
 + 		 *	umass0: SCSI over Bulk-Only; quirks = 0x0000
 + 		 *	umass0:3:0:-1: Attached to scbus3
 + 		 *	da0 at umass-sim0 bus 0 target 0 lun 0
 + 		 *	da0: < USB DISK Pro PMAP> Removable Direct Access SCSI-0 device
 + 		 *	da0: 1.000MB/s transfers
 + 		 *	da0: 978MB (2003968 512 byte sectors: 64H 32S/T 978C)
 + 		 *	da1 at umass-sim0 bus 0 target 0 lun 1
 + 		 *	da1: < USB DISK Pro PMAP> Removable Direct Access SCSI-0 device
 + 		 *	da1: 1.000MB/s transfers
 + 		 *	da1: 1MB (2880 512 byte sectors: 64H 32S/T 1C)
 + 		 *	umass0: Phase Error, residue = 0
 + 		 *	(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
 + 		 *	umass0: Phase Error, residue = 0
 + 		 *	(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
 + 		 *	umass0: Phase Error, residue = 0
 + 		 *	(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
 + 		 *	umass0: Phase Error, residue = 0
 + 		 *	(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
 + 		 *	umass0: Phase Error, residue = 0
 + 		 *	(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
 + 		 *	umass0: Phase Error, residue = 0
 + 		 *	(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
 + 		 *	umass0: Phase Error, residue = 0
 + 		 *	(da1:umass-sim0:0:0:1): Synchronize cache failed, status == 0x4, scsi status == 0x0
 + 		 *	umass0: Phase Error, residue = 0
 + 		 *	(da1:umass-sim0:0:0:1): Synchronize cache failed, status == 0x4, scsi status == 0x0
 + 		 *	umass0: Phase Error, residue = 0
 + 		 *	(da1:umass-sim0:0:0:1): Synchronize cache failed, status == 0x4, scsi status == 0x0
 + 		 */
 + 		{T_DIRECT, SIP_MEDIA_REMOVABLE, " ", "USB DISK Pro", "PMAP" },
 + 		/*quirks*/ DA_Q_NO_SYNC_CACHE
 + 	},
   };
   
   static	disk_strategy_t	dastrategy;
 -----------
 
 Julian
 -- 
 Julian Stacey.  Consultant Unix Net & Sys. Eng., Munich.  http://berklix.com
 Mail in Ascii, HTML=spam.      Ihr Rauch = mein allergischer Kopfschmerz.


More information about the freebsd-bugs mailing list