]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Revert "ALSA: hda: Allow setting preallocation again for x86"
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Thu, 18 Mar 2021 16:06:18 +0000 (17:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 19 Mar 2021 15:55:11 +0000 (16:55 +0100)
commit7da780c467de908b2a03f8b75de66a4a76a614cc
tree8dc43b58b1f0c03dfd7239f73570b7e61d80ebfc
parent74a9b7d02507783242be232e68f695f3830c17a4
ALSA: hda: Revert "ALSA: hda: Allow setting preallocation again for x86"

This reverts commit 834bc4edf093 ("ALSA: hda: Allow setting
preallocation again for x86").

The reverted commit itself is a revert of cb0a2abd5155 ("ALSA: hda: No
preallocation on x86 platforms"). It was needed because HDA allowed very
big allocations, up to 1GB per stream. However as previous commit in
this series changes maximum allowed allocation per stream to 4MB, we can
safely revert it back.

On systems where there are a lot of FrontEnds, when
CONFIG_SND_HDA_PREALLOC_SIZE != 0  ALSA core allocates memory for each
FE, which may cause out of memory problems due to per card limit. Force
config to 0 on X86, so memory will be allocated on as needed basis.

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=201251#c322
Suggested-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20210318160618.2504068-4-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/Kconfig