]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: mm: synchronize MMU after pte change
authorShihPo Hung <shihpo.hung@sifive.com>
Mon, 17 Jun 2019 04:26:17 +0000 (12:26 +0800)
committerPaul Walmsley <paul.walmsley@sifive.com>
Mon, 17 Jun 2019 10:44:44 +0000 (03:44 -0700)
commitdec0c167b74ccad4c6cbf8cfe5f73c7389813b5d
treeab59e43380e7b8e32b79875eb26a5c27e5046957
parent0dba0d1ffcd11441e6b9c51acc56e18abd7839ef
riscv: mm: synchronize MMU after pte change

Because RISC-V compliant implementations can cache invalid entries
in TLB, an SFENCE.VMA is necessary after changes to the page table.
This patch adds an SFENCE.vma for the vmalloc_fault path.

Signed-off-by: ShihPo Hung <shihpo.hung@sifive.com>
[paul.walmsley@sifive.com: reversed tab->whitespace conversion,
 wrapped comment lines]
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: linux-riscv@lists.infradead.org
Cc: stable@vger.kernel.org
arch/riscv/mm/fault.c