Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144645340
D13029.1776002301.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1021 B
Referenced Files
None
Subscribers
None
D13029.1776002301.diff
View Options
Index: head/sys/arm/allwinner/if_awg.c
===================================================================
--- head/sys/arm/allwinner/if_awg.c
+++ head/sys/arm/allwinner/if_awg.c
@@ -169,6 +169,7 @@
bus_dma_tag_t buf_tag;
struct awg_bufmap buf_map[TX_DESC_COUNT];
u_int cur, next, queued;
+ u_int segs;
};
struct awg_rxring {
@@ -399,8 +400,6 @@
} else {
status = TX_DESC_CTL;
size = flags | len;
- if ((index & (awg_tx_interval - 1)) == 0)
- size |= TX_INT_CTL;
++sc->tx.queued;
}
@@ -449,8 +448,18 @@
for (cur = index, i = 0; i < nsegs; i++) {
sc->tx.buf_map[cur].mbuf = (i == 0 ? m : NULL);
- if (i == nsegs - 1)
+ sc->tx.segs++;
+ if (i == nsegs - 1) {
flags |= TX_LAST_DESC;
+ /*
+ * Can only request TX completion
+ * interrupt on last descriptor.
+ */
+ if (sc->tx.segs >= awg_tx_interval) {
+ sc->tx.segs = 0;
+ flags |= TX_INT_CTL;
+ }
+ }
awg_setup_txdesc(sc, cur, flags, segs[i].ds_addr,
segs[i].ds_len);
flags &= ~TX_FIR_DESC;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 12, 1:58 PM (26 m, 31 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28331550
Default Alt Text
D13029.1776002301.diff (1021 B)
Attached To
Mode
D13029: if_awg: only request completion interrupt on the last descriptor of a tx frame
Attached
Detach File
Event Timeline
Log In to Comment