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

2014-10-30 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 v2] PPC: bpf_jit_comp: add SKF_AD_PKTTYPE instruction

2014-10-30 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: FSL MSI Mapping

2014-10-30 Thread Johannes Thumshirn
On Thu, Oct 30, 2014 at 02:51:57PM +1100, Michael Ellerman 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

[PATCH v3 1/3] QE: move qe code from arch/powerpc to drivers/soc

2014-10-30 Thread Zhao Qiang
LS1 is arm cpu and it has qe ip block. move qe code from platform directory to public directory. QE is an IP block integrates several comunications peripheral controllers. It can implement a variety of applications, such as uart, usb and tdm and so on. Signed-off-by: Zhao Qiang

[PATCH v3 2/3] qe_common: add qe common functions into qe_common.c

2014-10-30 Thread Zhao Qiang
qe need to call some common functions, add a new file drivers/soc/fsl-qe/qe_common.c for them. Signed-off-by: Zhao Qiang b45...@freescale.com --- drivers/soc/fsl-qe/Makefile| 2 +- drivers/soc/fsl-qe/qe_common.c | 185 + include/linux/fsl/qe.h

[PATCH v3 3/3] rheap: move rheap.c from arch/powerpc/lib/ to lib/

2014-10-30 Thread Zhao Qiang
qe need to use the rheap, so move it to public directory. Signed-off-by: Zhao Qiang b45...@freescale.com --- arch/powerpc/Kconfig| 3 --- arch/powerpc/include/asm/fsl_85xx_cache_sram.h | 2 +- arch/powerpc/lib/Makefile |

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

2014-10-30 Thread Christoph Hellwig
On Wed, Oct 29, 2014 at 12:34:49PM -0500, Brian King wrote: Acked-by: Brian King brk...@linux.vnet.ibm.com Doesn't apply to me. Brain, can you please resend a rebased version of these two patches with ipr error handlign patch (and anything else ipr related)?

[PATCH] powerpc: Added rcw registers to global utility registers

2014-10-30 Thread Igal . Liberman
From: Igal Liberman igal.liber...@freescale.com The RCW registers are required for the future clock binding implementation. Signed-off-by: Igal Liberman igal.liber...@freescale.com Change-Id: Ic36dd8bc2959aa7f97fb6fd7bbb8420822fef0a9 --- arch/powerpc/include/asm/fsl_guts.h |5 - 1 file

Re: [PATCH v3 3/3] rheap: move rheap.c from arch/powerpc/lib/ to lib/

2014-10-30 Thread Kumar Gala
On Oct 30, 2014, at 2:31 AM, Zhao Qiang b45...@freescale.com wrote: qe need to use the rheap, so move it to public directory. Signed-off-by: Zhao Qiang b45...@freescale.com --- arch/powerpc/Kconfig| 3 --- arch/powerpc/include/asm/fsl_85xx_cache_sram.h

Re: [PATCH v3 1/3] QE: move qe code from arch/powerpc to drivers/soc

2014-10-30 Thread Kumar Gala
On Oct 30, 2014, at 2:31 AM, Zhao Qiang b45...@freescale.com wrote: LS1 is arm cpu and it has qe ip block. move qe code from platform directory to public directory. QE is an IP block integrates several comunications peripheral controllers. It can implement a variety of applications, such

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

2014-10-30 Thread Brian King
On 10/30/2014 04:11 AM, Christoph Hellwig wrote: On Wed, Oct 29, 2014 at 12:34:49PM -0500, Brian King wrote: Acked-by: Brian King brk...@linux.vnet.ibm.com Doesn't apply to me. Brain, can you please resend a rebased version of these two patches with ipr error handlign patch (and anything

Re: [PATCH 1/3] powerpc/dts: Factorize the clock control node

2014-10-30 Thread Emil Medve
Hello Scott, On 10/28/2014 06:21 PM, Scott Wood wrote: On Wed, 2014-10-22 at 09:42 -0500, Emil Medve wrote: Signed-off-by: Emil Medve emilian.me...@freescale.com Change-Id: I25ce24a25862b4ca460164159867abefe00ccdd1 Please remove gerrit stuff prior to submitting. I did remove the bulk of

Re: [PATCH] powerpc: Added rcw registers to global utility registers

2014-10-30 Thread Emil Medve
On 10/30/2014 04:15 AM, Igal.Liberman wrote: From: Igal Liberman igal.liber...@freescale.com The RCW registers are required for the future clock binding implementation. Signed-off-by: Igal Liberman igal.liber...@freescale.com Change-Id: Ic36dd8bc2959aa7f97fb6fd7bbb8420822fef0a9 ---

Re: [PATCH] powerpc: Added rcw registers to global utility registers

2014-10-30 Thread Scott Wood
On Thu, 2014-10-30 at 08:59 -0500, Emil Medve wrote: On 10/30/2014 04:15 AM, Igal.Liberman wrote: From: Igal Liberman igal.liber...@freescale.com The RCW registers are required for the future clock binding implementation. Signed-off-by: Igal Liberman igal.liber...@freescale.com

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

2014-10-30 Thread Scott Wood
On Wed, 2014-10-29 at 23:32 -0500, Emil Medve wrote: 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

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

2014-10-30 Thread Emil Medve
Hello Scott, On 10/30/2014 09:51 AM, Scott Wood wrote: On Wed, 2014-10-29 at 23:32 -0500, Emil Medve wrote: 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,

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

2014-10-30 Thread Scott Wood
On Thu, 2014-10-30 at 11:19 -0500, Emil Medve wrote: Hello Scott, On 10/30/2014 09:51 AM, Scott Wood wrote: On Wed, 2014-10-29 at 23:32 -0500, Emil Medve wrote: 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

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

2014-10-30 Thread Varun Sethi
-Original Message- From: Linuxppc-dev [mailto:linuxppc-dev- bounces+varun.sethi=freescale@lists.ozlabs.org] On Behalf Of Emil Medve Sent: Thursday, October 30, 2014 3:10 AM To: Wood Scott-B07421; Kumar Gala Cc: mark.rutl...@arm.com; devicet...@vger.kernel.org;

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

2014-10-30 Thread Emil Medve
Hello Scott, On 10/30/2014 11:29 AM, Scott Wood wrote: On Thu, 2014-10-30 at 11:19 -0500, Emil Medve wrote: Hello Scott, On 10/30/2014 09:51 AM, Scott Wood wrote: On Wed, 2014-10-29 at 23:32 -0500, Emil Medve wrote: Hello Scott, On 10/29/2014 05:16 PM, Scott Wood wrote: On Wed,

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

2014-10-30 Thread Alexei Starovoitov
On Wed, Oct 29, 2014 at 11:12 PM, Denis Kirjanov k...@linux-powerpc.org wrote: 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]

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

2014-10-30 Thread Scott Wood
On Thu, 2014-10-30 at 11:45 -0500, Emil Medve wrote: Hello Scott, On 10/30/2014 11:29 AM, Scott Wood wrote: On Thu, 2014-10-30 at 11:19 -0500, Emil Medve wrote: Hello Scott, On 10/30/2014 09:51 AM, Scott Wood wrote: On Wed, 2014-10-29 at 23:32 -0500, Emil Medve wrote: Hello

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

2014-10-30 Thread Emil Medve
Hello Scott, On 10/30/2014 04:26 PM, Scott Wood wrote: On Thu, 2014-10-30 at 11:45 -0500, Emil Medve wrote: Hello Scott, On 10/30/2014 11:29 AM, Scott Wood wrote: On Thu, 2014-10-30 at 11:19 -0500, Emil Medve wrote: Hello Scott, On 10/30/2014 09:51 AM, Scott Wood wrote: On Wed,

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

2014-10-30 Thread Brian King
From: Anton Blanchard an...@samba.org Even though the ipr driver is only used on PCI, convert it to use the generic DMA API. Signed-off-by: Anton Blanchard an...@samba.org Signed-off-by: Brian King brk...@linux.vnet.ibm.com --- drivers/scsi/ipr.c | 103

[PATCH 3/3] ipr: Wait for aborted command responses

2014-10-30 Thread Brian King
Fixes a race condition in abort handling that was injected when multiple interrupt support was added. When only a single interrupt is present, the adapter guarantees it will send responses for aborted commands prior to the response for the abort command itself. With multiple interrupts, these

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

2014-10-30 Thread Brian King
From: Anton Blanchard an...@samba.org Use dma_set_mask_and_coherent() to set both the DMA and coherent DMA mask. Signed-off-by: Anton Blanchard an...@samba.org Signed-off-by: Brian King brk...@linux.vnet.ibm.com --- drivers/scsi/ipr.c | 11 ++- 1 file changed, 6 insertions(+), 5

Re: [PATCHv5] clk: ppc-corenet: rename to qoriq and add CLK_OF_DECLARE support

2014-10-30 Thread Scott Wood
The CLK_OF_DECLARE part is addressed by: http://patchwork.ozlabs.org/patch/400740/ http://patchwork.ozlabs.org/patch/400741/ http://patchwork.ozlabs.org/patch/400742/ ...which does what I was asking earlier, getting rid of the (currently broken due to a misguided attempt to remove an __init

Re: [PATCH 1/3] powerpc/dts: Factorize the clock control node

2014-10-30 Thread Scott Wood
On Thu, 2014-10-30 at 08:58 -0500, Emil Medve wrote: Hello Scott, On 10/28/2014 06:21 PM, Scott Wood wrote: On Wed, 2014-10-22 at 09:42 -0500, Emil Medve wrote: Signed-off-by: Emil Medve emilian.me...@freescale.com Change-Id: I25ce24a25862b4ca460164159867abefe00ccdd1 Please remove

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

2014-10-30 Thread Michael Ellerman
On Thu, 2014-10-30 at 01:00 -0500, Emil Medve wrote: 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

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

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

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

2014-10-30 Thread Emil Medve
Hello Michael, On 10/30/2014 09:15 PM, Michael Ellerman wrote: On Thu, 2014-10-30 at 01:00 -0500, Emil Medve wrote: 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

[PATCH 1/3] powerpc: Don't use local named register variable in current_thread_info

2014-10-30 Thread Anton Blanchard
LLVM doesn't support local named register variables and is unlikely to. current_thread_info is using one, fix it by moving it out and calling it __current_r1(). I gave it a bit of an obscure name because we don't want anyone else using it - they should use current_stack_pointer(). This specific

[PATCH 2/3] powerpc: Remove double braces in alignment code.

2014-10-30 Thread Anton Blanchard
Looks like I introduced this when adding LE support. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/align.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/align.c b/arch/powerpc/kernel/align.c index 34f5552..86150fb 100644 ---

[PATCH 3/3] powerpc: LLVM complains about forward declaration of struct rtas_sensors

2014-10-30 Thread Anton Blanchard
Move the declaration up to silence the warning. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/kernel/rtas-proc.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/arch/powerpc/kernel/rtas-proc.c b/arch/powerpc/kernel/rtas-proc.c index

[PATCH] powerpc/pseries: Quieten ibm,pcie-link-speed-stats warning

2014-10-30 Thread Anton Blanchard
The ibm,pcie-link-speed-stats isn't mandatory, so we shouldn't print a high priority error message when missing. One example where we see this is QEMU. Reduce it to pr_info. Signed-off-by: Anton Blanchard an...@samba.org --- arch/powerpc/platforms/pseries/pci.c | 2 +- 1 file changed, 1

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

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