Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178234172
D56144.1796301872.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
728 B
Referenced Files
None
Subscribers
None
D56144.1796301872.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
Thu, Dec 3, 12:44 PM (15 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42181709
Default Alt Text
D56144.1796301872.diff (728 B)
Attached To
Mode
D56144: dpaa2: Perform bus_dma pre-write sync before enqueue operation
Attached
Detach File
Event Timeline