Re: [PATCH 2/4] samples/bpf: Use llc in PATH, rather than a hardcoded value

2016-04-01 Thread Naveen N. Rao
On 2016/03/31 08:19PM, Daniel Borkmann wrote: > On 03/31/2016 07:46 PM, Alexei Starovoitov wrote: > >On 3/31/16 4:25 AM, Naveen N. Rao wrote: > >> clang $(NOSTDINC_FLAGS) $(LINUXINCLUDE) $(EXTRA_CFLAGS) \ > >> -D__KERNEL__ -D__ASM_SYSREG_H -Wno-unused-value -Wno-pointer-sign > >> \

Re: [PATCH 4/4] samples/bpf: Enable powerpc support

2016-04-01 Thread Naveen N. Rao
On 2016/03/31 10:52AM, Alexei Starovoitov wrote: > On 3/31/16 4:25 AM, Naveen N. Rao wrote: > ... > >+ > >+#ifdef __powerpc__ > >+#define BPF_KPROBE_READ_RET_IP(ip, ctx) { (ip) = (ctx)->link; } > >+#define BPF_KRETPROBE_READ_RET_IP(ip, ctx) BPF_KPROBE_READ_RET_IP(ip, ctx) > >+#else >

Re: [PATCH 2/4] samples/bpf: Use llc in PATH, rather than a hardcoded value

2016-04-01 Thread Alexei Starovoitov
On 4/1/16 7:37 AM, Naveen N. Rao wrote: On 2016/03/31 08:19PM, Daniel Borkmann wrote: On 03/31/2016 07:46 PM, Alexei Starovoitov wrote: On 3/31/16 4:25 AM, Naveen N. Rao wrote: clang $(NOSTDINC_FLAGS) $(LINUXINCLUDE) $(EXTRA_CFLAGS) \ -D__KERNEL__ -D__ASM_SYSREG_H

Re: [RFC PATCH 6/6] ppc: ebpf/jit: Implement JIT compiler for extended BPF

2016-04-01 Thread Alexei Starovoitov
On 4/1/16 2:58 AM, Naveen N. Rao wrote: PPC64 eBPF JIT compiler. Works for both ABIv1 and ABIv2. Enable with: echo 1 > /proc/sys/net/core/bpf_jit_enable or echo 2 > /proc/sys/net/core/bpf_jit_enable ... to see the generated JIT code. This can further be processed with tools/net/bpf_jit_disasm.

Re: [PATCH 4/4] samples/bpf: Enable powerpc support

2016-04-01 Thread Alexei Starovoitov
On 4/1/16 7:41 AM, Naveen N. Rao wrote: On 2016/03/31 10:52AM, Alexei Starovoitov wrote: On 3/31/16 4:25 AM, Naveen N. Rao wrote: ... + +#ifdef __powerpc__ +#define BPF_KPROBE_READ_RET_IP(ip, ctx){ (ip) = (ctx)->link; } +#define BPF_KRETPROBE_READ_RET_IP(ip, ctx)

Re: [RFC PATCH 6/6] ppc: ebpf/jit: Implement JIT compiler for extended BPF

2016-04-01 Thread Daniel Borkmann
On 04/01/2016 08:10 PM, Alexei Starovoitov wrote: On 4/1/16 2:58 AM, Naveen N. Rao wrote: PPC64 eBPF JIT compiler. Works for both ABIv1 and ABIv2. Enable with: echo 1 > /proc/sys/net/core/bpf_jit_enable or echo 2 > /proc/sys/net/core/bpf_jit_enable ... to see the generated JIT code. This can

Re: [PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-04-01 Thread Hari Bathini
On 04/01/2016 04:07 PM, Michael Ellerman wrote: On Fri, 2016-04-01 at 12:23 +0530, Hari Bathini wrote: On 04/01/2016 11:44 AM, Michael Ellerman wrote: On Wed, 2016-03-30 at 23:49 +0530, Hari Bathini wrote: Some of the interrupt vectors on 64-bit POWER server processors are only 32 bytes

Re: [PATCH] ftrace: filter: Match dot symbols when searching functions on ppc64.

2016-04-01 Thread kbuild test robot
Hi Thiago, [auto build test ERROR on v4.6-rc1] [also build test ERROR on next-20160401] [cannot apply to tip/perf/core] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Thiago-Jung-Bauermann

Re: [PATCH] ftrace: filter: Match dot symbols when searching functions on ppc64.

2016-04-01 Thread Thiago Jung Bauermann
Am Samstag, 02 April 2016, 03:51:21 schrieb kbuild test robot: > >> arch/powerpc/include/asm/ftrace.h:62:5: error: "CONFIG_PPC64" is not > >> defined [-Werror=undef] > #if CONFIG_PPC64 && (!defined(_CALL_ELF) || _CALL_ELF != 2) > ^ >cc1: all warnings being treated as errors I

Re: [v7, 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-04-01 Thread Stephen Boyd
On 03/31/2016 08:07 PM, Yangbo Lu wrote: > drivers/clk/clk-qoriq.c | 3 +-- > For clk part: Acked-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH] powerpc: ppc4xx: drop unused variable

2016-04-01 Thread Linus Walleij
On Fri, Apr 1, 2016 at 4:31 AM, Michael Ellerman wrote: > On Thu, 2016-03-31 at 14:57 +0200, Linus Walleij wrote: >> On Thu, Mar 31, 2016 at 12:09 PM, Michael Ellerman >> wrote: >> >> > If you feel like cross building powerpc in future it should be as

Re: [PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-04-01 Thread Hari Bathini
On 04/01/2016 11:44 AM, Michael Ellerman wrote: On Wed, 2016-03-30 at 23:49 +0530, Hari Bathini wrote: Some of the interrupt vectors on 64-bit POWER server processors are only 32 bytes long (8 instructions), which is not enough for the full ... Let us fix this undependable code path by

Re: [PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-04-01 Thread Gabriel Paubert
Hi Michael, On Fri, Apr 01, 2016 at 05:14:35PM +1100, Michael Ellerman wrote: > On Wed, 2016-03-30 at 23:49 +0530, Hari Bathini wrote: > > Some of the interrupt vectors on 64-bit POWER server processors are > > only 32 bytes long (8 instructions), which is not enough for the full > ... > >

[RFC PATCH 2/6] ppc: bpf/jit: Optimize 64-bit Immediate loads

2016-04-01 Thread Naveen N. Rao
Similar to the LI32() optimization, if the value can be represented in 32-bits, use LI32(). Also handle loading a few specific forms of immediate values in an optimum manner. While at it, remove the semicolon at the end of the macro! Cc: Matt Evans Cc: Michael Ellerman

[RFC PATCH 6/6] ppc: ebpf/jit: Implement JIT compiler for extended BPF

2016-04-01 Thread Naveen N. Rao
PPC64 eBPF JIT compiler. Works for both ABIv1 and ABIv2. Enable with: echo 1 > /proc/sys/net/core/bpf_jit_enable or echo 2 > /proc/sys/net/core/bpf_jit_enable ... to see the generated JIT code. This can further be processed with tools/net/bpf_jit_disasm. With CONFIG_TEST_BPF=m and 'modprobe

[GIT PULL] Please pull powerpc/linux.git powerpc-4.6-2 tag

2016-04-01 Thread Michael Ellerman
Hi Linus, Please pull powerpc fixes for 4.6: The following changes since commit f55532a0c0b8bb6148f4e07853b876ef73bc69ca: Linux 4.6-rc1 (2016-03-26 16:03:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git tags/powerpc-4.6-2

Re: [PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-04-01 Thread Michael Ellerman
On Fri, 2016-04-01 at 12:23 +0530, Hari Bathini wrote: > > On 04/01/2016 11:44 AM, Michael Ellerman wrote: > > On Wed, 2016-03-30 at 23:49 +0530, Hari Bathini wrote: > > > Some of the interrupt vectors on 64-bit POWER server processors are > > > only 32 bytes long (8 instructions), which is not

Re: [PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-04-01 Thread Michael Ellerman
On Fri, 2016-04-01 at 08:37 +0200, Gabriel Paubert wrote: > On Fri, Apr 01, 2016 at 05:14:35PM +1100, Michael Ellerman wrote: > > If you build an allmodconfig, and turn on CONFIG_RELOCATABLE, and then look > > at > > the disassembly, you see this: > > > > c0006ffc: 48 00 29 04

[RFC PATCH 1/6] ppc: bpf/jit: Fix/enhance 32-bit Load Immediate implementation

2016-04-01 Thread Naveen N. Rao
The existing LI32() macro can sometimes result in a sign-extended 32-bit load that does not clear the top 32-bits properly. As an example, loading 0x7fff results in the register containing 0x7fff. While this does not impact classic BPF JIT implementation (since that only uses the

[RFC PATCH 3/6] ppc: bpf/jit: Introduce rotate immediate instructions

2016-04-01 Thread Naveen N. Rao
Since we will be using the rotate immediate instructions for extended BPF JIT, let's introduce macros for the same. And since the shift immediate operations use the rotate immediate instructions, let's redo those macros to use the newly introduced instructions. Cc: Matt Evans

[RFC PATCH 5/6] ppc: bpf/jit: Isolate classic BPF JIT specifics into a separate header

2016-04-01 Thread Naveen N. Rao
Break out classic BPF JIT specifics into a separate header in preparation for eBPF JIT implementation. Note that ppc32 will still need the classic BPF JIT. Cc: Matt Evans Cc: Michael Ellerman Cc: Paul Mackerras Cc: Alexei Starovoitov

[PATCH] KVM: PPC:enable mmio_sign_extend in kvmppc_handle_load()

2016-04-01 Thread Bin Lu
The logic of 'kvmppc_handle_loads' is same as 'kvmppc_handle_load', but with sign extension. It sets mmio_sign_extend to 1, then calls 'kvmppc_handle_load', but in 'kvmppc_handle_load', the mmio_sign_extend flag is reset to 0, so the data does not actually get sign-extended. This patch fixes the

Re: [RFC PATCH 0/6] eBPF JIT for PPC64

2016-04-01 Thread Naveen N. Rao
On 2016/04/01 03:28PM, Naveen N Rao wrote: > Implement extended BPF JIT for ppc64. We retain the classic BPF JIT for > ppc32 and move ppc64 BE/LE to use the new JIT. Classic BPF filters will > be converted to extended BPF (see convert_filter()) and JIT'ed with the > new compiler. > > Most of the

Re: [PATCH 65/65] powerpc/mm/radix: Cputable update for radix

2016-04-01 Thread Aneesh Kumar K.V
Michael Ellerman writes: > [ text/plain ] > On Sun, 2016-03-27 at 13:54 +0530, Aneesh Kumar K.V wrote: > >> This patch move the existing p9 hash to a different PVR and add >> radix feature with p9 PVR. That implies we will not be able to >> runtime select P9 hash. With P9

[RFC PATCH 0/6] eBPF JIT for PPC64

2016-04-01 Thread Naveen N. Rao
Implement extended BPF JIT for ppc64. We retain the classic BPF JIT for ppc32 and move ppc64 BE/LE to use the new JIT. Classic BPF filters will be converted to extended BPF (see convert_filter()) and JIT'ed with the new compiler. Most of the existing macros are retained and fixed/enhanced where

[RFC PATCH 4/6] ppc: bpf/jit: A few cleanups

2016-04-01 Thread Naveen N. Rao
1. Per the ISA, ADDIS actually uses RT, rather than RS. Though the result is the same, make the usage clear. 2. The multiply instruction used is a 32-bit multiply. Rename PPC_MUL() to PPC_MULW() to make the same clear. 3. PPC_STW[U] take the entire 16-bit immediate value and do not require

Re: [v7, 0/5] Fix eSDHC host version register bug

2016-04-01 Thread Scott Wood
On Fri, 2016-04-01 at 11:07 +0800, Yangbo Lu wrote: > This patchset is used to fix a host version register bug in the T4240-R1.0 > -R2.0 > eSDHC controller. To get the SoC version and revision, it's needed to add > the > GUTS driver to access the global utilities registers. > > So, the first

[net-next PATCH 1/2 v4] ibmvnic: map L2/L3/L4 header descriptors to firmware

2016-04-01 Thread Thomas Falcon
Allow the VNIC driver to provide descriptors containing L2/L3/L4 headers to firmware. This feature is needed for greater hardware compatibility and enablement of checksum and TCP offloading features. A new function is included for the hypervisor call, H_SEND_SUBCRQ_INDIRECT, allowing a

[net-next PATCH 2/2 v4] ibmvnic: enable RX checksum offload

2016-04-01 Thread Thomas Falcon
Enable RX Checksum offload feature in the ibmvnic driver. Signed-off-by: Thomas Falcon Cc: John Allen --- v4: this patch included since it is enabled by the previous patch --- drivers/net/ethernet/ibm/ibmvnic.c | 4 1 file changed, 4

Re: [PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-04-01 Thread Michael Ellerman
On Wed, 2016-03-30 at 23:49 +0530, Hari Bathini wrote: > Some of the interrupt vectors on 64-bit POWER server processors are > only 32 bytes long (8 instructions), which is not enough for the full ... > Let us fix this undependable code path by moving these OOL handlers below > __end_interrupts

Re: [PATCH 65/65] powerpc/mm/radix: Cputable update for radix

2016-04-01 Thread Michael Ellerman
On Sun, 2016-03-27 at 13:54 +0530, Aneesh Kumar K.V wrote: > This patch move the existing p9 hash to a different PVR and add > radix feature with p9 PVR. That implies we will not be able to > runtime select P9 hash. With P9 Radix we need to do > > * set UPRT = 0 in cpu setup > * set different