svn commit: r367915 - in head/sys/dev: ahci siis

Alexander Motin mav at FreeBSD.org
Sat Nov 21 00:51:40 UTC 2020


Author: mav
Date: Sat Nov 21 00:51:39 2020
New Revision: 367915
URL: https://svnweb.freebsd.org/changeset/base/367915

Log:
  Fix stupid math mistake in r366922.
  
  MFC after:	3 days

Modified:
  head/sys/dev/ahci/ahci.c
  head/sys/dev/siis/siis.c

Modified: head/sys/dev/ahci/ahci.c
==============================================================================
--- head/sys/dev/ahci/ahci.c	Sat Nov 21 00:40:59 2020	(r367914)
+++ head/sys/dev/ahci/ahci.c	Sat Nov 21 00:51:39 2020	(r367915)
@@ -2580,7 +2580,7 @@ ahci_setup_fis(struct ahci_channel *ch, struct ahci_cm
 		fis[11] = ccb->ataio.cmd.features_exp;
 		fis[12] = ccb->ataio.cmd.sector_count;
 		if (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA) {
-			fis[12] &= 0xf8;
+			fis[12] &= 0x07;
 			fis[12] |= tag << 3;
 		}
 		fis[13] = ccb->ataio.cmd.sector_count_exp;

Modified: head/sys/dev/siis/siis.c
==============================================================================
--- head/sys/dev/siis/siis.c	Sat Nov 21 00:40:59 2020	(r367914)
+++ head/sys/dev/siis/siis.c	Sat Nov 21 00:51:39 2020	(r367915)
@@ -1725,7 +1725,7 @@ siis_setup_fis(device_t dev, struct siis_cmd *ctp, uni
 		fis[11] = ccb->ataio.cmd.features_exp;
 		fis[12] = ccb->ataio.cmd.sector_count;
 		if (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA) {
-			fis[12] &= 0xf8;
+			fis[12] &= 0x03;
 			fis[12] |= tag << 3;
 		}
 		fis[13] = ccb->ataio.cmd.sector_count_exp;


More information about the svn-src-head mailing list