Re: [PATCH v6] m68k, bpf: Add initial BPF JIT compiler support

From: Kuan-Wei Chiu

Date: Tue Sep 29 2026 - 10:34:53 EST


Hi Geert,

On Mon, Sep 28, 2026 at 02:15:43PM +0200, Geert Uytterhoeven wrote:
> Hi Kuwan-Wei,
>
> On Sun, 27 Sept 2026 at 22:55, Kuan-Wei Chiu <visitorckw@xxxxxxxxx> wrote:
> > Add a BPF JIT compiler for the m68k architecture.
> >
> > The JIT generates m68k machine code targeting m68020+ processors and
> > coldfire parts with an mmu (ISA_B/ISA_C). It excludes plain 68000/68010
> > and non-mmu coldfire processors, as it relies on 32-bit branch
> > displacements (b<cc>.l) to handle large bpf programs.
> >
> > Tested with the test_bpf.ko:
> > test_bpf: Summary: 1061 PASSED, 0 FAILED, [1049/1049 JIT'ed]
> > test_bpf: test_tail_calls: Summary: 10 PASSED, 0 FAILED, [10/10 JIT'ed]
> >
> > Tested-by: Daniel Palmer <daniel@xxxxxxxxx>
> > Co-developed-by: Greg Ungerer <gerg@xxxxxxxxxxxxxx>
> > Signed-off-by: Greg Ungerer <gerg@xxxxxxxxxxxxxx>
> > Signed-off-by: Kuan-Wei Chiu <visitorckw@xxxxxxxxx>
> > ---
> > Changes in v6:
> > - Fix kconfig sort order for HAVE_EBPF_JIT.
> > - Update eBPF-JIT/arch-support.txt
>
> Thanks for the update!
>
> Are any of the issues raised by the bpf-ci bot valid?
> Thanks!
>
Yeah, I'll address those and send out v7 shortly.

Regards,
Kuan-Wei