* Re: [PATCH bpf-next v3] bpf, arm32: build constants inline instead of using a literal pool
[not found] <20261122195600.2573516-1-ramin.moussavi@yacoub.de>
@ 2026-11-29 23:28 ` Ramin Moussavi
2026-11-30 1:00 ` Alexei Starovoitov
0 siblings, 1 reply; 4+ messages in thread
From: Ramin Moussavi @ 2026-11-29 23:28 UTC (permalink / raw)
To: Russell King, Puranjay Mohan
Cc: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
Ihor Solodrai, Richard Cochran, David S. Miller, Nicolas Schichan,
bpf, netdev, linux-arm-kernel, linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH bpf-next v3] bpf, arm32: build constants inline instead of using a literal pool
2026-11-29 23:28 ` [PATCH bpf-next v3] bpf, arm32: build constants inline instead of using a literal pool Ramin Moussavi
@ 2026-11-30 1:00 ` Alexei Starovoitov
2026-11-30 20:13 ` Ramin Moussavi
0 siblings, 1 reply; 4+ messages in thread
From: Alexei Starovoitov @ 2026-11-30 1:00 UTC (permalink / raw)
To: Ramin Moussavi, Russell King, Puranjay Mohan
Cc: Daniel Borkmann, Andrii Nakryiko, Eduard Zingerman,
Kumar Kartikeya Dwivedi, Martin KaFai Lau, Song Liu,
Yonghong Song, Jiri Olsa, Emil Tsalapatis, Ihor Solodrai,
Richard Cochran, David S. Miller, Nicolas Schichan, bpf, netdev,
linux-arm-kernel, linux-kernel
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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH bpf-next v3] bpf, arm32: build constants inline instead of using a literal pool
2026-11-30 1:00 ` Alexei Starovoitov
@ 2026-11-30 20:13 ` Ramin Moussavi
2026-12-01 3:13 ` Alexei Starovoitov
0 siblings, 1 reply; 4+ messages in thread
From: Ramin Moussavi @ 2026-11-30 20:13 UTC (permalink / raw)
To: Alexei Starovoitov, Russell King, Puranjay Mohan
Cc: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
Ihor Solodrai, Richard Cochran, David S. Miller, Nicolas Schichan,
bpf, netdev, linux-arm-kernel, linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH bpf-next v3] bpf, arm32: build constants inline instead of using a literal pool
2026-11-30 20:13 ` Ramin Moussavi
@ 2026-12-01 3:13 ` Alexei Starovoitov
0 siblings, 0 replies; 4+ messages in thread
From: Alexei Starovoitov @ 2026-12-01 3:13 UTC (permalink / raw)
To: Ramin Moussavi, Russell King, Puranjay Mohan
Cc: Daniel Borkmann, Andrii Nakryiko, Eduard Zingerman,
Kumar Kartikeya Dwivedi, Martin KaFai Lau, Song Liu,
Yonghong Song, Jiri Olsa, Emil Tsalapatis, Ihor Solodrai,
Richard Cochran, David S. Miller, Nicolas Schichan, bpf, netdev,
linux-arm-kernel, linux-kernel
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-12-01 3:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20261122195600.2573516-1-ramin.moussavi@yacoub.de>
2026-11-29 23:28 ` [PATCH bpf-next v3] bpf, arm32: build constants inline instead of using a literal pool Ramin Moussavi
2026-11-30 1:00 ` Alexei Starovoitov
2026-11-30 20:13 ` Ramin Moussavi
2026-12-01 3:13 ` Alexei Starovoitov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox