svn commit: r358366 - head/sys/cam/ata

Scott Long scottl at FreeBSD.org
Thu Feb 27 05:00:21 UTC 2020


Author: scottl
Date: Thu Feb 27 05:00:21 2020
New Revision: 358366
URL: https://svnweb.freebsd.org/changeset/base/358366

Log:
  Add a quirk for the WDC Green series of SSDs to disable NCQ TRIM, as this
  avoids silent data corruption.
  
  PR:		225666
  Submitted by:	anders lundgren
  MFC after:	3 days

Modified:
  head/sys/cam/ata/ata_da.c

Modified: head/sys/cam/ata/ata_da.c
==============================================================================
--- head/sys/cam/ata/ata_da.c	Thu Feb 27 04:47:12 2020	(r358365)
+++ head/sys/cam/ata/ata_da.c	Thu Feb 27 05:00:21 2020	(r358366)
@@ -786,6 +786,11 @@ static struct ada_quirk_entry ada_quirk_table[] =
 		/*quirks*/ADA_Q_SMR_DM
 	},
 	{
+		/* WD Green SSD */
+		{ T_DIRECT, SIP_MEDIA_FIXED, "*", "WDC WDS?????G0*", "*" },
+		/*quirks*/ADA_Q_4K | ADA_Q_NCQ_TRIM_BROKEN
+	},
+	{
 		/* Default */
 		{
 		  T_ANY, SIP_MEDIA_REMOVABLE|SIP_MEDIA_FIXED,


More information about the svn-src-head mailing list