]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: memalloc: Use DMA API for x86 WC page allocations, too
authorTakashi Iwai <tiwai@suse.de>
Thu, 1 Aug 2024 06:48:05 +0000 (08:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 1 Aug 2024 10:45:41 +0000 (12:45 +0200)
commit9c27301342a53fdf349e4c630d75c7c12bbbc580
treeb8ab0213a2cb148b8a2503e84bfe42e5f22b11c8
parentfef1ac950c600ba50ef4d65ca03c8dae9be7f9ea
ALSA: memalloc: Use DMA API for x86 WC page allocations, too

The memalloc helper used a house-made code for allocation of WC pages
on x86, since the standard DMA API doesn't cover it well.  Meanwhile,
the manually allocated pages won't work together with IOMMU, resulting
in faults, so we should switch to the DMA API in that case, instead.

This patch tries to switch back to DMA API for WC pages on x86, but
with some additional tweaks that are missing.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=219087
Link: https://patch.msgid.link/20240801064808.31205-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/memalloc.c