[PATCH v2] PPC: bpf_jit_comp: add SKF_AD_PKTTYPE instruction

2014-10-29 Thread Denis Kirjanov
Add BPF extension SKF_AD_PKTTYPE to ppc JIT to load skb->pkt_type field. Before: [ 88.262622] test_bpf: #11 LD_IND_NET 86 97 99 PASS [ 88.265740] test_bpf: #12 LD_PKTTYPE 109 107 PASS After: [ 80.605964] test_bpf: #11 LD_IND_NET 44 40 39 PASS [ 80.607370] test_bpf: #12 LD_PKTTYPE 9 9 PASS

Re: [PATCH 1/5] powerpc: Remove bootmem allocator

2014-10-29 Thread Emil Medve
Hello Anton, On 09/17/2014 07:15 AM, Anton Blanchard wrote: > At the moment we transition from the memblock alloctor to the bootmem > allocator. Gitting rid of the bootmem allocator removes a bunch of > complicated code (most of which I owe the dubious honour of being > responsible for writing).

[PATCH] powerpc/powernv: Properly fix LPC debugfs endianness

2014-10-29 Thread Benjamin Herrenschmidt
Endian is hard, especially when I designed a stupid FW interface, and I should know better... oh well, this is attempt #2 at fixing this properly. This time it seems to work with all access sizes and I can run my flashing tool (which exercises all sort of access sizes and types to access the SPI co

[PATCH] powerpc: do_notify_resume can be called with bad thread_info flags argument

2014-10-29 Thread Anton Blanchard
Back in 7230c5644188 ("powerpc: Rework lazy-interrupt handling") we added a call out to restore_interrupts() (written in c) before we call do_notify_resume: bl restore_interrupts addir3,r1,STACK_FRAME_OVERHEAD bl do_notify_resume Unfortunately do_notify_resum

Re: [PATCH] PPC: bpf_jit_comp: add SKF_AD_PKTTYPE instruction

2014-10-29 Thread Michael Ellerman
On Wed, 2014-10-29 at 13:21 +0400, Denis Kirjanov wrote: > Any feedback from PPC folks? Hi Denis, I had a look at this, but I don't know enough about BPF to comment. Maybe you can explain what a BPF_ANC | SKF_AD_PKTTYPE means and perhaps then we can guess if the code is correct. I think testing

[PATCH] powerpc/jump_label: Use HAVE_JUMP_LABEL

2014-10-29 Thread Anton Blanchard
Commit d4fe0965e208 ("powerpc/jump_label: use HAVE_JUMP_LABEL?") missed a few conversions. Change the remaining uses of CONFIG_JUMP_LABEL to HAVE_JUMP_LABEL. Signed-off-by: Anton Blanchard --- arch/powerpc/platforms/powernv/opal-wrappers.S | 2 +- arch/powerpc/platforms/pseries/hvCall.S|

Re: [PATCH 1/4] dt/bindings: Introduce the FSL QorIQ DPAA BMan

2014-10-29 Thread Emil Medve
Hello Scott, On 10/29/2014 05:16 PM, Scott Wood wrote: > On Wed, 2014-10-29 at 16:40 -0500, Emil Medve wrote: >> Hello Scott, >> >> >> On 10/28/2014 01:08 PM, Scott Wood wrote: >>> On Tue, 2014-10-28 at 09:36 -0500, Kumar Gala wrote: On Oct 22, 2014, at 9:09 AM, Emil Medve wrote:

Re: FSL MSI Mapping

2014-10-29 Thread Michael Ellerman
On Tue, 2014-10-28 at 18:06 +0100, Johannes Thumshirn wrote: > Hi, > > I got notified about your patch to support multiple MSI Vectors on Freescale > PowerPC platforms. Is there any reason why it wasn't applied until now? I > couldn't find anything about it in the list archives. > > I think it wo

Re: [PATCH 1/4] dt/bindings: Introduce the FSL QorIQ DPAA BMan

2014-10-29 Thread Scott Wood
On Wed, 2014-10-29 at 16:40 -0500, Emil Medve wrote: > Hello Scott, > > > On 10/28/2014 01:08 PM, Scott Wood wrote: > > On Tue, 2014-10-28 at 09:36 -0500, Kumar Gala wrote: > >> On Oct 22, 2014, at 9:09 AM, Emil Medve > >> wrote: > >> > >>> The Buffer Manager is part of the Data-Path Accelerati

Re: [PATCH 1/4] dt/bindings: Introduce the FSL QorIQ DPAA BMan

2014-10-29 Thread Emil Medve
Hello Scott, On 10/28/2014 01:08 PM, Scott Wood wrote: > On Tue, 2014-10-28 at 09:36 -0500, Kumar Gala wrote: >> On Oct 22, 2014, at 9:09 AM, Emil Medve wrote: >> >>> The Buffer Manager is part of the Data-Path Acceleration Architecture >>> (DPAA). >>> BMan supports hardware allocation and deal

Re: [PATCH v2 2/4] dt/bindings: Introduce the FSL QorIQ DPAA BMan portal(s)

2014-10-29 Thread Emil Medve
Hello Kumar, On 10/28/2014 09:41 AM, Kumar Gala wrote: > On Oct 28, 2014, at 4:15 AM, Emil Medve wrote: > >> Portals are memory mapped interfaces to BMan that allow low-latency, >> lock-less interaction by software running on processor cores, accelerators >> and network interfaces with the BMan

Re: [PATCH v2 1/4] dt/bindings: Introduce the FSL QorIQ DPAA BMan

2014-10-29 Thread Emil Medve
Hello Kumar, Thanks for taking the time to review this On 10/28/2014 09:39 AM, Kumar Gala wrote: > On Oct 28, 2014, at 4:15 AM, Emil Medve wrote: >> The Buffer Manager is part of the Data-Path Acceleration Architecture (DPAA). >> BMan supports hardware allocation and deallocation of buffers bel

[PATCH 1/1 linux-next] powerpc: fix section mismatch warning

2014-10-29 Thread Fabian Frederick
Adding __init to MMU_setup() which uses __initdata boot_command_line. Warning appeared since commit 3e47d1474c2b ("powerpc: Remove powerpc specific cmd_line") Signed-off-by: Fabian Frederick --- arch/powerpc/mm/init_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/p

Re: [PATCH 2/2] ipr: set coherent DMA mask

2014-10-29 Thread Brian King
Acked-by: Brian King -- Brian King Power Linux I/O IBM Linux Technology Center ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 1/2] ipr: Convert to generic DMA API

2014-10-29 Thread Brian King
Acked-by: Brian King -- Brian King Power Linux I/O IBM Linux Technology Center ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH] PPC: bpf_jit_comp: add SKF_AD_PKTTYPE instruction

2014-10-29 Thread Alexei Starovoitov
On Wed, Oct 29, 2014 at 2:21 AM, Denis Kirjanov wrote: > Any feedback from PPC folks? not a ppc guy, but looks reasonable to me. What lib/test_bpf says? Like performance difference before/after for LD_PKTTYPE test... ___ Linuxppc-dev mailing list Linuxp

Re: powerpc: Replace __get_cpu_var uses

2014-10-29 Thread Christoph Lameter
On Wed, 29 Oct 2014, Michael Ellerman wrote: > > #define __ARCH_IRQ_STAT > > > > -#define local_softirq_pending() > > __get_cpu_var(irq_stat).__softirq_pending > > +#define local_softirq_pending() > > __this_cpu_read(irq_stat.__softirq_pending) > > +#define set_softirq_pending(x) __this_c

Re: [PATCH V4 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-29 Thread Steve Capper
On Wed, Oct 29, 2014 at 01:49:44PM +0530, Aneesh Kumar K.V wrote: > Update generic gup implementation with powerpc specific details. > On powerpc at pmd level we can have hugepte, normal pmd pointer > or a pointer to the hugepage directory. > > Signed-off-by: Aneesh Kumar K.V Acked-by: Steve Cap

Re: [PATCH] PPC: bpf_jit_comp: add SKF_AD_PKTTYPE instruction

2014-10-29 Thread Denis Kirjanov
Any feedback from PPC folks? On 10/26/14, Denis Kirjanov wrote: > Cc: Matt Evans > Signed-off-by: Denis Kirjanov > --- > arch/powerpc/include/asm/ppc-opcode.h | 1 + > arch/powerpc/net/bpf_jit.h| 7 +++ > arch/powerpc/net/bpf_jit_comp.c | 5 + > 3 files changed, 13 in

Re: [PATCH] i2c-qoriq: modified compatibility for correct prescaler

2014-10-29 Thread Valentin Longchamp
On 10/29/2014 12:08 AM, Scott Wood wrote: > On Fri, 2014-10-17 at 11:27 +0200, Valentin Longchamp wrote: >> With "fsl-i2c" compatibility the i2c frequency is not set >> correctly, because it sets no prescaler. According to the AN2919 from >> Freescale and the QorIQ (P2041) documentation, the source

[git pull] Please pull mpe.git for-linus branch (for powerpc)

2014-10-29 Thread Michael Ellerman
Hi Linus, Here are some updates for powerpc. There's some bug fixes or cleanups to facilitate fixes, a MAINTAINERS update, and a new syscall (bpf). cheers The following changes since commit c3351dfabf5c78fb5ddc79d0f7b65ebd9e441337: Merge branch 'for-next' of git://git.kernel.org/pub/scm/li

Re: [PATCH] drivers: depend on instead of select BACKLIGHT_CLASS_DEVICE and ACPI_VIDEO

2014-10-29 Thread Michael Ellerman
On Wed, 2014-10-29 at 09:54 +0200, Jani Nikula wrote: > On Wed, 29 Oct 2014, Michael Ellerman wrote: > > On Tue, 2014-10-28 at 13:29 -0700, Randy Dunlap wrote: > >> On 10/27/14 06:13, Tomi Valkeinen wrote: > >> > I also think the 'depends on BACKLIGHT_CLASS_DEVICE || > >> > BACKLIGHT_CLASS_DEVICE=

[PATCH V4 2/2] arch/powerpc: Switch to generic RCU get_user_pages_fast

2014-10-29 Thread Aneesh Kumar K.V
This patch switch the ppc arch to use the generic RCU based gup implementation. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/hugetlb.h | 8 +- arch/powerpc/include/asm/page.h | 3 +- arch/powerpc/include/asm/pgt

[PATCH V4 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-29 Thread Aneesh Kumar K.V
Update generic gup implementation with powerpc specific details. On powerpc at pmd level we can have hugepte, normal pmd pointer or a pointer to the hugepage directory. Signed-off-by: Aneesh Kumar K.V --- Changes from V3: * Drop arm and arm64 changes * Add hugepte assumption to the function ar

Re: [PATCH] drivers: depend on instead of select BACKLIGHT_CLASS_DEVICE and ACPI_VIDEO

2014-10-29 Thread Jani Nikula
On Wed, 29 Oct 2014, Michael Ellerman wrote: > On Tue, 2014-10-28 at 13:29 -0700, Randy Dunlap wrote: >> On 10/27/14 06:13, Tomi Valkeinen wrote: >> > I also think the 'depends on BACKLIGHT_CLASS_DEVICE || >> > BACKLIGHT_CLASS_DEVICE=n' pattern is quite... interesting (i.e. sounds >> > like a hack

Re: FSL MSI Mapping

2014-10-29 Thread Johannes Thumshirn
On Tue, Oct 28, 2014 at 02:10:18PM -0500, Scott Wood wrote: > On Tue, 2014-10-28 at 18:06 +0100, Johannes Thumshirn wrote: > > Hi, > > > > I got notified about your patch to support multiple MSI Vectors on Freescale > > PowerPC platforms. Is there any reason why it wasn't applied until now? I > > c