kern/169974: Patch to add Quirks for SSD that are 4k optimised

Steven Hartland killing at multiplay.co.uk
Mon Jul 30 10:30:13 UTC 2012


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

From: "Steven Hartland" <killing at multiplay.co.uk>
To: <FreeBSD-gnats-submit at FreeBSD.org>,
	<freebsd-bugs at FreeBSD.org>
Cc:  
Subject: Re: kern/169974: Patch to add Quirks for SSD that are 4k optimised
Date: Mon, 30 Jul 2012 11:18:45 +0100

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_054F_01CD6E45.157ACAA0
 Content-Type: text/plain;
 	format=flowed;
 	charset="Windows-1252";
 	reply-type=original
 Content-Transfer-Encoding: 7bit
 
 Updated patch adding HyperX 3k, another set of sandforce based
 disks by Kingston.
 
     Regards
     Steve
 
 ================================================
 This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 
 
 In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
 or return the E.mail to postmaster at multiplay.co.uk.
 ------=_NextPart_000_054F_01CD6E45.157ACAA0
 Content-Type: text/plain;
 	format=flowed;
 	name="ssd_quirks.txt";
 	reply-type=original
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
 	filename="ssd_quirks.txt"
 
 Adds 4K quirks for the following SSD's which all perform better when 4K =
 aligned=0A=
 and only except 4K deletes (TRIM):-=0A=
 * Corsair Force 2 & Force 3=0A=
 * OCZ Agility 3=0A=
 * OCZ Vertex 2 & Vertex 3=0A=
 * SuperTalent TeraDrive CT=0A=
 * Crucial RealSSD C300=0A=
 * XceedIOPS SATA=0A=
 * Intel 330 Series=0A=
 * OCZ Deneva R Series=0A=
 * Kingston HyperX 3k=0A=
 --- sys/cam/ata/ata_da.c.orig	2012-07-18 12:11:26.036266229 +0000=0A=
 +++ sys/cam/ata/ata_da.c	2012-07-30 10:02:43.445141719 +0000=0A=
 @@ -268,6 +268,94 @@=0A=
  		/*quirks*/ADA_Q_4K=0A=
  	},=0A=
  	{=0A=
 +		/*=0A=
 +		 * Corsair Force 2 SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "*", "Corsair CSSD-F*", "*" },=0A=
 +		/*quirks*/ADA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * Corsair Force 3 SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "*", "Corsair Force 3*", "*" },=0A=
 +		/*quirks*/ADA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * OCZ Agility 3 SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "*", "OCZ-AGILITY3*", "*" },=0A=
 +		/*quirks*/ADA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * OCZ Vertex 2 SSDs (inc pro series)=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "*", "OCZ?VERTEX2*", "*" },=0A=
 +		/*quirks*/ADA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * OCZ Vertex 3 SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "ATA", "OCZ-VERTEX3*", "*" },=0A=
 +		/*quirks*/ADA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * SuperTalent TeraDrive CT SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "*", "FTM??CT25H*", "*" },=0A=
 +		/*quirks*/ADA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * Crucial RealSSD C300 SSDs=0A=
 +		 * 4k optimised=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "*", "C300-CTFDDAC???MAG*",=0A=
 +		"*" }, /*quirks*/ADA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * XceedIOPS SATA SSDs=0A=
 +		 * 4k optimised=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "*", "SG9XCS2D*", "*" },=0A=
 +		/*quirks*/ADA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * Intel 330 Series SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "*", "INTEL SSDSC2ct*", "*" },=0A=
 +		/*quirks*/ADA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * OCZ Deneva R Series SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "*", "DENRSTE251M45*", "*" },=0A=
 +		/*quirks*/ADA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * Kingston HyperX 3k SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "*", "KINGSTON SH103S3*", "*" },=0A=
 +		/*quirks*/ADA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
  		/* Default */=0A=
  		{=0A=
  		  T_ANY, SIP_MEDIA_REMOVABLE|SIP_MEDIA_FIXED,=0A=
 --- sys/cam/scsi/scsi_da.c.orig	2012-07-30 10:05:12.801568145 +0000=0A=
 +++ sys/cam/scsi/scsi_da.c	2012-07-30 10:02:00.416761382 +0000=0A=
 @@ -846,6 +846,94 @@=0A=
  		/* WDC Scorpio Blue Advanced Format (4k) drives */=0A=
  		{ T_DIRECT, SIP_MEDIA_FIXED, "WDC WD??", "???PVT*", "*" },=0A=
  		/*quirks*/DA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * Corsair Force 2 SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "ATA", "Corsair CSSD-F*", "*" },=0A=
 +		/*quirks*/DA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * Corsair Force 3 SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "ATA", "Corsair Force 3*", "*" },=0A=
 +		/*quirks*/DA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * OCZ Agility 3 SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "ATA", "OCZ-AGILITY3*", "*" },=0A=
 +		/*quirks*/DA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * OCZ Vertex 2 SSDs (inc pro series)=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "ATA", "OCZ?VERTEX2*", "*" },=0A=
 +		/*quirks*/DA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * OCZ Vertex 3 SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "ATA", "OCZ-VERTEX3*", "*" },=0A=
 +		/*quirks*/DA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * SuperTalent TeraDrive CT SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "ATA", "FTM??CT25H*", "*" },=0A=
 +		/*quirks*/DA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * Crucial RealSSD C300 SSDs=0A=
 +		 * 4k optimised=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "ATA", "C300-CTFDDAC???MAG*",=0A=
 +		"*" }, /*quirks*/DA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * XceedIOPS SATA SSDs=0A=
 +		 * 4k optimised=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "ATA", "SG9XCS2D*", "*" },=0A=
 +		/*quirks*/DA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * Intel 330 Series SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "ATA", "INTEL SSDSC2ct*", "*" },=0A=
 +		/*quirks*/DA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * OCZ Deneva R Series SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "ATA", "DENRSTE251M45*", "*" },=0A=
 +		/*quirks*/DA_Q_4K=0A=
 +	},=0A=
 +	{=0A=
 +		/*=0A=
 +		 * Kingston HyperX 3k SSDs=0A=
 +		 * 4k optimised & trim only works in 4k requests + 4k aligned=0A=
 +		 */=0A=
 +		{ T_DIRECT, SIP_MEDIA_FIXED, "ATA", "KINGSTON SH103S3*", "*" },=0A=
 +		/*quirks*/DA_Q_4K=0A=
  	}=0A=
  };=0A=
  =0A=
 
 ------=_NextPart_000_054F_01CD6E45.157ACAA0--
 


More information about the freebsd-scsi mailing list