NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-evbarm/53317: awge(4) with static address doesn't work
The following reply was made to PR port-evbarm/53317; it has been noted by GNATS.
From: Aymeric Vincent <aymericvincent%free.fr@localhost>
To: uwe%NetBSD.org@localhost
Cc: port-evbarm-maintainer%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, gnats-bugs%NetBSD.org@localhost
Subject: Re: port-evbarm/53317: awge(4) with static address doesn't work
Date: Sun, 27 May 2018 11:30:21 +0200
Hi,
> If I configure static address, then interface doesn't send/receive
> packets UNTIL the first time you call ifconfig awge0. At that point
> DAD happens and the interface comes to life.
I remember needing the following patch to make the awge of the DE0
nanosoc work. Would it help in your situation?
diff --git a/sys/dev/ic/dwc_gmac.c b/sys/dev/ic/dwc_gmac.c
index ce5635db0d3f..aed5844e2f21 100644
--- a/sys/dev/ic/dwc_gmac.c
+++ b/sys/dev/ic/dwc_gmac.c
@@ -999,6 +999,9 @@ dwc_gmac_queue(struct dwc_gmac_softc *sc, struct mbuf *m0)
sc->sc_txq.t_desc[first].ddesc_status =
htole32(DDESC_STATUS_OWNEDBYDEV);
+ bus_dmamap_sync(sc->sc_dmat, map, 0, map->dm_mapsize,
+ BUS_DMASYNC_PREWRITE);
+
return 0;
}
Regards,
Aymeric
Home |
Main Index |
Thread Index |
Old Index