From: Pu Lehui <pulehui@huaweicloud.com>
To: "Daniel Borkmann" <daniel@iogearbox.net>,
"Björn Töpel" <bjorn@kernel.org>,
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>,
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: Fri, 15 Aug 2025 17:08:03 +0800 [thread overview]
Message-ID: <381def4c-ebe1-4dc1-a301-72cdc7f9176a@huaweicloud.com> (raw)
In-Reply-To: <8ef2259d-eb58-4c66-a27a-3ee0b85aa639@iogearbox.net>
On 2025/8/15 16:55, Daniel Borkmann wrote:
> On 8/5/25 8:52 AM, Pu Lehui wrote:
>> On 2025/8/5 14:38, Björn Töpel wrote:
>>> 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!
>>
>> Sounds like a great vacation!
>
> Thanks for working on this! I just took this into bpf-next, please also
> make sure to address the small follow-up request from Bjorn.
Hi Daniel,
Already explained and aligned with Bjorn, no further processing is
required. Thanks.
>
>>> Tested-by: Björn Töpel <bjorn@rivosinc.com> # QEMU only
>>> Acked-by: Björn Töpel <bjorn@kernel.org>
>
> Thanks,
> Daniel
_______________________________________________
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-15 12:06 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
2025-08-05 6:52 ` Pu Lehui
2025-08-15 8:55 ` Daniel Borkmann
2025-08-15 9:08 ` Pu Lehui [this message]
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=381def4c-ebe1-4dc1-a301-72cdc7f9176a@huaweicloud.com \
--to=pulehui@huaweicloud.com \
--cc=alex@ghiti.fr \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bjorn@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=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).