Revert "ALSA: memalloc: Convert x86 SG-buffer handling with non-contiguous type"
authorTakashi Iwai <tiwai@suse.de>
Thu, 4 Nov 2021 18:08:46 +0000 (19:08 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 4 Nov 2021 21:10:03 +0000 (22:10 +0100)
commit7599acb7b9a1e33a410e33f13791647fba94e84f
tree0b2cbb3a200b7f0ec9044c1c8245f29ba8381f02
parent2a5bb694488bb6593066d46881bfd9d07edd1628
Revert "ALSA: memalloc: Convert x86 SG-buffer handling with non-contiguous type"

This reverts commit 2d9ea39917a4e4293bc2caea902c7059a330b611.

We've got a regression report showing that the audio got broken the
device over AMD IOMMU.  The conversion assumed the wrong pointer /
page mapping for the indirect mapping case, and we need to correct
this urgently, so let's revert it for now.

Fixes: 2d9ea39917a4 ("ALSA: memalloc: Convert x86 SG-buffer handling with non-contiguous type")
Reported-and-tested-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
Link: https://lore.kernel.org/r/20211104180846.16340-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/memalloc.h
sound/core/Makefile
sound/core/memalloc.c
sound/core/sgbuf.c [new file with mode: 0644]