Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 4c71ccae authored by Sergey Matyukevich's avatar Sergey Matyukevich Committed by Greg Kroah-Hartman
Browse files

riscv: mm: fix regression due to update_mmu_cache change

commit b49f7006 upstream.

This is a partial revert of the commit 4bd1d80e ("riscv: mm: notify
remote harts about mmu cache updates"). Original commit included two
loosely related changes serving the same purpose of fixing stale TLB
entries causing user-space application crash:
- introduce deferred per-ASID TLB flush for CPUs not running the task
- switch to per-ASID TLB flush on all CPUs running the task in update_mmu_cache

According to report and discussion in [1], the second part caused a
regression on Renesas RZ/Five SoC. For now restore the old behavior
of the update_mmu_cache.

[1] https://lore.kernel.org/linux-riscv/20220829205219.283543-1-geomatsi@gmail.com/



Fixes: 4bd1d80e ("riscv: mm: notify remote harts about mmu cache updates")
Reported-by: default avatar"Lad, Prabhakar" <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarSergey Matyukevich <sergey.matyukevich@syntacore.com>
Link: trailer, so that it can be parsed with git's trailer functionality?
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230129211818.686557-1-geomatsi@gmail.com


Cc: stable@vger.kernel.org
Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3e92e7fa
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment