All of lore.kernel.org
 help / color / mirror / Atom feed
From: Louis Peens <louis.peens@corigine.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: "Yonghong Song" <yonghong.song@linux.dev>,
	"Shubham Bansal" <illusionist.neo@gmail.com>,
	"Johan Almbladh" <johan.almbladh@anyfinetworks.com>,
	"Paul Burton" <paulburton@kernel.org>,
	"Naveen N. Rao" <naveen.n.rao@linux.ibm.com>,
	"Michael Ellerman" <mpe@ellerman.id.au>,
	"Luke Nelson" <luke.r.nels@gmail.com>,
	"Xi Wang" <xi.wang@gmail.com>, "Björn Töpel" <bjorn@kernel.org>,
	"Ilya Leoshkevich" <iii@linux.ibm.com>,
	"Heiko Carstens" <hca@linux.ibm.com>,
	"Vasily Gorbik" <gor@linux.ibm.com>,
	"David S. Miller" <davem@davemloft.net>,
	"Wang YanQing" <udknight@gmail.com>,
	"Alexei Starovoitov" <ast@kernel.org>,
	"Daniel Borkmann" <daniel@iogearbox.net>,
	"Andrii Nakryiko" <andrii@kernel.org>,
	"Martin KaFai Lau" <martin.lau@kernel.org>,
	bpf <bpf@vger.kernel.org>
Subject: Re: bpf: Request to add -mcpu=v4 support for ARM/MIPS/NFP/POWERPC/RISCV/S390/SPARC/X86_32
Date: Tue, 22 Aug 2023 12:06:57 +0200	[thread overview]
Message-ID: <ZOSIwWu4nJuYayJn@LouisNoVo> (raw)
In-Reply-To: <20230821124711.15babfee@kernel.org>

On Mon, Aug 21, 2023 at 12:47:11PM -0700, Jakub Kicinski wrote:
> On Sat, 19 Aug 2023 18:41:30 -0700 Yonghong Song wrote:
> > Hi,
> > 
> > A new set of bpf insns have been recently added in llvm with flag
> > [-mcpu=v4](https://reviews.llvm.org/D144829). In the kernel,
> > x86_64 and arm64 have implemented -mcpu=v4 support:
> >    x86_64: 
> > https://lore.kernel.org/all/20230728011143.3710005-1-yonghong.song@linux.dev/
> >    arm64: 
> > https://lore.kernel.org/bpf/20230815154158.717901-1-xukuohai@huaweicloud.com/
> > 
> > The following arch's do not have -mcpu=v4 support yet:
> >    arm, mips, nfp, powerpc, riscv, sc90, sparc and x86_32
> > 
> > If you have a chance, could you take a look at what
> > x86_64/arm64 does and add support to the above arch'es?
> 
> Louis, is anyone on your side still working on BPF for NFP?
> div/mod and the jump will be impossible but there may be instructions
> for sign extend or bswap?
There isn't a lot of activity on the BPF side for nfp, but here and
there some things do get addressed. I will run it past the team, it does
seem like those might be possible with the architecture - thanks for the
ping.

      reply	other threads:[~2023-08-22 10:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-20  1:41 bpf: Request to add -mcpu=v4 support for ARM/MIPS/NFP/POWERPC/RISCV/S390/SPARC/X86_32 Yonghong Song
2023-08-21  2:23 ` Pu Lehui
2023-08-21  4:36   ` Yonghong Song
2023-08-21 19:47 ` Jakub Kicinski
2023-08-22 10:06   ` Louis Peens [this message]

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=ZOSIwWu4nJuYayJn@LouisNoVo \
    --to=louis.peens@corigine.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bjorn@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=iii@linux.ibm.com \
    --cc=illusionist.neo@gmail.com \
    --cc=johan.almbladh@anyfinetworks.com \
    --cc=kuba@kernel.org \
    --cc=luke.r.nels@gmail.com \
    --cc=martin.lau@kernel.org \
    --cc=mpe@ellerman.id.au \
    --cc=naveen.n.rao@linux.ibm.com \
    --cc=paulburton@kernel.org \
    --cc=udknight@gmail.com \
    --cc=xi.wang@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.