Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Use AHCI_CMDTBL_SYNC in ahci_exec_fis() to ensure...



details:   https://anonhg.NetBSD.org/src/rev/06d5b964a37d
branches:  trunk
changeset: 454852:06d5b964a37d
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Sep 29 21:25:08 2019 +0000

description:
Use AHCI_CMDTBL_SYNC in ahci_exec_fis() to ensure hardware sees the
command FIS.

diffstat:

 sys/dev/ic/ahcisata_core.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r a07ecf555bf5 -r 06d5b964a37d sys/dev/ic/ahcisata_core.c
--- a/sys/dev/ic/ahcisata_core.c        Sun Sep 29 21:21:41 2019 +0000
+++ b/sys/dev/ic/ahcisata_core.c        Sun Sep 29 21:25:08 2019 +0000
@@ -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 @@
        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 */



Home | Main Index | Thread Index | Old Index