From 025e2c1221609eadd17f88860a96661a082bb115 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Wed, 26 Jan 2011 06:57:48 +0000 Subject: [PATCH] In addition to r217444 ignore also ATA status errors on DMA Auto-Activation enabling request. Some HP disks reported to return ABORT error there while declaring support for this feature. --- 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 5a50b12b6264..db45f8f423ca 100644 --- a/sys/cam/ata/ata_xpt.c +++ b/sys/cam/ata/ata_xpt.c @@ -778,6 +778,14 @@ probedone(struct cam_periph *periph, union ccb *done_ccb) } else if (softc->action == PROBE_SETPM && status == CAM_ATA_STATUS_ERROR) { goto noerror; + + /* + * Some HP SATA disks report supported DMA Auto-Activation, + * but return ABORT on attempt to enable it. + */ + } else if (softc->action == PROBE_SETDMAAA && + status == CAM_ATA_STATUS_ERROR) { + goto noerror; } /*