[RESEND PATCH 3/3] net: tipc: remove unused hardirq.h

2018-01-08 Thread Yang Shi
Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by TIPC at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alibaba-inc.com> Acked-by: Ying Xue <ying@windriver.com> Tested-by: Yi

[RESEND PATCH 2/3] net: ovs: remove unused hardirq.h

2018-01-08 Thread Yang Shi
Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by openvswitch at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alibaba-inc.com> Acked-by: Pravin B Shelar <pshe...@ovn.org> Cc: "Dav

[RESEND PATCH 1/3] net: caif: remove unused hardirq.h

2018-01-08 Thread Yang Shi
Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by caif at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alibaba-inc.com> Cc: Dmitry Tarnyagin <dmitry.tarnya...@lockless.no> Cc: "Dav

Re: [PATCH 8/8] net: tipc: remove unused hardirq.h

2018-01-08 Thread Yang Shi
On 1/5/18 7:17 AM, David Miller wrote: From: "Yang Shi" <yan...@alibaba-inc.com> Date: Fri, 05 Jan 2018 06:46:48 +0800 Any more comment on this change? These patches were not really submitted properly. If you post a series, the series goes to one destinat

Re: [PATCH 6/8] net: caif: remove unused hardirq.h

2018-01-04 Thread Yang Shi
Hi David, I'm not sure if CAIF is still maintained by Dmitry Tarnyagin. Do you have any comment on this one? Thanks, Yang On 12/7/17 11:13 AM, Yang Shi wrote: Hi folks, Any comment on this one? Thanks, Yang On 11/17/17 3:02 PM, Yang Shi wrote: Preempt counter APIs have been split out

Re: [ovs-dev] [PATCH 7/8] net: ovs: remove unused hardirq.h

2018-01-04 Thread Yang Shi
Hi David, Any comment is appreciated. Thanks, Yang On 12/7/17 11:27 AM, Pravin Shelar wrote: On Fri, Nov 17, 2017 at 3:02 PM, Yang Shi <yan...@alibaba-inc.com> wrote: Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are no

Re: [PATCH 8/8] net: tipc: remove unused hardirq.h

2018-01-04 Thread Yang Shi
Hi David, Any more comment on this change? Thanks, Yang On 12/7/17 5:40 PM, Ying Xue wrote: On 11/18/2017 07:02 AM, Yang Shi wrote: Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by TIPC at all. So, remove the unused

Re: [PATCH 8/8] net: tipc: remove unused hardirq.h

2017-12-07 Thread Yang Shi
On 12/7/17 11:20 AM, Jon Maloy wrote: -Original Message- From: netdev-ow...@vger.kernel.org [mailto:netdev- ow...@vger.kernel.org] On Behalf Of Yang Shi Sent: Thursday, December 07, 2017 14:16 To: linux-ker...@vger.kernel.org Cc: linux...@kvack.org; linux-fsde...@vger.kernel.org

Re: [PATCH 8/8] net: tipc: remove unused hardirq.h

2017-12-07 Thread Yang Shi
Hi folks, Any comment on this one? Thanks, Yang On 11/17/17 3:02 PM, Yang Shi wrote: Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by TIPC at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alib

Re: [PATCH 7/8] net: ovs: remove unused hardirq.h

2017-12-07 Thread Yang Shi
Hi folks, Any comment on this one? Thanks, Yang On 11/17/17 5:48 PM, Yang Shi wrote: It looks the email address of Pravin in MAINTAINERS file is obsolete, sent to the right address. Yang On 11/17/17 3:02 PM, Yang Shi wrote: Preempt counter APIs have been split out, currently, hardirq.h

Re: [PATCH 6/8] net: caif: remove unused hardirq.h

2017-12-07 Thread Yang Shi
Hi folks, Any comment on this one? Thanks, Yang On 11/17/17 3:02 PM, Yang Shi wrote: Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by caif at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alib

Re: [PATCH 4/8] vfs: remove unused hardirq.h

2017-12-07 Thread Yang Shi
Hi folks, Any comment on this one? Thanks, Yang On 11/17/17 3:02 PM, Yang Shi wrote: Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by vfs at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alib

Re: [PATCH 5/8] crypto: remove unused hardirq.h

2017-11-20 Thread Yang Shi
The email to Herbert is returned, resent it. Yang On 11/17/17 3:02 PM, Yang Shi wrote: Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by crypto at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <

Re: [PATCH 7/8] net: ovs: remove unused hardirq.h

2017-11-17 Thread Yang Shi
It looks the email address of Pravin in MAINTAINERS file is obsolete, sent to the right address. Yang On 11/17/17 3:02 PM, Yang Shi wrote: Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by openvswitch at all. So, remove

[PATCH 5/8] crypto: remove unused hardirq.h

2017-11-17 Thread Yang Shi
Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by crypto at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alibaba-inc.com> Cc: Herbert Xu <herb...@gondor.apana.org.au> Cc: "Dav

[PATCH 2/8] fs: pstore: remove unused hardirq.h

2017-11-17 Thread Yang Shi
Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by pstore at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alibaba-inc.com> Cc: Kees Cook <keesc...@chromium.org> Cc: Anton Vorontsov <an...

[PATCH 3/8] fs: btrfs: remove unused hardirq.h

2017-11-17 Thread Yang Shi
Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by btrfs at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alibaba-inc.com> Cc: Chris Mason <c...@fb.com> Cc: Josef Bacik <jba...@fb.com>

[PATCH 7/8] net: ovs: remove unused hardirq.h

2017-11-17 Thread Yang Shi
Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by openvswitch at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alibaba-inc.com> Cc: Pravin Shelar <pshe...@nicira.com> Cc: "Dav

[PATCH 4/8] vfs: remove unused hardirq.h

2017-11-17 Thread Yang Shi
Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by vfs at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alibaba-inc.com> Cc: Alexander Viro <v...@zeniv.linux.org.uk> --- fs/dcache.c

[PATCH 8/8] net: tipc: remove unused hardirq.h

2017-11-17 Thread Yang Shi
Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by TIPC at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alibaba-inc.com> Cc: Jon Maloy <jon.ma...@ericsson.com> Cc: Ying Xue <ying@wi

[PATCH 6/8] net: caif: remove unused hardirq.h

2017-11-17 Thread Yang Shi
Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by caif at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alibaba-inc.com> Cc: Dmitry Tarnyagin <dmitry.tarnya...@lockless.no> Cc: "Dav

[PATCH 1/8] mm: kmemleak: remove unused hardirq.h

2017-11-17 Thread Yang Shi
Preempt counter APIs have been split out, currently, hardirq.h just includes irq_enter/exit APIs which are not used by kmemleak at all. So, remove the unused hardirq.h. Signed-off-by: Yang Shi <yan...@alibaba-inc.com> Cc: Michal Hocko <mho...@suse.com> Cc: Andrew Morton

[PATCH v2 net-next] bpf: arm64: remove callee-save registers use for tmp registers

2016-05-16 Thread Yang Shi
for temp registers which not need to be saved/restored during function call. So, replace R23 and R24 to R10 and R11, and remove tmp_used flag to save 2 instructions for some jited BPF program. CC: Daniel Borkmann <dan...@iogearbox.net> Acked-by: Zi Shen Lim <zlim@gmail.com> Signed-off-

[PATCH net-next] bpf: arm64: remove callee-save registers use for tmp registers

2016-05-16 Thread Yang Shi
for temp registers which not need to be saved/restored during function call. So, replace R23 and R24 to R10 and R11, and remove tmp_used flag. CC: Zi Shen Lim <zlim@gmail.com> CC: Daniel Borkmann <dan...@iogearbox.net> Signed-off-by: Yang Shi <yang@linaro.org> --- Apply

[RESEND PATCH] arm64: bpf: add 'store immediate' instruction

2015-11-30 Thread Yang Shi
aarch64 doesn't have native store immediate instruction, such operation has to be implemented by the below instruction sequence: Load immediate to register Store register Signed-off-by: Yang Shi <yang@linaro.org> CC: Zi Shen Lim <zlim@gmail.com> CC: Xi Wang <xi.w...@gmai

[PATCH V4 2/2] arm64: bpf: make BPF prologue and epilogue align with ARM64 AAPCS

2015-11-16 Thread Yang Shi
n call stack | | +-+ low CC: Zi Shen Lim <zlim@gmail.com> CC: Xi Wang <xi.w...@gmail.com> Signed-off-by: Yang Shi <yang@linaro.org> --- V4 --> V3: * Save/restore x25 and x26 V3 --> V2: * Make FP point to FP' * Fix a compile warning

[PATCH V3 2/2] arm64: bpf: make BPF prologue and epilogue align with ARM64 AAPCS

2015-11-13 Thread Yang Shi
n call stack | | +-+ low CC: Zi Shen Lim <zlim@gmail.com> CC: Xi Wang <xi.w...@gmail.com> Signed-off-by: Yang Shi <yang@linaro.org> --- V3 --> V2: * Make FP point to FP' * Fix a

[PATCH V2 0/2] arm64: bpf: correct JIT stack setup and make it align with ARM64 AAPCS

2015-11-12 Thread Yang Shi
Changelog in V2: Split to two patches according to the suggestion from Zi Shen Lim Show A64_FP in stack layout diagram Correct "+64" to "-64" Yang Shi (2): arm64: bpf: fix JIT frame pointer setup arm64: bpf: make BPF prologue and epilogue align with ARM64 AA

[PATCH 2/2] arm64: bpf: make BPF prologue and epilogue align with ARM64 AAPCS

2015-11-12 Thread Yang Shi
all stack | | +-+ low CC: Zi Shen Lim <zlim@gmail.com> CC: Xi Wang <xi.w...@gmail.com> Signed-off-by: Yang Shi <yang@linaro.org> --- arch/arm64/net/bpf_jit_comp.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(

[PATCH 1/2] arm64: bpf: fix JIT frame pointer setup

2015-11-12 Thread Yang Shi
BPF fp should point to the top of the BPF prog stack. The original implementation made it point to the bottom incorrectly. Move A64_SP to fp before reserve BPF prog stack space. CC: Zi Shen Lim <zlim@gmail.com> CC: Xi Wang <xi.w...@gmail.com> Signed-off-by: Yang Shi <yang

[PATCH] bpf: samples: exclude asm/sysreg.h for arm64

2015-11-12 Thread Yang Shi
e sysreg.h is useless for BPF samples, just exclude it from Makefile via defining __ASM_SYSREG_H. Signed-off-by: Yang Shi <yang@linaro.org> --- samples/bpf/Makefile | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index

[PATCH 1/2] arm64: bpf: add 'store immediate' instruction

2015-11-10 Thread Yang Shi
aarch64 doesn't have native store immediate instruction, such operation has to be implemented by the below instruction sequence: Load immediate to register Store register Signed-off-by: Yang Shi <yang@linaro.org> CC: Zi Shen Lim <zlim@gmail.com> CC: Xi Wang <xi.w...@gmail

[PATCH 2/2] arm64: bpf: add BPF XADD instruction

2015-11-10 Thread Yang Shi
aarch64 doesn't have native support for XADD instruction, implement it by the below instruction sequence: Load (dst + off) to a register Add src to it Store it back to (dst + off) Signed-off-by: Yang Shi <yang@linaro.org> CC: Zi Shen Lim <zlim@gmail.com> CC: Xi Wang <xi

[PATCH] arm64: bpf: fix JIT stack setup

2015-11-06 Thread Yang Shi
A64_SP => +-+ | | | ... | Function call stack | | +-+ low Signed-off-by: Yang Shi <yang@linaro.org> CC: Zi Shen Lim <zlim@gmail.com> CC: Xi Wa

[PATCH] arm64: bpf: fix JIT stack setup

2015-11-06 Thread Yang Shi
A64_SP => +-+ | | | ... | Function call stack | | +-+ low Signed-off-by: Yang Shi <yang@linaro.org> CC: Zi Shen Lim <zlim@gmail.com> CC: Xi Wa

[PATCH] bpf: doc: correct arch list for supported eBPF JIT

2015-11-06 Thread Yang Shi
aarch64 and s390x support eBPF JIT too, correct document to reflect this and avoid any confusion. Signed-off-by: Yang Shi <yang@linaro.org> --- Documentation/networking/filter.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/networking/filter.

[PATCH] bpf: add mod default A and X test cases

2015-11-04 Thread Yang Shi
When running "mod X" operation, if X is 0 the filter has to be halt. Add new test cases to cover A = A mod X if X is 0, and A = A mod 1. CC: Xi Wang <xi.w...@gmail.com> CC: Zi Shen Lim <zlim@gmail.com> Signed-off-by: Yang Shi <yang@linaro.org&

[PATCH] bpf: convert hashtab lock to raw lock

2015-10-30 Thread Yang Shi
8083 7560: 008751e0 8000 0001 124e2d1d 00107b77 Convert hashtab lock to raw lock to avoid such warning. Signed-off-by: Yang Shi <yang@linaro.org> --- This patch is applicable to mainline kernel too. kernel/bpf/hashtab.

[PATCH] bpf: sample: define aarch64 specific registers

2015-10-26 Thread Yang Shi
Define aarch64 specific registers for building bpf samples correctly. Signed-off-by: Yang Shi <yang@linaro.org> --- samples/bpf/bpf_helpers.h | 12 1 file changed, 12 insertions(+) diff --git a/samples/bpf/bpf_helpers.h b/samples/bpf/bpf_helpers.h index 3a44d3a..af44e56