svn commit: r358490 - stable/11/sys/cam/ata

Scott Long scottl at FreeBSD.org
Sun Mar 1 18:03:09 UTC 2020


Author: scottl
Date: Sun Mar  1 18:03:09 2020
New Revision: 358490
URL: https://svnweb.freebsd.org/changeset/base/358490

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

Modified:
  stable/11/sys/cam/ata/ata_da.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/cam/ata/ata_da.c
==============================================================================
--- stable/11/sys/cam/ata/ata_da.c	Sun Mar  1 18:02:00 2020	(r358489)
+++ stable/11/sys/cam/ata/ata_da.c	Sun Mar  1 18:03:09 2020	(r358490)
@@ -776,6 +776,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-all mailing list