Skip to content

ALSA fixes for non-coherent ppc32

Takashi Iwai linuxppc-dev 1 version In review

Get series with b4
b4 am s5h1w2vc9js.wl%[email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ppc: Add dma_mmap_coherent() for PPC32include/asm-powerpc/dma-mapping.h+18 -00 replies
2/3ALSA: Fix mapping of DMA bufferssound/core/Kconfig sound/core/pcm_native.c+35 -140 replies
3/3ALSA: Fix SG-buffer DMA with non-coherent architecturesinclude/sound/memalloc.h include/sound/pcm.h sound/core/Makefile +14 more+123 -1040 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] ALSA fixes for non-coherent ppc32

Hi,

I've tried to renew the fixes of ALSA issues about non-coherent DMA memories. The last patch worked for SG-buffers somehow but would result in a problem if many pages are allocated because of dma_alloc_coherent() handling. Now, I chose a more simpler
workaround: the SG-buffers are handled as simple continuous buffers.

This time I split the patches to several parts. The first patch contains a very lazy dma_mmap_coherent() implementation for ppc32. The next patch adds the call of dma_mmap_coherent() for the default mmap of ALSA PCM. And the last one is to add the conversion of SG-buffer handling as above.

The patches are created against the latest ALSA tree, and the last patch won't be applicable fully to 2.6.26-rc6. But, it's only for snd-hda-intel and there is no PPC32 hardware supporting this, AFAIK. So just ignore the reject.

The patches are found also on my git tree, dma-fix branch of

    git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git

Any comments and test reports are appreciated, especially about dma_mmap_coherent() addition.

thanks,

Takashi