]> www.infradead.org Git - users/dwmw2/linux.git/commit
riscv: Re-introduce global icache flush in patch_text_XXX()
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Thu, 1 Aug 2024 19:14:04 +0000 (21:14 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 6 Aug 2024 13:49:14 +0000 (06:49 -0700)
commitee9a68394b4bea8b9044ec4bfdbaacf45297ecef
tree1d33d2629109d7e8ec56952f8c2cdd2d7ce91503
parentde9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed
riscv: Re-introduce global icache flush in patch_text_XXX()

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@sifive.com>
Closes: https://lore.kernel.org/linux-riscv/a28ddc26-d77a-470a-a33f-88144f717e86@sifive.com/
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
Link: https://lore.kernel.org/r/20240801191404.55181-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/patch.c