From: Anshuman Khandual <anshuman.khandual@arm.com>
To: linux-arm-kernel@lists.infradead.org
Cc: Anshuman Khandual <anshuman.khandual@arm.com>,
David Hildenbrand <david@kernel.org>,
Mike Rapoport <rppt@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Lorenzo Stoakes <ljs@kernel.org>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: [PATCH V2 0/2] arm64/mm: Standardize printing for pgtable entries
Date: Wed, 9 Sep 2026 09:30:03 +0530 [thread overview]
Message-ID: <20260909040005.4148136-1-anshuman.khandual@arm.com> (raw)
Standardize printing for pgtable entries using recently introduced generic
helper ptval_bytes_to_hex_str() in core MM which automatically enables 128
bits entries when added later.
But first move __check_safe_pte_update() outside <asm/pgtable.h> to avoid
a cyclic dependency while accessing these afore mentioned core MM helpers
defined in <linux/pgtable.h>. This replaces the original page table entry
print standardisation proposal which was part of the D128 series.
https://lore.kernel.org/linux-mm/20260729122452.3797443-11-anshuman.khandual@arm.com/
This series applies on v7.3-rc2 but after the following.
https://lore.kernel.org/linux-mm/20260831054331.625505-1-anshuman.khandual@arm.com/
Changes in V2:
- Moved __check_safe_pte_update() inside #ifdef CONFIG_DEBUG_VM
- Added empty stub for __check_safe_pte_update() when !CONFIG_DEBUG_VM
- Dropped IS_ENABLED(CONFIG_DEBUG_VM) from __check_safe_pte_update()
- Replaced pgtable level specific strings with pxd_str[] in show_pte()
Changes in V1:
https://lore.kernel.org/all/20260901065454.1906343-1-anshuman.khandual@arm.com/
Cc: David Hildenbrand (Arm) <david@kernel.org>
Cc: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Lorenzo Stoakes <ljs@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mm@kvack.org
Anshuman Khandual (2):
arm64/mm: Move __check_safe_pte_update()
arm64/mm: Standardize printing for pgtable entries
arch/arm64/include/asm/pgtable.h | 49 ++++----------------------------
arch/arm64/mm/fault.c | 16 +++++++----
arch/arm64/mm/mmu.c | 48 +++++++++++++++++++++++++++++++
3 files changed, 64 insertions(+), 49 deletions(-)
--
2.43.0
next reply other threads:[~2026-09-09 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 4:00 Anshuman Khandual [this message]
2026-09-09 4:00 ` [PATCH V2 1/2] arm64/mm: Move __check_safe_pte_update() Anshuman Khandual
2026-09-09 15:12 ` David Hildenbrand (Arm)
2026-09-10 4:05 ` Anshuman Khandual
2026-09-09 4:00 ` [PATCH V2 2/2] arm64/mm: Standardize printing for pgtable entries Anshuman Khandual
2026-09-09 15:14 ` David Hildenbrand (Arm)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260909040005.4148136-1-anshuman.khandual@arm.com \
--to=anshuman.khandual@arm.com \
--cc=akpm@linux-foundation.org \
--cc=catalin.marinas@arm.com \
--cc=david@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=rppt@kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox