14 Nov
2022
14 Nov
'22
7:18 p.m.
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@linux.intel.com
Br, Kai