]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Add sfence.vma after early page table changes
authorGreentime Hu <greentime.hu@sifive.com>
Tue, 4 Aug 2020 03:02:05 +0000 (11:02 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 19 Sep 2020 20:20:13 +0000 (13:20 -0700)
commitc07d55d8cd1f9b2c3a2b8528a05c219ff3e84f20
treefd2ce5fbb9a61b9d94934a205e77b8130fcb6fc9
parente629feef3cbba8207d62b8b08f18e1bc65485750
riscv: Add sfence.vma after early page table changes

This invalidates local TLB after modifying the page tables during early init as
it's too early to handle suprious faults as we otherwise do.

Fixes: 31c7f9338b7f ("RISC-V: Implement compile-time fixed mappings")
Reported-by: Syven Wang <syven.wang@sifive.com>
Signed-off-by: Syven Wang <syven.wang@sifive.com>
Signed-off-by: Greentime Hu <greentime.hu@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
[Palmer: Cleaned up the commit text]
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/init.c