aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/file2alias.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2022-11-12 08:47:18 +0000
committerTakashi Iwai <[email protected]>2022-11-12 08:48:51 +0000
commit9d8e536d36e75e76614fe09ffab9a1df95b8b666 (patch)
treedfc3999923e3facea7df340060046d41e01dfe15 /scripts/mod/file2alias.c
parentALSA: hda: fix potential memleak in 'add_widget_node' (diff)
downloadkernel-9d8e536d36e75e76614fe09ffab9a1df95b8b666.tar.gz
kernel-9d8e536d36e75e76614fe09ffab9a1df95b8b666.zip
ALSA: memalloc: Try dma_alloc_noncontiguous() at first
The latest fix for the non-contiguous memalloc helper changed the allocation method for a non-IOMMU system to use only the fallback allocator. This should have worked, but it caused a problem sometimes when too many non-contiguous pages are allocated that can't be treated by HD-audio controller. As a quirk workaround, go back to the original strategy: use dma_alloc_noncontiguous() at first, and apply the fallback only when it fails, but only for non-IOMMU case. We'll need a better fix in the fallback code as well, but this workaround should paper over most cases. Fixes: 9736a325137b ("ALSA: memalloc: Don't fall back for SG-buffer with IOMMU") Reported-by: Linus Torvalds <[email protected]> Link: https://lore.kernel.org/r/CAHk-=wgSH5ubdvt76gNwa004ooZAEJL_1Q-Fyw5M2FDdqL==dg@mail.gmail.com Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions