[Midnightbsd-cvs] src [7811] trunk/sys/cam/ata/ata_xpt.c: work around issues with Samsung 840 pro drives.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Sep 6 19:20:50 EDT 2016


Revision: 7811
          http://svnweb.midnightbsd.org/src/?rev=7811
Author:   laffer1
Date:     2016-09-06 19:20:50 -0400 (Tue, 06 Sep 2016)
Log Message:
-----------
work around issues with Samsung 840 pro drives.  It reports SATA async notification but returns errors on attemps to use it. Now this error is reported but not fatal.

Modified Paths:
--------------
    trunk/sys/cam/ata/ata_xpt.c

Property Changed:
----------------
    trunk/sys/cam/ata/ata_xpt.c

Modified: trunk/sys/cam/ata/ata_xpt.c
===================================================================
--- trunk/sys/cam/ata/ata_xpt.c	2016-09-06 23:18:52 UTC (rev 7810)
+++ trunk/sys/cam/ata/ata_xpt.c	2016-09-06 23:20:50 UTC (rev 7811)
@@ -750,6 +750,14 @@
 			goto noerror;
 
 		/*
+		 * Some Samsung SSDs report supported Asynchronous Notification,
+		 * but return ABORT on attempt to enable it.
+		 */
+		} else if (softc->action == PROBE_SETAN &&
+		    status == CAM_ATA_STATUS_ERROR) {
+			goto noerror;
+
+		/*
 		 * SES and SAF-TE SEPs have different IDENTIFY commands,
 		 * but SATA specification doesn't tell how to identify them.
 		 * Until better way found, just try another if first fail.


Property changes on: trunk/sys/cam/ata/ata_xpt.c
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.2
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list