From: "Björn Töpel" <bjorn@kernel.org>
To: Pu Lehui <pulehui@huaweicloud.com>,
bpf@vger.kernel.org, linux-riscv@lists.infradead.org,
linux-kernel@vger.kernel.org
Cc: Puranjay Mohan <puranjay@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Alexandre Ghiti <alex@ghiti.fr>,
Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Andrii Nakryiko <andrii@kernel.org>,
Martin KaFai Lau <martin.lau@linux.dev>,
Eduard Zingerman <eddyz87@gmail.com>, Song Liu <song@kernel.org>,
Yonghong Song <yonghong.song@linux.dev>,
John Fastabend <john.fastabend@gmail.com>,
KP Singh <kpsingh@kernel.org>,
Stanislav Fomichev <sdf@fomichev.me>, Hao Luo <haoluo@google.com>,
Jiri Olsa <jolsa@kernel.org>, Pu Lehui <pulehui@huawei.com>
Subject: Re: [PATCH bpf-next 00/10] Add support arena atomics for RV64
Date: Tue, 05 Aug 2025 08:38:17 +0200 [thread overview]
Message-ID: <87v7n21deu.fsf@all.your.base.are.belong.to.us> (raw)
In-Reply-To: <20250719091730.2660197-1-pulehui@huaweicloud.com>
Pu Lehui <pulehui@huaweicloud.com> writes:
> From: Pu Lehui <pulehui@huawei.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!
Tested-by: Björn Töpel <bjorn@rivosinc.com> # QEMU only
Acked-by: Björn Töpel <bjorn@kernel.org>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2025-08-05 6:47 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-19 9:17 [PATCH bpf-next 00/10] Add support arena atomics for RV64 Pu Lehui
2025-07-19 9:17 ` [PATCH bpf-next 01/10] riscv, bpf: Extract emit_stx() helper Pu Lehui
2025-08-04 20:25 ` Björn Töpel
2025-07-19 9:17 ` [PATCH bpf-next 02/10] riscv, bpf: Extract emit_st() helper Pu Lehui
2025-08-04 20:26 ` Björn Töpel
2025-07-19 9:17 ` [PATCH bpf-next 03/10] riscv, bpf: Extract emit_ldx() helper Pu Lehui
2025-08-04 20:27 ` Björn Töpel
2025-07-19 9:17 ` [PATCH bpf-next 04/10] riscv: Separate toolchain support dependency from RISCV_ISA_ZACAS Pu Lehui
2025-08-04 20:29 ` Björn Töpel
2025-07-19 9:17 ` [PATCH bpf-next 05/10] riscv, bpf: Add rv_ext_enabled macro for runtime detection extentsion Pu Lehui
2025-08-04 20:32 ` Björn Töpel
2025-07-19 9:17 ` [PATCH bpf-next 06/10] riscv, bpf: Add Zacas instructions Pu Lehui
2025-08-04 20:32 ` Björn Töpel
2025-07-19 9:17 ` [PATCH bpf-next 07/10] riscv, bpf: Optimize cmpxchg insn with Zacas support Pu Lehui
2025-08-04 20:41 ` Björn Töpel
2025-07-19 9:17 ` [PATCH bpf-next 08/10] riscv, bpf: Add ex_insn_off and ex_jmp_off for exception table handling Pu Lehui
2025-08-05 6:22 ` Björn Töpel
2025-07-19 9:17 ` [PATCH bpf-next 09/10] riscv, bpf: Add support arena atomics for RV64 Pu Lehui
2025-08-05 6:35 ` Björn Töpel
2025-07-19 9:17 ` [PATCH bpf-next 10/10] selftests/bpf: Enable arena atomics tests " Pu Lehui
2025-08-04 20:36 ` Björn Töpel
2025-07-20 20:37 ` [PATCH bpf-next 00/10] Add support arena atomics " Björn Töpel
2025-08-05 6:38 ` Björn Töpel [this message]
2025-08-05 6:52 ` Pu Lehui
2025-08-15 8:55 ` Daniel Borkmann
2025-08-15 9:08 ` Pu Lehui
2025-08-15 8:50 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v7n21deu.fsf@all.your.base.are.belong.to.us \
--to=bjorn@kernel.org \
--cc=alex@ghiti.fr \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=haoluo@google.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kpsingh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=martin.lau@linux.dev \
--cc=palmer@dabbelt.com \
--cc=pulehui@huawei.com \
--cc=pulehui@huaweicloud.com \
--cc=puranjay@kernel.org \
--cc=sdf@fomichev.me \
--cc=song@kernel.org \
--cc=yonghong.song@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).