1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174060

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",