aboutsummaryrefslogtreecommitdiffstats
path: root/sound/hda/hdac_sysfs.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-11-10 14:22:16 +0100
committerTakashi Iwai <tiwai@suse.de>2022-11-10 14:23:03 +0100
commit9736a325137b62499d2b4be3fc2d742b131f75da (patch)
treef8e1db0661d499b9ea02473688ef19cc8463acb3 /sound/hda/hdac_sysfs.c
parentALSA: usb-audio: add quirk to fix Hamedal C20 disconnect issue (diff)
downloadlinux-dev-9736a325137b62499d2b4be3fc2d742b131f75da.tar.xz
linux-dev-9736a325137b62499d2b4be3fc2d742b131f75da.zip
ALSA: memalloc: Don't fall back for SG-buffer with IOMMU
When the non-contiguous page allocation for SG buffer allocation fails, the memalloc helper tries to fall back to the old page allocation methods. This would, however, result in the bogus page addresses when IOMMU is enabled. Usually in such a case, the fallback allocation should fail as well, but occasionally it succeeds and hitting a bad access. The fallback was thought for non-IOMMU case, and as the error from dma_alloc_noncontiguous() with IOMMU essentially implies a fatal memory allocation error, we should return the error straightforwardly without fallback. This avoids the corner case like the above. The patch also renames the local variable "dma_ops" with snd_ prefix for avoiding the name conflict. Fixes: a8d302a0b770 ("ALSA: memalloc: Revive x86-specific WC page allocations again") Reported-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/alpine.DEB.2.22.394.2211041541090.3532114@eliteleevi.tm.intel.com Link: https://lore.kernel.org/r/20221110132216.30605-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions