summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_mcx.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2020-12-27 00:40:32 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2020-12-27 00:40:32 +0000
commit3ed241e67a3b4c4fcc8dfe8c560118e1869e1220 (patch)
treef48dbf978a84317ff26eab9c2b83dbb63ceea892 /sys/dev/pci/if_mcx.c
parent8fa9e74ce4e8ab41373731425954fcfdc9a5bf49 (diff)
do a bus space barrier after arming the eq.
ok jmatthew@
Diffstat (limited to 'sys/dev/pci/if_mcx.c')
-rw-r--r--sys/dev/pci/if_mcx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_mcx.c b/sys/dev/pci/if_mcx.c
index 9e2eea73661..0893d17a8c6 100644
--- a/sys/dev/pci/if_mcx.c
+++ b/sys/dev/pci/if_mcx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mcx.c,v 1.89 2020/12/27 00:21:32 dlg Exp $ */
+/* $OpenBSD: if_mcx.c,v 1.90 2020/12/27 00:40:31 dlg Exp $ */
/*
* Copyright (c) 2017 David Gwynne <dlg@openbsd.org>
@@ -6890,7 +6890,7 @@ mcx_arm_eq(struct mcx_softc *sc, struct mcx_eq *eq, int uar)
val = (eq->eq_n << 24) | (eq->eq_cons & 0xffffff);
mcx_wr(sc, offset, val);
- /* barrier? */
+ mcx_bar(sc, offset, sizeof(val), BUS_SPACE_BARRIER_WRITE);
}
static struct mcx_eq_entry *