[PATCH -fixes v2] riscv: Re-introduce global icache flush in patch_text_XXX()

Samuel Holland samuel.holland at sifive.com
Thu Aug 1 12:20:33 PDT 2024


On 2024-08-01 2:14 PM, Alexandre Ghiti wrote:
> commit edf2d546bfd6 ("riscv: patch: Flush the icache right after
> patching to avoid illegal insns") mistakenly removed the global icache
> flush in patch_text_nosync() and patch_text_set_nosync() functions, so
> reintroduce them.
> 
> Fixes: edf2d546bfd6 ("riscv: patch: Flush the icache right after patching to avoid illegal insns")
> Reported-by: Samuel Holland <samuel.holland at sifive.com>
> Closes: https://lore.kernel.org/linux-riscv/a28ddc26-d77a-470a-a33f-88144f717e86@sifive.com/
> Signed-off-by: Alexandre Ghiti <alexghiti at rivosinc.com>
> ---
>  arch/riscv/kernel/patch.c | 4 ++++
>  1 file changed, 4 insertions(+)

Thanks for the update!

Reviewed-by: Samuel Holland <samuel.holland at sifive.com>




More information about the linux-riscv mailing list