svn commit: r279917 - stable/10/sys/dev/ahci
Alexander Motin
mav at FreeBSD.org
Thu Mar 12 13:16:06 UTC 2015
Author: mav
Date: Thu Mar 12 13:16:05 2015
New Revision: 279917
URL: https://svnweb.freebsd.org/changeset/base/279917
Log:
MFC r270833 (by imp):
We were returning 20 bytes as the FIS size to send, but only
initializing 16. Initialize all 20 so we don't send garbage in the
Auxiliary register. The SATA standard mandates a 5 dword length for
the Host to Device FIS.
Modified:
stable/10/sys/dev/ahci/ahci.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/ahci/ahci.c
==============================================================================
--- stable/10/sys/dev/ahci/ahci.c Thu Mar 12 12:36:08 2015 (r279916)
+++ stable/10/sys/dev/ahci/ahci.c Thu Mar 12 13:16:05 2015 (r279917)
@@ -2794,7 +2794,7 @@ ahci_setup_fis(device_t dev, struct ahci
struct ahci_channel *ch = device_get_softc(dev);
u_int8_t *fis = &ctp->cfis[0];
- bzero(ctp->cfis, 16);
+ bzero(fis, 20);
fis[0] = 0x27; /* host to device */
fis[1] = (ccb->ccb_h.target_id & 0x0f);
if (ccb->ccb_h.func_code == XPT_SCSI_IO) {
More information about the svn-src-all
mailing list