summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDjordje Todorovic <djordje.todorovic@htecgroup.com>2026-09-17 17:06:39 +0200
committerPaul Walmsley <pjw@kernel.org>2026-10-08 14:11:53 -0600
commit2cf0b2992203da6b383e21d8a1756d91ca4bfcfc (patch)
tree5a8e06464850614b64992b794b220b8297fba4bc /include/linux
parent5c6e22ad386bc4a1299f0dd0732aefb9dfbc6a29 (diff)
riscv: Add ERRATA_MIPS_P8700_WFI to replace WFI with mips.pause
The MIPS P8700 has bugs with the WFI instruction. A WFI instruction after a mispredicted branch can result in erroneous address translation on the MIPS P8700. MIPS has not published an erratum for this. The workaround uses the RISC-V alternatives framework to patch all WFI instructions with the MIPS P8700 pause opcode (0x00501013) at runtime when running on P8700 hardware. Two call sites are patched: - arch/riscv/kernel/head.S: secondary hart parking loop - arch/riscv/include/asm/processor.h: wait_for_interrupt() Signed-off-by: Djordje Todorovic <djordje.todorovic@htecgroup.com> Signed-off-by: Aleksa Paunovic <aleksa.paunovic@htecgroup.com> Link: https://patch.msgid.link/20260917-p8700-wfi-v3-1-ada4b0584712@htecgroup.com [pjw@kernel.org: updated to apply] Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions