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

Alexander Motin mav at FreeBSD.org
Thu Jul 21 12:15:06 UTC 2016


Author: mav
Date: Thu Jul 21 12:15:04 2016
New Revision: 303140
URL: https://svnweb.freebsd.org/changeset/base/303140

Log:
  MFC r302960: Restore PIM_ATA_EXT flag handling, lost at r300207.
  
  This re-enables NCQ TRIM usage on capable hardware (bhyve).
  
  Approved by:	re (kib)

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	Thu Jul 21 11:58:47 2016	(r303139)
+++ stable/11/sys/cam/ata/ata_da.c	Thu Jul 21 12:15:04 2016	(r303140)
@@ -1774,6 +1774,8 @@ adaregister(struct cam_periph *periph, v
 		softc->disk->d_flags |= DISKFLAG_UNMAPPED_BIO;
 		softc->unmappedio = 1;
 	}
+	if (cpi.hba_misc & PIM_ATA_EXT)
+		softc->flags |= ADA_FLAG_PIM_ATA_EXT;
 	strlcpy(softc->disk->d_descr, cgd->ident_data.model,
 	    MIN(sizeof(softc->disk->d_descr), sizeof(cgd->ident_data.model)));
 	strlcpy(softc->disk->d_ident, cgd->ident_data.serial,


More information about the svn-src-all mailing list