]> Gentwo Git Trees - linux/.git/commit
riscv, bpf: Add support arena atomics for RV64
authorPu Lehui <pulehui@huawei.com>
Sat, 19 Jul 2025 09:17:29 +0000 (09:17 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 15 Aug 2025 08:46:51 +0000 (10:46 +0200)
commitfb7cefabae8117c203155ef169a386bec43bbba9
treedd71b187eb03b83fc54beb487fee7f43185a8696
parentb18f4aae6a5db5ada5aba02b43dbdd3909e5f87c
riscv, bpf: Add support arena atomics for RV64

Add arena atomics support for RMW atomics and load-acquire and
store-release instructions. Non-Zacas cmpxchg is implemented via loop,
which is not currently supported because it requires more complex
extable and loop logic.

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Björn Töpel <bjorn@rivosinc.com>
Reviewed-by: Björn Töpel <bjorn@rivosinc.com>
Acked-by: Björn Töpel <bjorn@kernel.org>
Link: https://lore.kernel.org/bpf/20250719091730.2660197-10-pulehui@huaweicloud.com
arch/riscv/net/bpf_jit.h
arch/riscv/net/bpf_jit_comp64.c