Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150125231
D56144.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
728 B
Referenced Files
None
Subscribers
None
D56144.diff
View Options
diff --git a/sys/dev/dpaa2/dpaa2_ni.c b/sys/dev/dpaa2/dpaa2_ni.c
--- a/sys/dev/dpaa2/dpaa2_ni.c
+++ b/sys/dev/dpaa2/dpaa2_ni.c
@@ -3004,6 +3004,9 @@
goto err_unload;
}
+ bus_dmamap_sync(buf->dmat, buf->dmap, BUS_DMASYNC_PREWRITE);
+ bus_dmamap_sync(sgt->dmat, sgt->dmap, BUS_DMASYNC_PREWRITE);
+
/* TODO: Enqueue several frames in a single command */
for (int i = 0; i < DPAA2_NI_ENQUEUE_RETRIES; i++) {
/* TODO: Return error codes instead of # of frames */
@@ -3013,9 +3016,6 @@
}
}
- bus_dmamap_sync(buf->dmat, buf->dmap, BUS_DMASYNC_PREWRITE);
- bus_dmamap_sync(sgt->dmat, sgt->dmap, BUS_DMASYNC_PREWRITE);
-
if (rc != 1) {
fq->chan->tx_dropped++;
if_inc_counter(sc->ifp, IFCOUNTER_OERRORS, 1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 30, 2:38 PM (7 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30585715
Default Alt Text
D56144.diff (728 B)
Attached To
Mode
D56144: dpaa2: Perform bus_dma pre-write sync before enqueue operation
Attached
Detach File
Event Timeline
Log In to Comment