Re: [PATCH v4 0/8] bpf powerpc: Add BPF_PROBE_MEM support in powerpc JIT compiler

2021-10-03 Thread Michael Ellerman
Daniel Borkmann writes: > On 9/29/21 1:18 PM, Hari Bathini wrote: >> Patch #1 & #2 are simple cleanup patches. Patch #3 refactors JIT >> compiler code with the aim to simplify adding BPF_PROBE_MEM support. >> Patch #4 introduces PPC_RAW_BRANCH() macro instead of open coding >> branch instruction.

Re: [PATCH 09/10] i2c: pasemi: Add Apple platform driver

2021-10-03 Thread Sven Peter
On Wed, Sep 29, 2021, at 22:33, Wolfram Sang wrote: >> drivers/i2c/busses/i2c-pasemi-apple.c | 122 ++ > > Can't we name it 'i2c-pasemi-platform.c' instead? Makes more sense to me > because the other instance is named -pci. Sure, that's more consistent. I'll change the

Re: Add Apple M1 support to PASemi i2c driver

2021-10-03 Thread Sven Peter
Hi, On Fri, Oct 1, 2021, at 06:47, Christian Zigotzky wrote: > On 27 September 2021 at 07:39 am, Sven Peter wrote: > > Hi Christian, > > > > Thanks already for volunteering to test this! > > > Hello Sven, > > Damian (Hypex) has successfully tested the RC3 of kernel 5.15 with your > modified

Re: [PATCH v4 07/11] mm: kasan: Use is_kernel() helper

2021-10-03 Thread Andrey Konovalov
On Thu, Sep 30, 2021 at 9:09 AM Kefeng Wang wrote: > > Directly use is_kernel() helper in kernel_or_module_addr(). > > Cc: Andrey Ryabinin > Cc: Alexander Potapenko > Cc: Andrey Konovalov > Cc: Dmitry Vyukov > Signed-off-by: Kefeng Wang > --- > mm/kasan/report.c | 2 +- > 1 file changed, 1

Re: Add Apple M1 support to PASemi i2c driver

2021-10-03 Thread Christian Zigotzky
On 03 October 2021 at 04:36 pm, Sven Peter wrote: > Hi, > > > On Fri, Oct 1, 2021, at 06:47, Christian Zigotzky wrote: >> On 27 September 2021 at 07:39 am, Sven Peter wrote: >>  > Hi Christian, >>  > >>  > Thanks already for volunteering to test this! >>  > >> Hello Sven, >> >> Damian (Hypex) has

Re: [PATCH 6/9] powerpc/bpf: Fix BPF_SUB when imm == 0x80000000

2021-10-03 Thread Christophe Leroy
Le 01/10/2021 à 23:14, Naveen N. Rao a écrit : We aren't handling subtraction involving an immediate value of 0x8000 properly. Fix the same. Fixes: 156d0e290e969c ("powerpc/ebpf/jit: Implement JIT compiler for extended BPF") Signed-off-by: Naveen N. Rao ---

Re: [PATCH 4/9] powerpc/bpf: Handle large branch ranges with BPF_EXIT

2021-10-03 Thread Christophe Leroy
Le 01/10/2021 à 23:14, Naveen N. Rao a écrit : In some scenarios, it is possible that the program epilogue is outside the branch range for a BPF_EXIT instruction. Instead of rejecting such programs, emit an indirect branch. We track the size of the bpf program emitted after the initial run

Re: [PATCH 3/9] powerpc/bpf: Remove unused SEEN_STACK

2021-10-03 Thread Christophe Leroy
Le 01/10/2021 à 23:14, Naveen N. Rao a écrit : From: Ravi Bangoria SEEN_STACK is unused on PowerPC. Remove it. Also, have SEEN_TAILCALL use 0x4000. Why change SEEN_TAILCALL ? Would it be a problem to leave it as is ? Signed-off-by: Ravi Bangoria Reviewed-by: Christophe Leroy ---

Re: [PATCH 1/9] powerpc/lib: Add helper to check if offset is within conditional branch range

2021-10-03 Thread Christophe Leroy
Le 01/10/2021 à 23:14, Naveen N. Rao a écrit : Add a helper to check if a given offset is within the branch range for a powerpc conditional branch instruction, and update some sites to use the new helper. Signed-off-by: Naveen N. Rao --- arch/powerpc/include/asm/code-patching.h | 1 +

Re: [PATCH 2/9] powerpc/bpf: Validate branch ranges

2021-10-03 Thread Christophe Leroy
Le 01/10/2021 à 23:14, Naveen N. Rao a écrit : Add checks to ensure that we never emit branch instructions with truncated branch offsets. Suggested-by: Michael Ellerman Signed-off-by: Naveen N. Rao --- arch/powerpc/net/bpf_jit.h| 26 --