Module Name:    src
Committed By:   msaitoh
Date:           Wed May  8 03:13:36 UTC 2013

Modified Files:
        src/sys/dev/pci: if_bge.c

Log Message:
 Add missing bus_dmamap_sync() in bge_intr(). The status word is in DMAed area.
Same as *BSDs.


To generate a diff of this commit:
cvs rdiff -u -r1.239 -r1.240 src/sys/dev/pci/if_bge.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/pci/if_bge.c
diff -u src/sys/dev/pci/if_bge.c:1.239 src/sys/dev/pci/if_bge.c:1.240
--- src/sys/dev/pci/if_bge.c:1.239	Sun May  5 11:28:34 2013
+++ src/sys/dev/pci/if_bge.c	Wed May  8 03:13:35 2013
@@ -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 @@ bge_intr(void *xsc)
 	 */
 
 	/* 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) ||

Reply via email to