Module Name: src
Committed By: jakllsch
Date: Sun Sep 29 21:25:08 UTC 2019
Modified Files:
src/sys/dev/ic: ahcisata_core.c
Log Message:
Use AHCI_CMDTBL_SYNC in ahci_exec_fis() to ensure hardware sees the
command FIS.
To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/dev/ic/ahcisata_core.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/ahcisata_core.c
diff -u src/sys/dev/ic/ahcisata_core.c:1.76 src/sys/dev/ic/ahcisata_core.c:1.77
--- src/sys/dev/ic/ahcisata_core.c:1.76 Sun Sep 29 21:21:41 2019
+++ src/sys/dev/ic/ahcisata_core.c Sun Sep 29 21:25:08 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: ahcisata_core.c,v 1.76 2019/09/29 21:21:41 jakllsch Exp $ */
+/* $NetBSD: ahcisata_core.c,v 1.77 2019/09/29 21:25:08 jakllsch Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.76 2019/09/29 21:21:41 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.77 2019/09/29 21:25:08 jakllsch Exp $");
#include <sys/types.h>
#include <sys/malloc.h>
@@ -765,6 +765,7 @@ ahci_exec_fis(struct ata_channel *chp, i
else
timeout = timeout / 10;
+ AHCI_CMDTBL_SYNC(sc, achp, slot, BUS_DMASYNC_PREWRITE);
AHCI_CMDH_SYNC(sc, achp, slot,
BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
/* start command */