Message ID | 20230907230550.1417590-1-puranjay12@gmail.com |
---|---|
Headers | show |
Series | arm32, bpf: add support for cpuv4 insns | expand |
On Thu, Sep 07, 2023 at 11:05:47PM +0000, Puranjay Mohan wrote: > ARM32 doesn't have instructions to do 64-bit/64-bit divisions. So, to > implement the following instructions: > BPF_ALU64 | BPF_DIV > BPF_ALU64 | BPF_MOD > BPF_ALU64 | BPF_SDIV > BPF_ALU64 | BPF_SMOD > > We implement the above instructions by doing function calls to div64_u64() > and div64_u64_rem() for unsigned division/mod and calls to div64_s64() > for signed division/mod. > > Signed-off-by: Puranjay Mohan <puranjay12@gmail.com> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Thanks!
On Fri, Sep 8, 2023 at 10:37 AM Russell King (Oracle) <linux@armlinux.org.uk> wrote: > > On Thu, Sep 07, 2023 at 11:05:50PM +0000, Puranjay Mohan wrote: > > As Shubham has been inactive since 2017, Add myself for ARM32 BPF JIT. > > > > Signed-off-by: Puranjay Mohan <puranjay12@gmail.com> > > --- > > MAINTAINERS | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 612d6d1dbf36..c241856819bd 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -3602,9 +3602,10 @@ F: Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml > > F: drivers/iio/accel/bma400* > > > > BPF JIT for ARM > > -M: Shubham Bansal <illusionist.neo@gmail.com> > > +M: Puranjay Mohan <puranjay12@gmail.com> > > +R: Shubham Bansal <illusionist.neo@gmail.com> > > Don't forget that I also want to review the changes, but I guess my > arch/arm entry will cover this too. > Yes, arch/arm automatically adds you for all patches. Thanks, Puranjay
On 9/8/23 10:37 AM, Russell King (Oracle) wrote: > On Thu, Sep 07, 2023 at 11:05:50PM +0000, Puranjay Mohan wrote: >> As Shubham has been inactive since 2017, Add myself for ARM32 BPF JIT. >> >> Signed-off-by: Puranjay Mohan <puranjay12@gmail.com> >> --- >> MAINTAINERS | 5 +++-- >> 1 file changed, 3 insertions(+), 2 deletions(-) >> >> diff --git a/MAINTAINERS b/MAINTAINERS >> index 612d6d1dbf36..c241856819bd 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -3602,9 +3602,10 @@ F: Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml >> F: drivers/iio/accel/bma400* >> >> BPF JIT for ARM >> -M: Shubham Bansal <illusionist.neo@gmail.com> >> +M: Puranjay Mohan <puranjay12@gmail.com> >> +R: Shubham Bansal <illusionist.neo@gmail.com> > > Don't forget that I also want to review the changes, but I guess my > arch/arm entry will cover this too. If there are no objections from all parties, it would be nice/better if both of you (Puranjay & Russell) could be explicitly added here as maintainers. Thanks, Daniel
On Fri, Sep 8, 2023 at 3:49 PM Daniel Borkmann <daniel@iogearbox.net> wrote: > > On 9/8/23 10:37 AM, Russell King (Oracle) wrote: > > On Thu, Sep 07, 2023 at 11:05:50PM +0000, Puranjay Mohan wrote: > >> As Shubham has been inactive since 2017, Add myself for ARM32 BPF JIT. > >> > >> Signed-off-by: Puranjay Mohan <puranjay12@gmail.com> > >> --- > >> MAINTAINERS | 5 +++-- > >> 1 file changed, 3 insertions(+), 2 deletions(-) > >> > >> diff --git a/MAINTAINERS b/MAINTAINERS > >> index 612d6d1dbf36..c241856819bd 100644 > >> --- a/MAINTAINERS > >> +++ b/MAINTAINERS > >> @@ -3602,9 +3602,10 @@ F: Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml > >> F: drivers/iio/accel/bma400* > >> > >> BPF JIT for ARM > >> -M: Shubham Bansal <illusionist.neo@gmail.com> > >> +M: Puranjay Mohan <puranjay12@gmail.com> > >> +R: Shubham Bansal <illusionist.neo@gmail.com> > > > > Don't forget that I also want to review the changes, but I guess my > > arch/arm entry will cover this too. > > If there are no objections from all parties, it would be nice/better if both of > you (Puranjay & Russell) could be explicitly added here as maintainers. Yes, I agree with that. Russell knows more about ARM than anyone else! If I send another version for any other comments I get, I will include this change. But if this version of the series is applied, can you make this change while applying the patch? > > Thanks, > Daniel Thanks, Puranjay
On Fri, Sep 8, 2023 at 7:50 AM Puranjay Mohan <puranjay12@gmail.com> wrote: > > On Fri, Sep 8, 2023 at 3:49 PM Daniel Borkmann <daniel@iogearbox.net> wrote: > > > > On 9/8/23 10:37 AM, Russell King (Oracle) wrote: > > > On Thu, Sep 07, 2023 at 11:05:50PM +0000, Puranjay Mohan wrote: > > >> As Shubham has been inactive since 2017, Add myself for ARM32 BPF JIT. > > >> > > >> Signed-off-by: Puranjay Mohan <puranjay12@gmail.com> > > >> --- > > >> MAINTAINERS | 5 +++-- > > >> 1 file changed, 3 insertions(+), 2 deletions(-) > > >> > > >> diff --git a/MAINTAINERS b/MAINTAINERS > > >> index 612d6d1dbf36..c241856819bd 100644 > > >> --- a/MAINTAINERS > > >> +++ b/MAINTAINERS > > >> @@ -3602,9 +3602,10 @@ F: Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml > > >> F: drivers/iio/accel/bma400* > > >> > > >> BPF JIT for ARM > > >> -M: Shubham Bansal <illusionist.neo@gmail.com> > > >> +M: Puranjay Mohan <puranjay12@gmail.com> > > >> +R: Shubham Bansal <illusionist.neo@gmail.com> > > > > > > Don't forget that I also want to review the changes, but I guess my > > > arch/arm entry will cover this too. > > > > If there are no objections from all parties, it would be nice/better if both of > > you (Puranjay & Russell) could be explicitly added here as maintainers. > > Yes, I agree with that. Russell knows more about ARM than anyone else! > > If I send another version for any other comments I get, I will include > this change. > But if this version of the series is applied, can you make this change > while applying the patch? I removed Shubham, since he didn't touch the code in years and added Russell while applying. Thanks a lot for upgrading the status of arm jit to Maintained ! This has been long overdue. We see increased use of BPF on arm32.