From: Takashi Iwai <tiwai@suse.de>
To: alsa-devel@alsa-project.org
Subject: [PATCH 0/4] Fix potential issues with x86 PCM SG-buffer
Date: Mon, 15 Jun 2020 18:00:41 +0200 [thread overview]
Message-ID: <20200615160045.2703-1-tiwai@suse.de> (raw)
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
next reply other threads:[~2020-06-15 16:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-15 16:00 Takashi Iwai [this message]
2020-06-15 16:00 ` [PATCH 1/4] ALSA: pcm: Use dma_mmap_coherent() on x86, too Takashi Iwai
2020-06-15 16:00 ` [PATCH 2/4] ALSA: memalloc: Initialize all fields of snd_dma_buffer properly Takashi Iwai
2020-06-15 16:00 ` [PATCH 3/4] ALSA: memalloc: Make SG-buffer helper usable for continuous buffer, too Takashi Iwai
2020-06-15 16:00 ` [PATCH 4/4] ALSA: pcm: Use SG-buffer only when direct DMA is available Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200615160045.2703-1-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.