On Mon, Dec 8, 2025 at 5:41 PM gao xu <[email protected]> wrote:
>
> commit 04c7adb5871a ("dma-buf: system_heap: use larger contiguous mappings
> instead of per-page mmap") facilitates the use of PTE_CONT. The system_heap
> allocates pages of order 4 and 8 that meet the alignment requirements for
> PTE_CONT. enabling PTE_CONT for larger contiguous mappings.

Unfortunately, we don't have pte_cont for architectures other than
AArch64. On the other hand, AArch64 isn't automatically mapping
cont_pte for mmap. It might be better if this were done
automatically by the ARM code.

Ryan(Cced) is the expert on automatically setting cont_pte for
contiguous mapping, so let's ask for some advice from Ryan.

>
> After applying this patch, TLB misses are reduced by approximately 5% when
> opening the camera on Android systems.
>
> Signed-off-by: gao xu <[email protected]>
> ---

Thanks
Barry

Reply via email to