[PATCH] ALSA: memalloc: Allocate more contiguous pages for fallback case
Kai Vehmanen
kai.vehmanen at linux.intel.com
Mon Nov 14 20:18:56 CET 2022
Hi,
On Mon, 14 Nov 2022, Takashi Iwai wrote:
> free page from the top to the bottom in the zone. The end result
> looks as if non-contiguous (although it actually is). What's worth is
> that it leads to an overflow of BDL entries for HD-audio.
typo I'm guessing: "What's worse is"
> For avoiding such a problem, this patch modifies the allocation code
> slightly; now it tries to allocate the larger contiguous chunks as
> much as possible, then reduces to the smaller chunks only if the
> allocation failed -- a similar strategy as the existing
> snd_dma_alloc_pages_fallback() function.
Ack, this seems like a good change. I can see the BDL entries could
run out in some cases with the old code.
Reviewed-by: Kai Vehmanen <kai.vehmanen at linux.intel.com>
Br, Kai
More information about the Alsa-devel
mailing list