[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <00538107-08e3-4ba3-a11a-19fa9fd0a496@huaweicloud.com>
Date: Tue, 5 Aug 2025 14:52:13 +0800
From: Pu Lehui <pulehui@...weicloud.com>
To: Björn Töpel <bjorn@...nel.org>, bpf@...r.kernel.org,
linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc: Puranjay Mohan <puranjay@...nel.org>, Palmer Dabbelt
<palmer@...belt.com>, Alexandre Ghiti <alex@...ti.fr>,
Alexei Starovoitov <ast@...nel.org>, Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>, Martin KaFai Lau
<martin.lau@...ux.dev>, Eduard Zingerman <eddyz87@...il.com>,
Song Liu <song@...nel.org>, Yonghong Song <yonghong.song@...ux.dev>,
John Fastabend <john.fastabend@...il.com>, KP Singh <kpsingh@...nel.org>,
Stanislav Fomichev <sdf@...ichev.me>, Hao Luo <haoluo@...gle.com>,
Jiri Olsa <jolsa@...nel.org>, Pu Lehui <pulehui@...wei.com>
Subject: Re: [PATCH bpf-next 00/10] Add support arena atomics for RV64
On 2025/8/5 14:38, Björn Töpel wrote:
> Pu Lehui <pulehui@...weicloud.com> writes:
>
>> From: Pu Lehui <pulehui@...wei.com>
>>
>> patch 1-3 refactor redundant load and store operations.
>> patch 4-7 add Zacas instructions for cmpxchg.
>> patch 8 optimizes exception table handling.
>> patch 9-10 add support arena atomics for RV64.
>>
>> Tests `test_progs -t atomic,arena` have passed as shown bellow,
>> as well as `test_verifier` and `test_bpf.ko` have passed.
>
> [...]
>
>> Pu Lehui (10):
>> riscv, bpf: Extract emit_stx() helper
>> riscv, bpf: Extract emit_st() helper
>> riscv, bpf: Extract emit_ldx() helper
>> riscv: Separate toolchain support dependency from RISCV_ISA_ZACAS
>> riscv, bpf: Add rv_ext_enabled macro for runtime detection extentsion
>> riscv, bpf: Add Zacas instructions
>> riscv, bpf: Optimize cmpxchg insn with Zacas support
>> riscv, bpf: Add ex_insn_off and ex_jmp_off for exception table
>> handling
>> riscv, bpf: Add support arena atomics for RV64
>> selftests/bpf: Enable arena atomics tests for RV64
>>
>> arch/riscv/Kconfig | 1 -
>> arch/riscv/include/asm/cmpxchg.h | 6 +-
>> arch/riscv/kernel/setup.c | 1 +
>> arch/riscv/net/bpf_jit.h | 70 ++-
>> arch/riscv/net/bpf_jit_comp64.c | 516 +++++-------------
>> .../selftests/bpf/progs/arena_atomics.c | 9 +-
>> 6 files changed, 214 insertions(+), 389 deletions(-)
>
> What a nice series! The best kind of changeset -- new feature, less
> code! Thank you, Lehui! Again, apologies for the horrible SLA. The
> weather in Sweden was simply Too Good this summer!
Sounds like a great vacation!
>
> Tested-by: Björn Töpel <bjorn@...osinc.com> # QEMU only
> Acked-by: Björn Töpel <bjorn@...nel.org>
Powered by blists - more mailing lists