mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] riscv: mm: Some optimizations for tlb flush
@ 2026-07-15 13:20 Xu Lu
  2026-07-15 13:20 ` [PATCH v2 1/3] riscv: mm: Use ASID in update_mmu_cache() Xu Lu
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Xu Lu @ 2026-07-15 13:20 UTC (permalink / raw)
  To: paul.walmsley, klarasmodin, palmer, aou, alex
  Cc: linux-riscv, linux-kernel, apw, joe, Xu Lu

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(-)

-- 
2.39.5


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-07-17 18:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-15 13:20 [PATCH v2 0/3] riscv: mm: Some optimizations for tlb flush Xu Lu
2026-07-15 13:20 ` [PATCH v2 1/3] riscv: mm: Use ASID in update_mmu_cache() Xu Lu
2026-07-16 16:24   ` Klara Modin
2026-07-17  2:11     ` [External] " Xu Lu
2026-07-17 16:57       ` Xu Lu
2026-07-17 17:14         ` Klara Modin
2026-07-17 17:19           ` Xu Lu
2026-07-15 13:20 ` [PATCH v2 2/3] riscv: mm: Apply Svinval " Xu Lu
2026-07-15 18:22   ` Klara Modin
     [not found]     ` <CGME20260717070900eucas1p11e7d4abd6e0c32fa18fca2940cdcca70@eucas1p1.samsung.com>
2026-07-17  7:08       ` Marek Szyprowski
2026-07-17  8:02         ` Klara Modin
2026-07-17 18:23   ` Samuel Holland
2026-07-15 13:20 ` [PATCH v2 3/3] riscv: mm: Clear cpu in mm_cpumask after local_flush_tlb_all_asid Xu Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox