linux-stable/arch/riscv
Vincent Chen 800149a77c
riscv: sifive: Apply errata "cip-453" patch
Add sign extension to the $badaddr before addressing the instruction page
fault and instruction access fault to workaround the issue "cip-453".

To avoid affecting the existing code sequence, this patch will creates two
trampolines to add sign extension to the $badaddr. By the "alternative"
mechanism, these two trampolines will replace the original exception
handler of instruction page fault and instruction access fault in the
excp_vect_table. In this case, only the specific SiFive CPU core jumps to
the do_page_fault and do_trap_insn_fault through these two trampolines.
Other CPUs are not affected.

Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-04-26 08:24:57 -07:00
..
boot RISC-V Patches for the 5.12 Merge Window 2021-02-26 10:28:35 -08:00
configs RISC-V: Enable CPU Hotplug in defconfigs 2021-02-26 21:24:02 -08:00
errata riscv: sifive: Apply errata "cip-453" patch 2021-04-26 08:24:57 -07:00
include riscv: sifive: Apply errata "cip-453" patch 2021-04-26 08:24:57 -07:00
kernel riscv: sifive: Apply errata "cip-453" patch 2021-04-26 08:24:57 -07:00
lib riscv: Add support for function error injection 2021-01-14 15:09:09 -08:00
mm riscv: Cleanup KASAN_VMALLOC support 2021-03-29 23:13:29 -07:00
net bpf: Rename BPF_XADD and prepare to encode other atomics in .imm 2021-01-14 18:34:29 -08:00
Kbuild riscv: Allow device trees to be built into the kernel 2020-05-18 11:38:05 -07:00
Kconfig riscv: Introduce alternative mechanism to apply errata solution 2021-04-26 08:24:55 -07:00
Kconfig.debug RISC-V: Remove EARLY_PRINTK support 2018-12-17 10:23:46 -08:00
Kconfig.erratas riscv: sifive: Apply errata "cip-453" patch 2021-04-26 08:24:57 -07:00
Kconfig.socs riscv: sifive: Add SiFive alternative ports 2021-04-26 08:24:56 -07:00
Makefile riscv: Introduce alternative mechanism to apply errata solution 2021-04-26 08:24:55 -07:00