diff options
| author | Djordje Todorovic <djordje.todorovic@htecgroup.com> | 2026-09-17 17:06:39 +0200 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-10-08 14:11:53 -0600 |
| commit | 2cf0b2992203da6b383e21d8a1756d91ca4bfcfc (patch) | |
| tree | 5a8e06464850614b64992b794b220b8297fba4bc /include/linux/workqueue_api.h | |
| parent | 5c6e22ad386bc4a1299f0dd0732aefb9dfbc6a29 (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/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
