Skip to content

Fix potential issues with x86 PCM SG-buffer

Takashi Iwai alsa-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ALSA: pcm: Use dma_mmap_coherent() on x86, toosound/core/pcm_native.c+0 -20 replies
2/4ALSA: memalloc: Initialize all fields of snd_dma_buffer properlysound/core/memalloc.c+3 -40 replies
3/4ALSA: memalloc: Make SG-buffer helper usable for continuous buffer, tooinclude/sound/memalloc.h sound/core/sgbuf.c+11 -10 replies
4/4ALSA: pcm: Use SG-buffer only when direct DMA is availablesound/core/pcm_memory.c+13 -00 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/4] Fix potential issues with x86 PCM SG-buffer

Hi,

it turned out that x86 SG-pages that are used for PCM buffers aren't safe on x86 in all cases, and we need some limitation and workarounds for non-standard configurations. This patch set is an attempt to paper over it in a minimalistic way.

Takashi

===

Takashi Iwai (4):
ALSA: pcm: Use dma_mmap_coherent() on x86, too
ALSA: memalloc: Initialize all fields of snd_dma_buffer properly
ALSA: memalloc: Make SG-buffer helper usable for continuous buffer,
too
ALSA: pcm: Use SG-buffer only when direct DMA is available

 include/sound/memalloc.h |  9 ++++++++-
 sound/core/memalloc.c    |  7 +++----
 sound/core/pcm_memory.c  | 13 +++++++++++++
 sound/core/pcm_native.c  |  2 --
 sound/core/sgbuf.c       |  3 +++
 5 files changed, 27 insertions(+), 7 deletions(-)
Signature · 1 line
2.16.4