Page MenuHomeFreeBSD

D28775.diff
No OneTemporary

D28775.diff

Index: sys/dev/cadence/if_cgem.c
===================================================================
--- sys/dev/cadence/if_cgem.c
+++ sys/dev/cadence/if_cgem.c
@@ -443,17 +443,13 @@
return (err);
/*
- * Allocate DMA memory in non-cacheable space. We allocate transmit,
- * receive and null descriptor queues all at once because the
- * hardware only provides one register for the upper 32 bits of
- * rx and tx descriptor queues hardware addresses.
+ * Allocate DMA memory. We allocate transmit, receive and null
+ * descriptor queues all at once because the hardware only provides
+ * one register for the upper 32 bits of rx and tx descriptor queues
+ * hardware addresses.
*/
err = bus_dmamem_alloc(sc->desc_dma_tag, (void **)&sc->rxring,
-#ifdef __arm__
BUS_DMA_NOWAIT | BUS_DMA_COHERENT | BUS_DMA_ZERO,
-#else
- BUS_DMA_NOWAIT | BUS_DMA_NOCACHE | BUS_DMA_ZERO,
-#endif
&sc->rxring_dma_map);
if (err)
return (err);

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 4:29 PM (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14538528
Default Alt Text
D28775.diff (962 B)

Event Timeline