Searched hist:d6dcdabafcd7c612b164079d00da6d9775863a0b (Results 1 – 1 of 1) sorted by relevance
/linux/arch/riscv/errata/sifive/ |
H A D | errata.c | diff d6dcdabafcd7c612b164079d00da6d9775863a0b Wed Mar 27 05:49:49 CET 2024 Samuel Holland <samuel.holland@sifive.com> riscv: Avoid TLB flush loops when affected by SiFive CIP-1200
Implementations affected by SiFive errata CIP-1200 have a bug which forces the kernel to always use the global variant of the sfence.vma instruction. When affected by this errata, do not attempt to flush a range of addresses; each iteration of the loop would actually flush the whole TLB instead. Instead, minimize the overall number of sfence.vma instructions.
Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Yunhui Cui <cuiyunhui@bytedance.com> Link: https://lore.kernel.org/r/20240327045035.368512-9-samuel.holland@sifive.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
|