Skip to content

Clean up pmd_get_atomic() and i386-PAE

Peter Zijlstra linux-arch linux-mm lkml oe-kbuild-all 1 version Applied

Status from this message: The following commit has been merged into the x86/mm branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 117 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/13mm: Update ptep_get_lockless()s commentinclude/linux/pgtable.h+6 -9102 replies
2/13x86/mm/pae: Make pmd_t similar to pte_tarch/x86/include/asm/pgtable-3level.h arch/x86/include/asm/pgtable-3level_types.h arch/x86/include/asm/pgtable_64_types.h +1 more+23 -310 replies
3/13sh/mm: Make pmd_t similar to pte_tarch/sh/include/asm/pgtable-3level.h+8 -21 reply
4/13mm: Fix pmd_read_atomic()arch/x86/include/asm/pgtable-3level.h include/linux/pgtable.h+37 -664 replies
5/13mm: Rename GUP_GET_PTE_LOW_HIGHarch/mips/Kconfig arch/sh/Kconfig arch/x86/Kconfig +2 more+6 -60 replies
6/13mm: Rename pmd_read_atomic()include/linux/pgtable.h mm/hmm.c mm/khugepaged.c +4 more+9 -140 replies
7/13mm/gup: Fix the lockless PMD accesskernel/events/core.c mm/gup.c+2 -23 replies
8/13x86/mm/pae: Dont (ab)use atomic64arch/x86/include/asm/pgtable-3level.h+4 -50 replies
9/13x86/mm/pae: Use WRITE_ONCE()arch/x86/include/asm/pgtable-3level.h+6 -62 replies
10/13x86/mm/pae: Be consistent with pXXp_get_and_clear()arch/x86/include/asm/pgtable-3level.h+17 -502 replies
11/13x86_64: Remove pointless set_64bit() usagearch/um/include/asm/pgtable-3level.h arch/x86/include/asm/cmpxchg_64.h drivers/iommu/intel/irq_remapping.c+2 -2113 replies
12/13x86/mm/pae: Get rid of set_64bit()arch/x86/include/asm/cmpxchg_32.h arch/x86/include/asm/pgtable-3level.h+12 -390 replies
13/13mm: Remove pointless barrier() after pmdp_get_lockless()mm/hmm.c mm/vmscan.c+0 -41 reply

Reviews trailers per patch

1 of 13 patches has a Reviewed-by or Acked-by.

PatchPeter Zijlstra (Intel)Gerald SchaeferJohannes Weiner
1/13A-b A-b A-b A-b A-b A-b NOT-Signed-off-by
2/13
3/13
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/13] Clean up pmd_get_atomic() and i386-PAE

Hi,

At long *long* last a respin of the patches that clean up pmd_get_atomic() and i386-PAE. I'd nearly forgotten why I did this, but the old posting gave clue that patch #7 was the whole purpose of me doing these patches.

Having carried these patches for at least 2 years, they recently hit a rebase bump against the mg-lru patches, which is what prompted this repost.

Linus' comment about try_cmpxchg64() (and Uros before him) made me redo those patches (see patch #10) which resulted in pxx_xchg64(). This in turn led to killing off set_64bit().

The robot doesn't hate on these patches and they boot in kvm (because who still has i386 hardware).

Patches also available at:

git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/mm.pae

---
 arch/mips/Kconfig                           |   2 +-
 arch/sh/Kconfig                             |   2 +-
 arch/sh/include/asm/pgtable-3level.h        |  10 +-
 arch/um/include/asm/pgtable-3level.h        |   8 --
 arch/x86/Kconfig                            |   2 +-
 arch/x86/include/asm/cmpxchg_32.h           |  28 -----
 arch/x86/include/asm/cmpxchg_64.h           |   5 -
 arch/x86/include/asm/pgtable-3level.h       | 171 ++++++----------------------
 arch/x86/include/asm/pgtable-3level_types.h |   7 ++
 arch/x86/include/asm/pgtable_64_types.h     |   1 +
 arch/x86/include/asm/pgtable_types.h        |   4 +-
 drivers/iommu/intel/irq_remapping.c         |  10 +-
 include/linux/pgtable.h                     |  71 +++++++-----
 kernel/events/core.c                        |   2 +-
 mm/Kconfig                                  |   2 +-
 mm/gup.c                                    |   2 +-
 mm/hmm.c                                    |   3 +-
 mm/khugepaged.c                             |   2 +-
 mm/mapping_dirty_helpers.c                  |   2 +-
 mm/mprotect.c                               |   2 +-
 mm/userfaultfd.c                            |   2 +-
 mm/vmscan.c                                 |   5 +-
 22 files changed, 110 insertions(+), 233 deletions(-)