[PATCH] dma-buf: heaps: Set allocation orders for larger page sizes

John Stultz jstultz at google.com
Tue Apr 15 20:14:32 UTC 2025


On Tue, Apr 15, 2025 at 10:20 AM Juan Yescas <jyescas at google.com> wrote:
>
> This change sets the allocation orders for the different page sizes
> (4k, 16k, 64k) based on PAGE_SHIFT. Before this change, the orders
> for large page sizes were calculated incorrectly, this caused system
> heap to allocate from 2% to 4% more memory on 16KiB page size kernels.
>
> This change was tested on 4k/16k page size kernels.
>
> Signed-off-by: Juan Yescas <jyescas at google.com>

Seems reasonable to me.
Acked-by: John Stultz <jstultz at google.com>

thanks
-john


More information about the dri-devel mailing list