From 4a5c3abbcc12bb898ce51a51fb63cc1562f2875b Mon Sep 17 00:00:00 2001 From: jmcneill Date: Fri, 21 Aug 2015 20:12:29 +0000 Subject: [PATCH] No need to BUS_DMASYNC_PREREAD the transmit data buffer. Fixes "NFS writes being corrupted?" issue on ODROID-C1 as seen on port-arm. --- sys/dev/ic/dwc_gmac.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/dwc_gmac.c b/sys/dev/ic/dwc_gmac.c index cbeae3d72c9b..cce240f94a3f 100644 --- a/sys/dev/ic/dwc_gmac.c +++ b/sys/dev/ic/dwc_gmac.c @@ -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 -__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 @@ dwc_gmac_queue(struct dwc_gmac_softc *sc, struct mbuf *m0) 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 =