Skip to content

remove tlb_remove_page_ptdesc()

Qi Zheng linux-csky linux-hexagon linux-m68k linux-mips linux-mm linux-riscv linux-sh linux-um lkml loongarch openrisc 2 versions – Applied

Status from this message: [merged mm-stable] mm-pgtable-remove-tlb_remove_page_ptdesc.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 14 repliesApplied 6/7
  2. v15 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- add [PATCH v2 2/6] (Peter Zijlstra)
- remove [PATCH 4/5] and add [PATCH v2 5/6]
- rebase onto the next-20250224

Patches in v2 Applied · 6/7

#Subject and filesSizeRepliesApplied
1/6mm: pgtable: make generic tlb_remove_table() use struct ptdescinclude/asm-generic/tlb.h+3 -31 replyApplied
2/6mm: pgtable: change pt parameter of tlb_remove_ptdesc() to struct ptdesc *include/asm-generic/tlb.h+1 -11 replyApplied
3/6mm: pgtable: convert some architectures to use tlb_remove_ptdesc()arch/csky/include/asm/pgalloc.h arch/hexagon/include/asm/pgalloc.h arch/loongarch/include/asm/pgalloc.h +6 more+14 -253 replies
3/6mm: pgtable: convert some architectures to use tlb_remove_ptdesc()arch/csky/include/asm/pgalloc.h arch/hexagon/include/asm/pgalloc.h arch/loongarch/include/asm/pgalloc.h +6 more+22 -554 repliesApplied
4/6riscv: pgtable: unconditionally use tlb_remove_ptdesc()arch/riscv/include/asm/pgalloc.h+4 -222 repliesApplied
5/6x86: pgtable: convert to use tlb_remove_ptdesc()arch/x86/mm/pgtable.c+4 -42 repliesApplied
6/6mm: pgtable: remove tlb_remove_page_ptdesc()include/asm-generic/tlb.h+0 -61 replyApplied

Reviews trailers per patch

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

PatchPeter Zijlstra (Intel)Kevin BrodskyGeert Uytterhoeven
1/6R-b
2/6Originally-by R-b
3/6R-b R-b A-b A-b
3/6R-b R-b A-b A-b
4/6
5/6
6/6R-b

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 v2 thread

Cover letter [PATCH v2 0/6] remove tlb_remove_page_ptdesc()

Changes in v2:
- add [PATCH v2 2/6] (Peter Zijlstra)
- remove [PATCH 4/5] and add [PATCH v2 5/6]
- rebase onto the next-20250224

Hi all,

As suggested by Peter Zijlstra below [1], this series aims to remove tlb_remove_page_ptdesc().

: Fundamentally tlb_remove_page() is about removing *pages* as from a PTE, : there should not be a page-table anywhere near here *ever*. :
: Yes, some architectures use tlb_remove_page() for page-tables too, but : that is more or less an implementation detail that can be fixed.

After this series, all architectures use tlb_remove_table() or tlb_remove_ptdesc() to remove the page table pages. In the future, once all architectures using tlb_remove_table() have also converted to using struct ptdesc (eg. powerpc), it may be possible to use only tlb_remove_ptdesc().

This series is based on next-20250224.

Comments and suggestions are welcome!

Thanks,
Qi

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

Qi Zheng (6):
mm: pgtable: make generic tlb_remove_table() use struct ptdesc
mm: pgtable: change pt parameter of tlb_remove_ptdesc() to struct
ptdesc *
mm: pgtable: convert some architectures to use tlb_remove_ptdesc()
riscv: pgtable: unconditionally use tlb_remove_ptdesc()
x86: pgtable: convert to use tlb_remove_ptdesc()
mm: pgtable: remove tlb_remove_page_ptdesc()

 arch/csky/include/asm/pgalloc.h      |  3 +--
 arch/hexagon/include/asm/pgalloc.h   |  3 +--
 arch/loongarch/include/asm/pgalloc.h |  3 +--
 arch/m68k/include/asm/sun3_pgalloc.h |  3 +--
 arch/mips/include/asm/pgalloc.h      |  3 +--
 arch/nios2/include/asm/pgalloc.h     |  9 ++++-----
 arch/openrisc/include/asm/pgalloc.h  |  3 +--
 arch/riscv/include/asm/pgalloc.h     | 26 ++++----------------------
 arch/sh/include/asm/pgalloc.h        |  3 +--
 arch/um/include/asm/pgalloc.h        |  9 +++------
 arch/x86/mm/pgtable.c                |  8 ++++----
 include/asm-generic/tlb.h            | 14 ++++----------
 12 files changed, 26 insertions(+), 61 deletions(-)
Signature · 1 line
2.20.1