From 5adfa739305e43c708a6a6ca4e0a27564a526063 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 2 Mar 2006 14:06:38 +0000 Subject: [PATCH] Use BUS_DMA_COHERENT. --- sys/arm/xscale/i80321/i80321_aau.c | 2 +- sys/arm/xscale/i80321/i80321_dma.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arm/xscale/i80321/i80321_aau.c b/sys/arm/xscale/i80321/i80321_aau.c index 38c4e95f5ada..f72a7c903cb0 100644 --- a/sys/arm/xscale/i80321/i80321_aau.c +++ b/sys/arm/xscale/i80321/i80321_aau.c @@ -122,7 +122,7 @@ i80321_aau_attach(device_t dev) &Giant, &softc->dmatag)) panic("Couldn't create a dma tag"); if (bus_dmamem_alloc(softc->dmatag, (void **)&aaudescs, - BUS_DMA_NOWAIT, &softc->aauring[0].map)) + BUS_DMA_NOWAIT | BUS_DMA_COHERENT, &softc->aauring[0].map)) panic("Couldn't alloc dma memory"); for (int i = 0; i < AAU_RING_SIZE; i++) { diff --git a/sys/arm/xscale/i80321/i80321_dma.c b/sys/arm/xscale/i80321/i80321_dma.c index 3bc09d3932f9..4ec6d1642eed 100644 --- a/sys/arm/xscale/i80321/i80321_dma.c +++ b/sys/arm/xscale/i80321/i80321_dma.c @@ -127,7 +127,7 @@ i80321_dma_attach(device_t dev) panic("Couldn't create a dma tag"); DMA_REG_WRITE(softc, 0, 0); if (bus_dmamem_alloc(softc->dmatag, (void **)&dmadescs, - BUS_DMA_NOWAIT, &softc->dmaring[0].map)) + BUS_DMA_NOWAIT | BUS_DMA_COHERENT, &softc->dmaring[0].map)) panic("Couldn't alloc dma memory"); for (int i = 0; i < DMA_RING_SIZE; i++) { if (i > 0)