Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic No need to BUS_DMASYNC_PREREAD the transmit data ...



details:   https://anonhg.NetBSD.org/src/rev/225262d8a4c0
branches:  trunk
changeset: 340083:225262d8a4c0
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Aug 21 20:12:29 2015 +0000

description:
No need to BUS_DMASYNC_PREREAD the transmit data buffer. Fixes "NFS writes
being corrupted?" issue on ODROID-C1 as seen on port-arm.

diffstat:

 sys/dev/ic/dwc_gmac.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 62ae56725cc9 -r 225262d8a4c0 sys/dev/ic/dwc_gmac.c
--- a/sys/dev/ic/dwc_gmac.c     Fri Aug 21 17:08:11 2015 +0000
+++ b/sys/dev/ic/dwc_gmac.c     Fri Aug 21 20:12:29 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac.c,v 1.33 2015/06/12 11:54:39 tnn Exp $ */
+/* $NetBSD: dwc_gmac.c,v 1.34 2015/08/21 20:12:29 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.33 2015/06/12 11:54:39 tnn Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.34 2015/08/21 20:12:29 jmcneill Exp $");
 
 /* #define     DWC_GMAC_DEBUG  1 */
 
@@ -917,7 +917,7 @@
        data->td_active = map;
 
        bus_dmamap_sync(sc->sc_dmat, map, 0, map->dm_mapsize,
-           BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE);
+           BUS_DMASYNC_PREWRITE);
 
        /* Pass first to device */
        sc->sc_txq.t_desc[first].ddesc_status =



Home | Main Index | Thread Index | Old Index