riscv: tlb: avoid tlb flushing on exit & execve
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm/tlb: fix fullmm semanticsarch/ include/ mm/ | +6 | 9 replies | |
| 2/2 | riscv: tlb: avoid tlb flushing if fullmm == 1arch/ | +9 | 3 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Alexandre Ghiti |
|---|---|
| 1/2 | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] riscv: tlb: avoid tlb flushing on exit & execve
The mmu_gather code sets fullmm=1 when tearing down the entire address space for an mm_struct on exit or execve. So if the underlying platform supports ASID, the tlb flushing can be avoided because the ASID allocator will never re-allocate a dirty ASID.
But currently, the tlb_finish_mmu() sets fullmm, when in fact it wants to say that the TLB should be fully flushed.
So patch1 takes one of Nadav's patch from [1] to fix fullmm semantics. Compared with original patch from[1], the differences are:
a. fixes the fullmm semantics in arm64 too
b. bring back the fullmm optimization back on arm64.
patch2 does the optimization on riscv.
Use the performance of Process creation in unixbench on T-HEAD TH1520 platform is improved by about 4%.
Jisheng Zhang (1):
riscv: tlb: avoid tlb flushing if fullmm == 1
Nadav Amit (1):
mm/tlb: fix fullmm semantics
arch/arm64/include/asm/tlb.h | 5 ++++- arch/riscv/include/asm/tlb.h | 9 +++++++++ include/asm-generic/tlb.h | 2 +- mm/mmu_gather.c | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-)
Signature · 1 line
2.40.0