🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
4 messages
4 total messages Started by Ramin Moussavi Sun, 29 Nov 2026 23:28
Re: [PATCH bpf-next v3] bpf, arm32: build constants inline instead of using a literal pool
#24270
Author: Ramin Moussavi
Date: Sun, 29 Nov 2026 23:28
15 lines
17436 bytes
Ping.  v3 has been sitting in patchwork since Nov 22 with no reply, and
it still applies cleanly to bpf-next/master (fcd1857c35eb).

This mail adds the maintainers the CI listed as missing - v1 to v3 went
to the ARM JIT entries only, so netdev@ and most of the bpf reviewers
have not seen it at all.

Dropping the pool costs up to four instructions per hard constant.  I
have a follow-up series that takes that back out of the emitted code -
2.7% smaller over the whole test_bpf suite, up to 28% on individual
programs - but I would rather see this fix go in first.

Thanks,
Ramin
Re: [PATCH bpf-next v3] bpf, arm32: build constants inline instead of using a literal pool
#24301
Author: "Alexei Starovoitov"
Date: Mon, 30 Nov 2026 01:00
9 lines
11853 bytes
On Sun, Nov 29, 2026 at 03:28 PM Ramin Moussavi <ramin.moussavi@yacoub.de> wrote:
> Ping.  v3 has been sitting in patchwork since Nov 22 with no reply, and
> it still applies cleanly to bpf-next/master (fcd1857c35eb).

Applied to bpf-next,
but let me ask why do you care about arm32?
You didn't test it on real HW. Only on qemu.
Why bother touching a mostly dead architecture?
Re: [PATCH bpf-next v3] bpf, arm32: build constants inline instead of using a literal pool
#24780
Author: Ramin Moussavi
Date: Mon, 30 Nov 2026 20:13
21 lines
17727 bytes
Thanks for applying it.

> but let me ask why do you care about arm32?

Because it is still very much alive in industrial equipment.

It is also not limited to v5 and v6 silicon.  __LINUX_ARM_ARCH__ is 6 on
any kernel built for v6 and v7 together, which imx_v6_v7_defconfig and
omap2plus_defconfig both do, so current i.MX6 hardware takes this path
as well.

> You didn't test it on real HW. Only on qemu.

Neither this patch nor the follow-up series started in qemu - both came
out of product kernels running on real hardware.  What I verified under
qemu is the version rewritten for bpf-next, because that is where I can
run the whole test_bpf suite across several configurations and compare
the emitted code.

Ramin
Re: [PATCH bpf-next v3] bpf, arm32: build constants inline instead of using a literal pool
#24937
Author: "Alexei Starovoitov"
Date: Tue, 01 Dec 2026 03:13
21 lines
12443 bytes
On Mon, Nov 30, 2026 at 12:13 PM Ramin Moussavi <ramin.moussavi@yacoub.de> wrote:
> It is also not limited to v5 and v6 silicon.  __LINUX_ARM_ARCH__ is 6 on
> any kernel built for v6 and v7 together, which imx_v6_v7_defconfig and
> omap2plus_defconfig both do, so current i.MX6 hardware takes this path
> as well.

hmm.
No arm defconfig sets BPF_JIT, and nothing selects it on arm.
i.MX6 takes this path only with ARCH_MULTI_V6=y and BPF_JIT=y.
multi_v7_defconfig supports i.MX6 too. It gets 7, which means MOVW/MOVT.

> Neither this patch nor the follow-up series started in qemu - both came
> out of product kernels running on real hardware.  What I verified under
> qemu is the version rewritten for bpf-next, because that is where I can
> run the whole test_bpf suite across several configurations and compare
> the emitted code.

bpf-next doesn't have test_bpf since October. See
commit 4532e525b286 ("selftests/bpf: Remove the old test_bpf module").
I doubt your claims.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads