Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Add missing bus_dmamap_sync() in bge_intr(). The...
details: https://anonhg.NetBSD.org/src/rev/9c238b70df5d
branches: trunk
changeset: 786729:9c238b70df5d
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed May 08 03:13:35 2013 +0000
description:
Add missing bus_dmamap_sync() in bge_intr(). The status word is in DMAed area.
Same as *BSDs.
diffstat:
sys/dev/pci/if_bge.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 84c567868c04 -r 9c238b70df5d sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c Wed May 08 00:57:24 2013 +0000
+++ b/sys/dev/pci/if_bge.c Wed May 08 03:13:35 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bge.c,v 1.239 2013/05/05 11:28:34 msaitoh Exp $ */
+/* $NetBSD: if_bge.c,v 1.240 2013/05/08 03:13:35 msaitoh Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.239 2013/05/05 11:28:34 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.240 2013/05/08 03:13:35 msaitoh Exp $");
#include "vlan.h"
@@ -4491,6 +4491,10 @@
*/
/* read status word from status block */
+ bus_dmamap_sync(sc->bge_dmatag, sc->bge_ring_map,
+ offsetof(struct bge_ring_data, bge_status_block),
+ sizeof (struct bge_status_block),
+ BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
statusword = sc->bge_rdata->bge_status_block.bge_status;
if ((statusword & BGE_STATFLAG_UPDATED) ||
Home |
Main Index |
Thread Index |
Old Index