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:
parent
769c37d0ba
commit
d5814ba15f
@ -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,
|
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) {
|
if (error) {
|
||||||
device_printf(adapter->dev,
|
device_printf(adapter->dev,
|
||||||
"%s: bus_dmamem_alloc(%ju) failed: %d\n",
|
"%s: bus_dmamem_alloc(%ju) failed: %d\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user