Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Feb 2011 20:57:01 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r218342 - stable/8/sys/cam/ata
Message-ID:  <201102052057.p15Kv1D8040594@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sat Feb  5 20:57:01 2011
New Revision: 218342
URL: http://svn.freebsd.org/changeset/base/218342

Log:
  MFC r217875:
  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.
  
  PR:		kern/152817

Modified:
  stable/8/sys/cam/ata/ata_xpt.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/cam/ata/ata_xpt.c
==============================================================================
--- stable/8/sys/cam/ata/ata_xpt.c	Sat Feb  5 20:54:47 2011	(r218341)
+++ stable/8/sys/cam/ata/ata_xpt.c	Sat Feb  5 20:57:01 2011	(r218342)
@@ -778,6 +778,14 @@ probedone(struct cam_periph *periph, uni
 		} 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;
 		}
 
 		/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102052057.p15Kv1D8040594>