[PATCH v3 2/2] riscv: Fix text patching when IPI are used

Conor Dooley conor at kernel.org
Mon Mar 4 11:27:04 PST 2024


On Thu, Feb 29, 2024 at 01:10:56PM +0100, Alexandre Ghiti wrote:
> 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 at rivosinc.com>
> Signed-off-by: Björn Töpel <bjorn at rivosinc.com>
> Signed-off-by: Alexandre Ghiti <alexghiti at rivosinc.com>
> Reviewed-by: Andrea Parri <parri.andrea at gmail.com>

What commit does this fix?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20240304/ba6cc42f/attachment.sig>


More information about the linux-riscv mailing list