svn commit: r219995 - stable/8/sys/dev/sound/pcm

Marius Strobl marius at
Fri Mar 25 12:53:09 UTC 2011

Author: marius
Date: Fri Mar 25 12:53:09 2011
New Revision: 219995

  MFC: r219548
  Allocate the sound buffer DMA memory coherent. While NetBSD typically
  also does this for sound drivers it's probably not necessary for all
  combinations of controllers and drivers. However, given that our sound
  drivers completely lack bus_dmamap_sync(9) calls this at least serves
  as a workaround when enabling use of the IOMMU streaming buffers on
  sparc64 and generally for arm and mips.

Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/dev/sound/pcm/buffer.c
--- stable/8/sys/dev/sound/pcm/buffer.c	Fri Mar 25 12:50:50 2011	(r219994)
+++ stable/8/sys/dev/sound/pcm/buffer.c	Fri Mar 25 12:53:09 2011	(r219995)
@@ -93,7 +93,7 @@ sndbuf_alloc(struct snd_dbuf *b, bus_dma
 	int ret;
 	b->dmatag = dmatag;
-	b->dmaflags = dmaflags | BUS_DMA_NOWAIT;
+	b->dmaflags = dmaflags | BUS_DMA_NOWAIT | BUS_DMA_COHERENT;
 	b->maxsize = size;
 	b->bufsize = b->maxsize;
 	b->buf_addr = 0;

More information about the svn-src-stable-8 mailing list