Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143124660
D8717.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1019 B
Referenced Files
None
Subscribers
None
D8717.diff
View Options
Index: head/sys/dev/iwn/if_iwn.c
===================================================================
--- head/sys/dev/iwn/if_iwn.c
+++ head/sys/dev/iwn/if_iwn.c
@@ -1910,6 +1910,9 @@
goto fail;
}
+ bus_dmamap_sync(ring->data_dmat, data->map,
+ BUS_DMASYNC_PREREAD);
+
/* Set physical address of RX buffer (256-byte aligned). */
ring->desc[i] = htole32(paddr >> 8);
}
@@ -3040,14 +3043,19 @@
if (error != 0 && error != EFBIG) {
panic("%s: could not load old RX mbuf", __func__);
}
+ bus_dmamap_sync(ring->data_dmat, data->map,
+ BUS_DMASYNC_PREREAD);
/* Physical address may have changed. */
ring->desc[ring->cur] = htole32(paddr >> 8);
- bus_dmamap_sync(ring->data_dmat, ring->desc_dma.map,
+ bus_dmamap_sync(ring->desc_dma.tag, ring->desc_dma.map,
BUS_DMASYNC_PREWRITE);
counter_u64_add(ic->ic_ierrors, 1);
return;
}
+ bus_dmamap_sync(ring->data_dmat, data->map,
+ BUS_DMASYNC_PREREAD);
+
m = data->m;
data->m = m1;
/* Update RX descriptor. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 27, 7:04 AM (13 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28028547
Default Alt Text
D8717.diff (1019 B)
Attached To
Mode
D8717: Fix iwn(4) on ARM: perform BUS_DMASYNC_PREREAD when initializing RX buffer
Attached
Detach File
Event Timeline
Log In to Comment