]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: memalloc: Revive x86-specific WC page allocations again
authorTakashi Iwai <tiwai@suse.de>
Sun, 21 Aug 2022 15:59:11 +0000 (17:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Aug 2022 11:01:27 +0000 (13:01 +0200)
commitb04e1237923ac8a5db13a2132126d167f1dbeb92
treee4181992969524d5be90e89c082410e45ed50514
parentab10ff5e8831a0b67cd316b656c1de8c860c2d7c
ALSA: memalloc: Revive x86-specific WC page allocations again

We dropped the x86-specific hack for WC-page allocations with a hope
that the standard dma_alloc_wc() works nowadays.  Alas, it doesn't,
and we need to take back some workaround again, but in a different
form, as the previous one was broken for some platforms.

This patch re-introduces the x86-specific WC-page allocations, but it
uses rather the manual page allocations instead of
dma_alloc_coherent().  The use of dma_alloc_coherent() was also a
potential problem in the recent addition of the fallback allocation
for noncontig pages, and this patch eliminates both at once.

Fixes: f8196364a13a ("ALSA: memalloc: Drop x86-specific hack for WC allocations")
Cc: <stable@vger.kernel.org>
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=216363
Link: https://lore.kernel.org/r/20220821155911.10715-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/memalloc.c