* bpf: Request to add -mcpu=v4 support for ARM/MIPS/NFP/POWERPC/RISCV/S390/SPARC/X86_32
@ 2023-08-20 1:41 Yonghong Song
2023-08-21 2:23 ` Pu Lehui
2023-08-21 19:47 ` Jakub Kicinski
0 siblings, 2 replies; 5+ messages in thread
From: Yonghong Song @ 2023-08-20 1:41 UTC (permalink / raw)
To: Shubham Bansal, Johan Almbladh, Paul Burton, Jakub Kicinski,
Naveen N. Rao, Michael Ellerman, Luke Nelson, Xi Wang,
Björn Töpel, Ilya Leoshkevich, Heiko Carstens,
Vasily Gorbik, David S. Miller, Wang YanQing
Cc: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
Martin KaFai Lau, bpf
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?
Thanks!
Yonghong
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bpf: Request to add -mcpu=v4 support for ARM/MIPS/NFP/POWERPC/RISCV/S390/SPARC/X86_32
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
1 sibling, 1 reply; 5+ messages in thread
From: Pu Lehui @ 2023-08-21 2:23 UTC (permalink / raw)
To: yonghong.song, Shubham Bansal, Johan Almbladh, Paul Burton,
Jakub Kicinski, Naveen N. Rao, Michael Ellerman, Luke Nelson,
Xi Wang, Björn Töpel, Ilya Leoshkevich, Heiko Carstens,
Vasily Gorbik, David S. Miller, Wang YanQing
Cc: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
Martin KaFai Lau, bpf
Alright, riscv64 is already being adapted, will be sent soon.
On 2023/8/20 9:41, 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?
>
> Thanks!
>
> Yonghong
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bpf: Request to add -mcpu=v4 support for ARM/MIPS/NFP/POWERPC/RISCV/S390/SPARC/X86_32
2023-08-21 2:23 ` Pu Lehui
@ 2023-08-21 4:36 ` Yonghong Song
0 siblings, 0 replies; 5+ messages in thread
From: Yonghong Song @ 2023-08-21 4:36 UTC (permalink / raw)
To: Pu Lehui, Shubham Bansal, Johan Almbladh, Paul Burton,
Jakub Kicinski, Naveen N. Rao, Michael Ellerman, Luke Nelson,
Xi Wang, Björn Töpel, Ilya Leoshkevich, Heiko Carstens,
Vasily Gorbik, David S. Miller, Wang YanQing
Cc: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
Martin KaFai Lau, bpf
On 8/20/23 7:23 PM, Pu Lehui wrote:
> Alright, riscv64 is already being adapted, will be sent soon.
Thanks! Looking forward to the patch set.
>
> On 2023/8/20 9:41, 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?
>>
>> Thanks!
>>
>> Yonghong
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bpf: Request to add -mcpu=v4 support for ARM/MIPS/NFP/POWERPC/RISCV/S390/SPARC/X86_32
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 19:47 ` Jakub Kicinski
2023-08-22 10:06 ` Louis Peens
1 sibling, 1 reply; 5+ messages in thread
From: Jakub Kicinski @ 2023-08-21 19:47 UTC (permalink / raw)
To: Louis Peens
Cc: Yonghong Song, Shubham Bansal, Johan Almbladh, Paul Burton,
Naveen N. Rao, Michael Ellerman, Luke Nelson, Xi Wang,
Björn Töpel, Ilya Leoshkevich, Heiko Carstens,
Vasily Gorbik, David S. Miller, Wang YanQing, Alexei Starovoitov,
Daniel Borkmann, Andrii Nakryiko, Martin KaFai Lau, bpf
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?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bpf: Request to add -mcpu=v4 support for ARM/MIPS/NFP/POWERPC/RISCV/S390/SPARC/X86_32
2023-08-21 19:47 ` Jakub Kicinski
@ 2023-08-22 10:06 ` Louis Peens
0 siblings, 0 replies; 5+ messages in thread
From: Louis Peens @ 2023-08-22 10:06 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Yonghong Song, Shubham Bansal, Johan Almbladh, Paul Burton,
Naveen N. Rao, Michael Ellerman, Luke Nelson, Xi Wang,
Björn Töpel, Ilya Leoshkevich, Heiko Carstens,
Vasily Gorbik, David S. Miller, Wang YanQing, Alexei Starovoitov,
Daniel Borkmann, Andrii Nakryiko, Martin KaFai Lau, bpf
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-08-22 10:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox