kern/169974: [cam] [patch] add Quirks for SSD that are 4k
optimised
Steven Hartland
killing at multiplay.co.uk
Fri Jul 27 09:20:08 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: <bug-followup at freebsd.org>
Cc:
Subject: Re: kern/169974: [cam] [patch] add Quirks for SSD that are 4k optimised
Date: Fri, 27 Jul 2012 10:13:14 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_12E9_01CD6BE0.6F334610
Content-Type: text/plain;
format=flowed;
charset="Windows-1252";
reply-type=original
Content-Transfer-Encoding: 7bit
Updated patch attached
================================================
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_12E9_01CD6BE0.6F334610
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=
--- ./sys/cam/scsi/scsi_da.c.orig 2012-07-13 18:54:45.525693438 +0000=0A=
+++ ./sys/cam/scsi/scsi_da.c 2012-07-13 18:55:06.959905372 +0000=0A=
@@ -807,6 +807,86 @@=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=
static disk_strategy_t dastrategy;=0A=
--- sys/cam/ata/ata_da.c 2012-07-13 16:41:49.838471171 +0000=0A=
+++ sys/cam/ata/ata_da.c 2012-07-18 12:14:49.189046166 +0000=0A=
@@ -268,6 +268,86 @@=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=
/* Default */=0A=
{=0A=
T_ANY, SIP_MEDIA_REMOVABLE|SIP_MEDIA_FIXED,=0A=
------=_NextPart_000_12E9_01CD6BE0.6F334610--
More information about the freebsd-scsi
mailing list