]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc/64s/hash: Update directMap page counters for Hash
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>
Thu, 30 Oct 2025 14:57:32 +0000 (20:27 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 18 Nov 2025 07:05:53 +0000 (12:35 +0530)
commitb296fda58d1d095c95c8207b09856b2ceafa1397
treed6f2b9d8e55059375d307c93c53b98fefe346b38
parentb80691e25ec632d020b90eb9de3af0f956dff0a0
powerpc/64s/hash: Update directMap page counters for Hash

Update the directMap page counters for Hash. Hash by default always uses
mmu_linear_psize only, for it's directMap. However, once the kernel has
booted and the dmesg log is wrapped over there is no way of knowing the
kernel linear pagesize with Hash mmu. Features like debug_page_alloc can
make mmu_linear_psize to be PAGE_SIZE instead of PMD / PUD mappings. It
would be easier if we have this info printed in proc meminfo similar to
Radix for debugging purposes.

Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/208e6f946d2ba9c1e2b8b4f665728abe5c891e7c.1761834163.git.ritesh.list@gmail.com
arch/powerpc/mm/book3s64/hash_utils.c