Skip to content

mm: Use pxdp_get() for accessing page table entries

Anshuman Khandual linux-fsdevel linux-m68k linux-mm linux-perf-users lkml llvm oe-kbuild-all 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 26 repliesIn review
  2. v17 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Separated out PUD changes from P4D changes
- Updated the commit message for x86 patch per Dave
- Implemented local variable page table value caching when applicable
- Updated all commit messages regarding local variable caching

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7m68k/mm: Change pmd_val()arch/m68k/include/asm/page.h+1 -14 replies
2/7x86/mm: Drop page table entry address output from pxd_ERROR()arch/x86/include/asm/pgtable-3level.h arch/x86/include/asm/pgtable_64.h+16 -164 replies
3/7mm: Use ptep_get() for accessing PTE entriesinclude/linux/pgtable.h+2 -15 replies
4/7mm: Use pmdp_get() for accessing PMD entriesdrivers/misc/sgi-gru/grufault.c fs/proc/task_mmu.c include/linux/huge_mm.h +25 more+145 -1333 replies
5/7mm: Use pudp_get() for accessing PUD entriesdrivers/misc/sgi-gru/grufault.c fs/userfaultfd.c include/linux/huge_mm.h +23 more+79 -690 replies
6/7mm: Use p4dp_get() for accessing P4D entriesdrivers/misc/sgi-gru/grufault.c fs/userfaultfd.c include/linux/pgtable.h +16 more+45 -390 replies
7/7mm: Use pgdp_get() for accessing PGD entriesdrivers/misc/sgi-gru/grufault.c fs/userfaultfd.c include/linux/mm.h +15 more+45 -389 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchRyan RobertsDavid Hildenbrand
1/7R-b A-b
2/7A-b
3/7R-b
4/7
5/7
6/7
7/7

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

Read the v2 thread

Cover letter [PATCH V2 0/7] mm: Use pxdp_get() for accessing page table entries

This series converts all generic page table entries direct derefences via pxdp_get() based helpers extending the changes brought in via the commit c33c794828f2 ("mm: ptep_get() conversion"). First it does some platform specific changes for m68k and x86 architecture.

This series has been build tested on multiple architecture such as x86, arm64, powerpc, powerpc64le, riscv, and m68k etc.

Changes in V2:

- Separated out PUD changes from P4D changes
- Updated the commit message for x86 patch per Dave
- Implemented local variable page table value caching when applicable
- Updated all commit messages regarding local variable caching

Changes in V1:

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

Anshuman Khandual (7):
m68k/mm: Change pmd_val()
x86/mm: Drop page table entry address output from pxd_ERROR()
mm: Use ptep_get() for accessing PTE entries
mm: Use pmdp_get() for accessing PMD entries
mm: Use pudp_get() for accessing PUD entries
mm: Use p4dp_get() for accessing P4D entries
mm: Use pgdp_get() for accessing PGD entries

 arch/m68k/include/asm/page.h          |  2 +-
 arch/x86/include/asm/pgtable-3level.h | 12 ++--
 arch/x86/include/asm/pgtable_64.h     | 20 +++---
 drivers/misc/sgi-gru/grufault.c       | 13 ++--
 fs/proc/task_mmu.c                    | 28 +++++----
 fs/userfaultfd.c                      |  6 +-
 include/linux/huge_mm.h               |  6 +-
 include/linux/mm.h                    |  6 +-
 include/linux/pgtable.h               | 49 +++++++++------
 kernel/events/core.c                  |  6 +-
 mm/gup.c                              | 43 ++++++-------
 mm/hmm.c                              |  2 +-
 mm/huge_memory.c                      | 90 +++++++++++++++------------
 mm/hugetlb.c                          | 10 +--
 mm/hugetlb_vmemmap.c                  |  4 +-
 mm/kasan/init.c                       | 38 +++++------
 mm/kasan/shadow.c                     | 12 ++--
 mm/khugepaged.c                       |  4 +-
 mm/madvise.c                          |  6 +-
 mm/mapping_dirty_helpers.c            |  2 +-
 mm/memory-failure.c                   | 14 ++---
 mm/memory.c                           | 71 +++++++++++----------
 mm/mempolicy.c                        |  4 +-
 mm/migrate.c                          |  4 +-
 mm/migrate_device.c                   | 10 +--
 mm/mlock.c                            |  6 +-
 mm/mprotect.c                         |  2 +-
 mm/mremap.c                           |  4 +-
 mm/page_table_check.c                 |  4 +-
 mm/page_vma_mapped.c                  |  6 +-
 mm/pagewalk.c                         | 10 +--
 mm/percpu.c                           |  8 +--
 mm/pgalloc-track.h                    |  6 +-
 mm/pgtable-generic.c                  | 30 ++++-----
 mm/ptdump.c                           |  8 +--
 mm/rmap.c                             | 10 +--
 mm/sparse-vmemmap.c                   | 10 +--
 mm/vmalloc.c                          | 58 +++++++++--------
 mm/vmscan.c                           |  6 +-
 39 files changed, 333 insertions(+), 297 deletions(-)
Signature · 1 line
2.25.1