Skip to content

riscv: asid: switch to alternative way to fix stale TLB entries

Sergey Matyukevich linux-arch linux-riscv stable 1 version Applied

Status from this message: This series was applied to riscv/linux.git (fixes)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2Revert "riscv: mm: notify remote harts about mmu cache updates"arch/riscv/include/asm/mmu.h arch/riscv/include/asm/tlbflush.h arch/riscv/mm/context.c +1 more+17 -411 replyApplied
2/2riscv: asid: Fixup stale TLB entry cause application crasharch/riscv/mm/context.c+20 -101 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchLad PrabhakarZong LiSergey MatyukevichAndrew JonesGuo Ren
1/2R-b
2/2T-b T-b T-b R-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 5 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] riscv: asid: switch to alternative way to fix stale TLB entries

Hi all,

Some time ago two different patches have been posted to fix stale TLB entries that caused applications crashes.

The patch [0] suggested 'aggregating' mm_cpumask, i.e. current cpu is not cleared for the switched-out task in switch_mm function. For additional explanations see the commit message by Guo Ren. The same approach is used by arc architecture, so another good comment is for switch_mm in arch/arc/include/asm/mmu_context.h.

The patch [1] attempted to reduce the number of TLB flushes by deferring (and possibly avoiding) them for CPUs not running the task.

Patch [1] has been merged. However we already have two bug reports from different vendors. So apparently something is missing in the approach suggested in [1]. In both cases the patch [0] fixed the issue.

This patch series reverts [1] and replaces it by [0].

Regards,
Sergey

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

Guo Ren (1):
riscv: asid: Fixup stale TLB entry cause application crash

Sergey Matyukevich (1):
Revert "riscv: mm: notify remote harts about mmu cache updates"

 arch/riscv/include/asm/mmu.h      |  2 --
 arch/riscv/include/asm/tlbflush.h | 18 --------------
 arch/riscv/mm/context.c           | 40 +++++++++++++++----------------
 arch/riscv/mm/tlbflush.c          | 28 +++++++++++++---------
 4 files changed, 37 insertions(+), 51 deletions(-)
Signature · 7 lines
2.39.2


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv