Re: [PATCH net-next 0/6] bpf: Enable BPF JIT on ppc32

2015-02-15 Thread Denis Kirjanov
On 2/15/15, Daniel Borkmann wrote: > On 02/15/2015 07:06 PM, Denis Kirjanov wrote: >> This patch series enables BPF JIT on ppc32. There are relatevily >> few chnages in the code to make it work. >> >> All test_bpf tests passed both on 7447a and P2041-based machines. > > I'm just wondering, next to

[PATCH] tick/broadcast-hrtimer : Fix suspicious RCU usage in idle loop

2015-02-15 Thread Preeti U Murthy
The hrtimer mode of broadcast queues hrtimers in the idle entry path so as to wakeup cpus in deep idle states. hrtimer_{start/cancel} functions call into tracing which uses RCU. But it is not legal to call into RCU in cpuidle because it is one of the quiescent states. Hence protect this region with

Re: suspicious RCU usage clockevents_lock, tick_broadcast_lock, hrtimer_bases.lock

2015-02-15 Thread Preeti U Murthy
On 02/16/2015 11:20 AM, Paul E. McKenney wrote: > On Mon, Feb 16, 2015 at 08:49:12AM +0530, Preeti U Murthy wrote: >> On 02/13/2015 07:56 PM, Paul E. McKenney wrote: >>> On Fri, Feb 13, 2015 at 12:52:45PM +0530, Preeti U Murthy wrote: On 02/13/2015 10:57 AM, Preeti U Murthy wrote: > On 02/

Re: suspicious RCU usage clockevents_lock, tick_broadcast_lock, hrtimer_bases.lock

2015-02-15 Thread Paul E. McKenney
On Mon, Feb 16, 2015 at 08:49:12AM +0530, Preeti U Murthy wrote: > On 02/13/2015 07:56 PM, Paul E. McKenney wrote: > > On Fri, Feb 13, 2015 at 12:52:45PM +0530, Preeti U Murthy wrote: > >> On 02/13/2015 10:57 AM, Preeti U Murthy wrote: > >>> On 02/13/2015 06:27 AM, Sam Bobroff wrote: > Hello,

Re: [PATCH] powerpc: re-enable dynticks

2015-02-15 Thread Benjamin Herrenschmidt
On Mon, 2015-02-16 at 11:08 +1100, Michael Ellerman wrote: > On Fri, 2015-02-13 at 13:38 -0600, Paul Clarke wrote: > > implement arch_irq_work_has_interrupt() for powerpc > > > > Commit 9b01f5bf3 introduced a dependency on "IRQ work self-IPIs" for > > full dynamic ticks to be enabled, by expectin

[PATCH 07/10] powerpc/powernv: Drop PHB operation get_state()

2015-02-15 Thread Gavin Shan
The patch drops PHB EEH operation get_state() and merges its logic to eeh_ops::get_state(). Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-ioda.c| 170 +--- arch/powerpc/platforms/powernv/eeh-powernv.c | 185 --- arch/powerpc/plat

[PATCH 09/10] powerpc/powernv: Drop PHB operation reset()

2015-02-15 Thread Gavin Shan
The patch drops PHB EEH operation reset() and merges its logic to eeh_ops::reset(). Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-ioda.c| 235 --- arch/powerpc/platforms/powernv/eeh-powernv.c | 225 - arch/powerpc/platforms/p

[PATCH 08/10] powerpc/powernv: Drop PHB operation next_error()

2015-02-15 Thread Gavin Shan
The patch drops PHB EEH operation next_error() and merges its logic to eeh_ops::next_error(). Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-ioda.c| 351 --- arch/powerpc/platforms/powernv/eeh-powernv.c | 334 - arch/powerpc/p

[PATCH 10/10] powerpc/powernv: Remove unused file

2015-02-15 Thread Gavin Shan
The patch removes unused file eeh-ioda.c and updates makefile accordingly. Besides, the definition of "struct pnv_eeh_ops" and the instances are all removed. Until now, the chip layer of EEH implementation for PowerNV platform is removed completely. Signed-off-by: Gavin Shan --- arch/powerpc/pla

[PATCH 05/10] powerpc/powernv: Drop PHB operation configure_bridge()

2015-02-15 Thread Gavin Shan
The patch drops PHB EEH operation configure_bridge() and merges its logic to eeh_ops::configure_bridge(). Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-ioda.c| 15 --- arch/powerpc/platforms/powernv/eeh-powernv.c | 9 + arch/powerpc/platforms/powernv/p

[PATCH 06/10] powerpc/powernv: Drop PHB operation set_option()

2015-02-15 Thread Gavin Shan
The patch drops PHB EEH operation set_option() and merges its logic to eeh_ops::set_option(). Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-ioda.c| 84 arch/powerpc/platforms/powernv/eeh-powernv.c | 61 +--- arch/powerpc/platfor

[PATCH 04/10] powerpc/powernv: Drop PHB operation get_log()

2015-02-15 Thread Gavin Shan
The patch drops PHB operation get_log() and merges its logic to eeh_ops::get_log(). Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-ioda.c| 20 arch/powerpc/platforms/powernv/eeh-powernv.c | 10 +++--- arch/powerpc/platforms/powernv/pci.h |

[PATCH 03/10] powerpc/powernv: Drop PHB operation post_init()

2015-02-15 Thread Gavin Shan
The patch drops PHB EEH operation post_init() and merge its logic to eeh_ops::post_init(). Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-ioda.c| 193 --- arch/powerpc/platforms/powernv/eeh-powernv.c | 184 - arch/powerpc/plat

[PATCH 02/10] powerpc/powernv: Drop PHB operation err_inject()

2015-02-15 Thread Gavin Shan
The patch drops PHB EEH operation err_inject() and merge its logic to eeh_ops::err_inject(). Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-ioda.c| 49 ++-- arch/powerpc/platforms/powernv/eeh-powernv.c | 38 ++--- arch/powerpc/platfor

[PATCH 01/10] powerpc/powernv: Shorten EEH function names

2015-02-15 Thread Gavin Shan
The patch shortens names of EEH functions in powernv-eeh.c and no logic change introduced by this patch. Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/eeh-powernv.c | 104 +-- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/arch/powerpc/plat

[PATCH 00/10] powerpc/powernv: Simplify EEH Implementation

2015-02-15 Thread Gavin Shan
The EEH was implemented for PowerNV platform with 2 layers, which are supported by "struct eeh_ops" and "struct pnv_eeh_ops" separately. The latter, called chip layer, was introduced for EEH guest support initially. However, the EEH guest support was implemented depending on "struct eeh_ops" comple

Re: suspicious RCU usage clockevents_lock, tick_broadcast_lock, hrtimer_bases.lock

2015-02-15 Thread Preeti U Murthy
On 02/13/2015 07:56 PM, Paul E. McKenney wrote: > On Fri, Feb 13, 2015 at 12:52:45PM +0530, Preeti U Murthy wrote: >> On 02/13/2015 10:57 AM, Preeti U Murthy wrote: >>> On 02/13/2015 06:27 AM, Sam Bobroff wrote: Hello, I'm receiving this while booting a vanilla 3.19 kernel on a Power

Re: Problems with Kernels 3.17-rc1 and onwards on Acube Sam460 AMCC 460ex board

2015-02-15 Thread Michael Ellerman
On Sun, 2015-02-15 at 08:16 -0400, Julian Margetson wrote: > Hi > > I am unable to get any kernel beyond the 3.16 branch working on an > Acube Sam460ex > AMCC 460ex based motherboard. Kernel up 3.16.7-ckt6 working. Does reverting b0345bbc6d09 change anything? > [6.364350] snd_hda_intel 00

Re: [PATCH] powerpc: re-enable dynticks

2015-02-15 Thread Michael Ellerman
On Fri, 2015-02-13 at 13:38 -0600, Paul Clarke wrote: > implement arch_irq_work_has_interrupt() for powerpc > > Commit 9b01f5bf3 introduced a dependency on "IRQ work self-IPIs" for > full dynamic ticks to be enabled, by expecting architectures to > implement a suitable arch_irq_work_has_interrup

Re: [PATCH net-next 0/6] bpf: Enable BPF JIT on ppc32

2015-02-15 Thread Daniel Borkmann
On 02/15/2015 07:06 PM, Denis Kirjanov wrote: This patch series enables BPF JIT on ppc32. There are relatevily few chnages in the code to make it work. All test_bpf tests passed both on 7447a and P2041-based machines. I'm just wondering, next to the feedback that has already been provided, wou

Re: [PATCH net-next 1/6] ppc: Kconfig: Enable BPF JIT on ppc32

2015-02-15 Thread Denis Kirjanov
On 2/15/15, David Miller wrote: > From: Joe Perches > Date: Sun, 15 Feb 2015 10:15:54 -0800 > >> On Sun, 2015-02-15 at 21:06 +0300, Denis Kirjanov wrote: >> [] >>> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig >> [] >>> @@ -126,7 +126,7 @@ config PPC >>> select IRQ_FORCED_THREADING

Re: [PATCH net-next 1/6] ppc: Kconfig: Enable BPF JIT on ppc32

2015-02-15 Thread David Miller
From: Joe Perches Date: Sun, 15 Feb 2015 10:15:54 -0800 > On Sun, 2015-02-15 at 21:06 +0300, Denis Kirjanov wrote: > [] >> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > [] >> @@ -126,7 +126,7 @@ config PPC >> select IRQ_FORCED_THREADING >> select HAVE_RCU_TABLE_FREE if SMP

Re: [PATCH net-next 1/6] ppc: Kconfig: Enable BPF JIT on ppc32

2015-02-15 Thread Joe Perches
On Sun, 2015-02-15 at 21:06 +0300, Denis Kirjanov wrote: [] > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig [] > @@ -126,7 +126,7 @@ config PPC > select IRQ_FORCED_THREADING > select HAVE_RCU_TABLE_FREE if SMP > select HAVE_SYSCALL_TRACEPOINTS > - select HAVE_BPF_JI

[PATCH net-next 6/6] ppc: bpf: Add SKF_AD_CPU for ppc32

2015-02-15 Thread Denis Kirjanov
Signed-off-by: Denis Kirjanov --- arch/powerpc/net/bpf_jit.h | 17 + arch/powerpc/net/bpf_jit_comp.c | 14 +- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/arch/powerpc/net/bpf_jit.h b/arch/powerpc/net/bpf_jit.h index 2d5e715..889fd19 100644 ---

[PATCH net-next 5/6] ppc: bpf: rename bpf_jit_64.S to bpf_jit_asm.S

2015-02-15 Thread Denis Kirjanov
Signed-off-by: Denis Kirjanov --- arch/powerpc/net/Makefile| 2 +- arch/powerpc/net/{bpf_jit_64.S => bpf_jit_asm.S} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename arch/powerpc/net/{bpf_jit_64.S => bpf_jit_asm.S} (100%) diff --git a/arch/powerpc/net/Makefile b

[PATCH net-next 4/6] ppc: bpf: update jit to use compatibility macros

2015-02-15 Thread Denis Kirjanov
Use helpers from the asm-compat.h to wrap up assembly mnemonics Signed-off-by: Denis Kirjanov --- arch/powerpc/net/bpf_jit.h | 47 ++- arch/powerpc/net/bpf_jit_64.S | 70 - arch/powerpc/net/bpf_jit_comp.c | 32 ++-

[PATCH net-next 3/6] ppc: bpf: add reqired opcodes for ppc32

2015-02-15 Thread Denis Kirjanov
Signed-off-by: Denis Kirjanov --- arch/powerpc/include/asm/ppc-opcode.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h index 03cd858..2eadde0 100644 --- a/arch/powerpc/include/asm/ppc-opcode.h +++ b/arch/powerpc

[PATCH net-next 1/6] ppc: Kconfig: Enable BPF JIT on ppc32

2015-02-15 Thread Denis Kirjanov
Signed-off-by: Denis Kirjanov --- arch/powerpc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 22b0940..5084bdc 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -126,7 +126,7 @@ config PPC select

[PATCH net-next 2/6] ppc: bpf: add required compatibility macros for jit

2015-02-15 Thread Denis Kirjanov
Signed-off-by: Denis Kirjanov --- arch/powerpc/include/asm/asm-compat.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/include/asm/asm-compat.h b/arch/powerpc/include/asm/asm-compat.h index 21be8ae..dc85dcb 100644 --- a/arch/powerpc/include/asm/asm-compat.h +++ b/arch/power

[PATCH net-next 0/6] bpf: Enable BPF JIT on ppc32

2015-02-15 Thread Denis Kirjanov
This patch series enables BPF JIT on ppc32. There are relatevily few chnages in the code to make it work. All test_bpf tests passed both on 7447a and P2041-based machines. arch/powerpc/Kconfig | 2 +- arch/powerpc/include/asm/asm-compat.h | 4 + arch/powerpc/include/asm/ppc-

Re: embedding dtb file into kernel

2015-02-15 Thread Stefano Babic
Hi Richard, On 13/02/2015 18:41, K Richard Pixley wrote: > I'm having trouble figuring out how to embed a dtb file into my kernel. > I'm thinking that there should be a standard, architecture independent > facility for this akin to initramfs, yes? > > Could someone please either point me to the

Problems with Kernels 3.17-rc1 and onwards on Acube Sam460 AMCC 460ex board

2015-02-15 Thread Julian Margetson
Hi I am unable to get any kernel beyond the 3.16 branch working on an Acube Sam460ex AMCC 460ex based motherboard. Kernel up 3.16.7-ckt6 working. These are the patches applied diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 49b0659..fa335

[RFC PATCH powerpc] perf/hv-24x7 set the attr group to NULL if events failed to be initialized

2015-02-15 Thread Li Zhong
sysfs_create_groups() creates groups one by one in the attr_groups array before a NULL entry is encountered. But if an error is seen, it stops and removes all the groups already created: for (i = 0; groups[i]; i++) { error = sysfs_create_group(kobj, groups[i]);