summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorjakllsch <jakllsch@NetBSD.org>2019-09-29 21:25:08 +0000
committerjakllsch <jakllsch@NetBSD.org>2019-09-29 21:25:08 +0000
commitca4a4d5b214da089323909a7f287de4a8fec5fe9 (patch)
treec5f6c36095e4e1cfef8cc18085abb7a13fee4ae6 /sys/dev
parent1641ca6505a65d0a33a7090dd1ffe70d552cfb9a (diff)
Use AHCI_CMDTBL_SYNC in ahci_exec_fis() to ensure hardware sees the
command FIS.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/ahcisata_core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/ahcisata_core.c b/sys/dev/ic/ahcisata_core.c
index fc07bd45bd0..557daadfeea 100644
--- a/sys/dev/ic/ahcisata_core.c
+++ b/sys/dev/ic/ahcisata_core.c
@@ -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, int timeout, int flags, int slot)
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 */