From 09dff101181e5b48067cc585f6f671fe69b9b90e Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Mon, 26 Nov 2012 20:07:10 +0000 Subject: [PATCH] Fix problem with the Samsung 840 PRO series SSD detection. The device reports support for SATA Asynchronous Notification in its IDENTIFY data, but returns error on attempt to enable that feature. Make SATA XPT of CAM only report these errors, but not fail the device. MFC after: 1 week --- sys/cam/ata/ata_xpt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/cam/ata/ata_xpt.c b/sys/cam/ata/ata_xpt.c index caa4d840a684..54cda1b714a1 100644 --- a/sys/cam/ata/ata_xpt.c +++ b/sys/cam/ata/ata_xpt.c @@ -750,6 +750,14 @@ probedone(struct cam_periph *periph, union ccb *done_ccb) status == CAM_ATA_STATUS_ERROR) { 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.