Add COHERENT to descriptor mem allocation for the

benefit of ARM (request from Olivier Houchard), its
a noop on most architectures and goodness on those
that use it.
This commit is contained in:
Jack F Vogel 2007-11-28 23:04:11 +00:00
parent ee8a5fa77d
commit 2635265800

View File

@ -3113,7 +3113,7 @@ em_dma_malloc(struct adapter *adapter, bus_size_t size,
}
error = bus_dmamem_alloc(dma->dma_tag, (void**) &dma->dma_vaddr,
BUS_DMA_NOWAIT, &dma->dma_map);
BUS_DMA_NOWAIT | BUS_DMA_COHERENT, &dma->dma_map);
if (error) {
device_printf(adapter->dev,
"%s: bus_dmamem_alloc(%ju) failed: %d\n",