kernel_optimize_test/sound/hda
Takashi Iwai f8e4ae10de ALSA: hda: Allow setting preallocation again for x86
The commit c31427d0d2 ("ALSA: hda: No preallocation on x86
platforms") changed CONFIG_SND_HDA_PREALLOC_SIZE setup and its default
to zero for x86, as the preallocation should work almost all cases.
However, this expectation was too naive; some applications try to
allocate as the max buffer size as possible, and it leads to the
memory exhaustion.  More badly, the commit changed the kconfig no
longer adjustable for x86, so you can't fix it statically (although it
can be still adjusted via procfs).

So, practically seen, it's more recommended to set a reasonable limit
for x86, too.  This patch follows to that experience, and changes the
default to 2048 and allow the kconfig adjustable again.

Fixes: c31427d0d2 ("ALSA: hda: No preallocation on x86 platforms")
Cc: <stable@vger.kernel.org>
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207223
Link: https://lore.kernel.org/r/20200413201919.24241-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-04-13 22:22:28 +02:00
..
ext ASoC: Fixes for v5.6 2020-02-18 13:33:39 +01:00
array.c
hda_bus_type.c
hdac_bus.c ALSA: hda: Update kernel-doc function parameter descriptions 2020-01-14 07:40:37 +01:00
hdac_component.c ALSA: hda: Update kernel-doc function parameter descriptions 2020-01-14 07:40:37 +01:00
hdac_controller.c ALSA: hda: Update kernel-doc function parameter descriptions 2020-01-14 07:40:37 +01:00
hdac_device.c ALSA: hda: Use scnprintf() for string truncation 2020-03-13 15:59:04 +01:00
hdac_i915.c
hdac_regmap.c ALSA: hda: Manage concurrent reg access more properly 2020-01-13 13:40:41 +01:00
hdac_stream.c ALSA: hda: Reset stream if DMA RUN bit not cleared 2020-01-28 10:29:41 +01:00
hdac_sysfs.c
hdmi_chmap.c ALSA: hda: Use scnprintf() for printing texts for sysfs/procfs 2020-02-18 10:15:41 +01:00
intel-dsp-config.c
intel-nhlt.c ALSA: hda: More constifications 2020-01-05 16:14:32 +01:00
Kconfig ALSA: hda: Allow setting preallocation again for x86 2020-04-13 22:22:28 +02:00
local.h
Makefile
trace.c
trace.h