Re: [PATCH] ALSA: memalloc: Allocate more contiguous pages for fallback case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>

Br, Kai



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux