[PATCH 0/4] Fix potential issues with x86 PCM SG-buffer

Takashi Iwai tiwai at suse.de
Mon Jun 15 18:00:41 CEST 2020


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(-)

-- 
2.16.4



More information about the Alsa-devel mailing list