Skip to content

arm64/mm: Standardize printing for pgtable entries

Anshuman Khandual linux-arm-kernel linux-mm lkml 3 versions – Applied

Status from this message: [merged mm-stable] arm64-mm-standardize-printing-for-pgtable-entries.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesApplied 2/2
  2. v22 patches 3 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Added tags from David
- Added comments in section closure for CONFIG_DEBUG_VM block

Patches in v3 All 2 applied

#Subject and filesSizeRepliesApplied
1/2arm64/mm: Move __check_safe_pte_update()arch/arm64/include/asm/pgtable.h arch/arm64/mm/mmu.c+49 -441 replyApplied
2/2arm64/mm: Standardize printing for pgtable entriesarch/arm64/mm/fault.c arch/arm64/mm/mmu.c+21 -110 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid Hildenbrand (Arm)Catalin Marinas
SeriesR-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH V3 0/2] arm64/mm: Standardize printing for pgtable entries

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/[email protected]/

This series applies on v7.3-rc3 but after the following.

https://lore.kernel.org/linux-mm/[email protected]/

Changes in V3:

- Added tags from David
- Added comments in section closure for CONFIG_DEBUG_VM block

Changes in V2:

https://lore.kernel.org/all/[email protected]/

- 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/[email protected]/

Cc David Hildenbrand (Arm) <[email protected]>
Cc Mike Rapoport (Microsoft) <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>

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(-)
Signature · 1 line
2.43.0