Skip to content

RFC Misc powerpc fixes and refactoring

Ritesh Harjani (IBM) linux-mm linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 of 10 patches 9 repliesIn review

9 of 10 patches are in this archive. The cover letter announces 10.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/10powerpc: book3s64: Fix unmap race with PMD THP migration entryarch/powerpc/mm/book3s64/pgtable.c+17 -21 reply
3/10mm/debug_vm_pgtable.c: Add test to zap THP migration entrymm/debug_vm_pgtable.c+38 -00 replies
4/10powerpc/64s/tlbflush-radix: Remove unused radix__flush_tlb_pwc()arch/powerpc/include/asm/book3s/64/tlbflush-radix.h+0 -11 reply
5/10powerpc/64s: Move serialize_against_pte_lookup() to hash_pgtable.carch/powerpc/include/asm/book3s/64/pgtable.h arch/powerpc/mm/book3s64/hash_pgtable.c arch/powerpc/mm/book3s64/pgtable.c+21 -261 reply
6/10powerpc/64s: Kill the unused argument of exit_lazy_flush_tlbarch/powerpc/mm/book3s64/internal.h arch/powerpc/mm/book3s64/pgtable.c arch/powerpc/mm/book3s64/radix_tlb.c+5 -131 reply
7/10powerpc: book3s64: Rename tlbie_va_lpid to tlbie_va_pid_lpidarch/powerpc/mm/book3s64/radix_tlb.c+10 -101 reply
8/10powerpc: book3s64: Rename tlbie_lpid_va to tlbie_va_lpidarch/powerpc/mm/book3s64/radix_tlb.c+9 -91 reply
9/10powerpc: book3s64: Make use of H_RPTI_TYPE_ALL macroarch/powerpc/mm/book3s64/radix_tlb.c+3 -61 reply
10/10powerpc: Add MMU_FTRS_POSSIBLE & MMU_FTRS_ALWAYSarch/powerpc/kernel/setup-common.c+4 -02 replies

Reviews trailers per patch

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

PatchChristophe Leroy (CS GROUP)
SeriesR-b
2/10R-b
3/10
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10

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

Read the v1 thread

Cover letter [RFC v1 00/10] Misc powerpc fixes and refactoring

Hello All,

- Patches 1 & 2, are fixes found during reviews and while running mm selftests.
- Patch-3 adds a way to verify / test this race using debug_vm_pgtable.c
- Patches 4-10 are various cleanups and refactoring, that I have been carrying in my tree. I felt it's time to push it, if those changes seems logical to others too.

Please review and share your thoughts!

-ritesh

Ritesh Harjani (IBM) (10):
powerpc/pgtable-frag: Fix bad page state in pte_frag_destroy
powerpc: book3s64: Fix unmap race with PMD THP migration entry mm/debug_vm_pgtable.c: Add test to zap THP migration entry powerpc/64s/tlbflush-radix: Remove unused radix__flush_tlb_pwc() powerpc/64s: Move serialize_against_pte_lookup() to hash_pgtable.c powerpc/64s: Kill the unused argument of exit_lazy_flush_tlb
powerpc: book3s64: Rename tlbie_va_lpid to tlbie_va_pid_lpid
powerpc: book3s64: Rename tlbie_lpid_va to tlbie_va_lpid
powerpc: book3s64: Make use of H_RPTI_TYPE_ALL macro
powerpc: Add MMU_FTRS_POSSIBLE & MMU_FTRS_ALWAYS

 arch/powerpc/include/asm/book3s/64/pgtable.h  |  1 -
 .../include/asm/book3s/64/tlbflush-radix.h    |  1 -
 arch/powerpc/kernel/setup-common.c            |  4 ++
 arch/powerpc/mm/book3s64/hash_pgtable.c       | 21 +++++++
 arch/powerpc/mm/book3s64/internal.h           |  2 -
 arch/powerpc/mm/book3s64/pgtable.c            | 46 ++++++--------
 arch/powerpc/mm/book3s64/radix_tlb.c          | 61 ++++++++-----------
 arch/powerpc/mm/pgtable-frag.c                |  1 +
 mm/debug_vm_pgtable.c                         | 38 ++++++++++++
 9 files changed, 108 insertions(+), 67 deletions(-)

--
2.53.0