]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
arm64/mm: Implement pXX_leaf_size() support
authorPeter Zijlstra <peterz@infradead.org>
Fri, 13 Nov 2020 10:46:06 +0000 (11:46 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 3 Dec 2020 09:14:51 +0000 (10:14 +0100)
commitd55863db1dfec8845067f5625f1b0ab18c8948be
tree4513c479833b60a7c90be07c3c724ce7f100f774
parent8af26be062721e52eba1550caf50b712f774c5fd
arm64/mm: Implement pXX_leaf_size() support

ARM64 has non-pagetable aligned large page support with PTE_CONT, when
this bit is set the page is part of a super-page. Match the hugetlb
code and support these super pages for PTE and PMD levels.

This enables PERF_SAMPLE_{DATA,CODE}_PAGE_SIZE to report accurate
pagetable leaf sizes.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lkml.kernel.org/r/20201126125747.GG2414@hirez.programming.kicks-ass.net
arch/arm64/include/asm/pgtable.h