[0/2] riscv: fix patching with IPI

Message ID 20240228175149.162646-1-alexghiti@rivosinc.com
Headers
Series riscv: fix patching with IPI |

Message

Alexandre Ghiti Feb. 28, 2024, 5:51 p.m. UTC
  patch 1 removes a useless memory barrier and patch 2 actually fixes the
issue with IPI in the patching code.

Changes in v2:
- Add patch 1 and then remove the memory barrier from patch 2 as
  suggested by Andrea
- Convert atomic_inc into an atomic_inc with release semantics as
  suggested by Andrea

Alexandre Ghiti (2):
  riscv: Remove superfluous smp_mb()
  riscv: Fix text patching when IPI are used

 arch/riscv/include/asm/patch.h |  1 +
 arch/riscv/kernel/ftrace.c     | 42 ++++++++++++++++++++++++++++++----
 arch/riscv/kernel/patch.c      | 19 ++++++++-------
 3 files changed, 50 insertions(+), 12 deletions(-)