Skip to content

riscv: mm: Some optimizations for tlb flush

Xu Lu linux-riscv lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 9 repliesIn review
  2. v1 posting 2/22 patches 7 repliesSuperseded
  3. v1 posting 1/22 patches 0 repliesSuperseded

Changes in v2 from the cover letter

1. Split the modification on update_mmu_cache() into two commits. Thanks to Paul.
2. Fix address errors in the svinval processing path in V1. Thanks to Klara.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3riscv: mm: Use ASID in update_mmu_cache()arch/riscv/include/asm/pgtable.h arch/riscv/include/asm/tlbflush.h arch/riscv/mm/tlbflush.c+8 -65 replies
2/3riscv: mm: Apply Svinval in update_mmu_cache()arch/riscv/include/asm/pgtable.h arch/riscv/include/asm/tlbflush.h arch/riscv/mm/tlbflush.c+26 -184 replies
3/3riscv: mm: Clear cpu in mm_cpumask after local_flush_tlb_all_asidarch/riscv/mm/tlbflush.c+25 -160 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchKlara Modin
1/3
2/3T-b
3/3

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/3] riscv: mm: Some optimizations for tlb flush

Some optimizations for tlb flush on RISC-V smp:
1. Apply Svinval in update_mmu_cache() to avoid flushing irrelevant tlb entries.
2. Clear bit of current cpu in mm_cpumask after local_flush_tlb_all_asid() to avoid potential IPIs in the future.

Some false positive spacing error happens during patch checking. Thus I CCed maintainers of checkpatch.pl as well.

Changes in V2:
1. Split the modification on update_mmu_cache() into two commits. Thanks to Paul.
2. Fix address errors in the svinval processing path in V1. Thanks to Klara.

Xu Lu (3):
riscv: mm: Use ASID in update_mmu_cache()
riscv: mm: Apply Svinval in update_mmu_cache()
riscv: mm: Clear cpu in mm_cpumask after local_flush_tlb_all_asid

 arch/riscv/include/asm/pgtable.h  | 12 +++++-
 arch/riscv/include/asm/tlbflush.h | 23 +++++++++++
 arch/riscv/mm/tlbflush.c          | 64 ++++++++++++-------------------
 3 files changed, 59 insertions(+), 40 deletions(-)
Signature · 1 line
2.39.5