Files
linux-bredos/arch/riscv/include/asm
Alexandre Ghiti 08a2117e83 riscv: Fix text patching when IPI are used
[ Upstream commit c97bf62996 ]

For now, we use stop_machine() to patch the text and when we use IPIs for
remote icache flushes (which is emitted in patch_text_nosync()), the system
hangs.

So instead, make sure every CPU executes the stop_machine() patching
function and emit a local icache flush there.

Co-developed-by: Björn Töpel <bjorn@rivosinc.com>
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrea Parri <parri.andrea@gmail.com>
Link: https://lore.kernel.org/r/20240229121056.203419-3-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Stable-dep-of: 13134cc949 ("riscv: kprobes: Fix incorrect address calculation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-01-17 13:36:26 +01:00
..
2023-08-23 14:16:39 -07:00
2022-03-10 09:29:21 -08:00
2024-03-06 14:48:41 +00:00
2023-11-28 17:19:49 +00:00
2022-01-19 17:54:09 -08:00
2022-05-11 11:50:10 -07:00
2022-03-29 14:31:07 -07:00
2021-01-14 15:09:06 -08:00
2021-01-07 19:00:50 -08:00
2023-08-23 14:16:36 -07:00