]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: sifive: Apply errata "cip-1200" patch
authorVincent Chen <vincent.chen@sifive.com>
Mon, 22 Mar 2021 14:26:06 +0000 (22:26 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sun, 11 Apr 2021 20:26:01 +0000 (13:26 -0700)
commitc0b51585bd5168df2f18139b5a28bece5f68a07c
tree82d5f682e9319308bbd803809f0cee10de2034ca
parentfeb3ac16051f90e5cd096d12dc3742127b405b79
riscv: sifive: Apply errata "cip-1200" patch

For certain SiFive CPUs, "sfence.vma addr" cannot exactly flush addr
from TLB in the particular cases. The details could be found here:
https://sifive.cdn.prismic.io/sifive/167a1a56-03f4-4615-a79e-b2a86153148f_FU740_errata_20210205.pdf
In order to ensure the functionality, this patch uses the Alternative
scheme to replace all "sfence.vma addr" with "sfence.vma" at runtime.

Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig.erratas
arch/riscv/errata/sifive/errata.c
arch/riscv/include/asm/errata_list.h
arch/riscv/include/asm/tlbflush.h