Re: [v2 PATCH] arm64: mm: show direct mapping use in /proc/meminfo

Catalin Marinas
2025-11-19T19:14:49Z

From: Catalin Marinas <catalin.marinas@arm.com>

On Thu, 23 Oct 2025 14:52:10 -0700, Yang Shi wrote:
> Since commit a166563e7ec3 ("arm64: mm: support large block mapping when
> rodata=full"), the direct mapping may be split on some machines instead
> keeping static since boot. It makes more sense to show the direct mapping
> use in /proc/meminfo than before.
> This patch will make /proc/meminfo show the direct mapping use like the
> below (4K base page size):
> DirectMap4K: 94792 kB
> DirectMap64K: 134208 kB
> DirectMap2M: 1173504 kB
> DirectMap32M: 5636096 kB
> DirectMap1G: 529530880 kB
>
> [...]

It matches Documentation/filesystems/proc.rst, so I'm fine to align
arm64 with it.

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: mm: show direct mapping use in /proc/meminfo
https://git.kernel.org/arm64/c/1102778cb023

--
Catalin