Re: [PATCH 2/2] [POWERPC] uprobes: powerpc port

2012-06-07 Thread Michael Ellerman
On Fri, 2012-06-08 at 10:06 +0530, Ananth N Mavinakayanahalli wrote: > On Wed, Jun 06, 2012 at 11:08:04AM -0700, Jim Keniston wrote: > > On Wed, 2012-06-06 at 15:05 +0530, Ananth N Mavinakayanahalli wrote: > > > On Wed, Jun 06, 2012 at 11:27:02AM +0200, Peter Zijlstra wrote: > > > > On Wed, 2012-06

Re: [PATCH 2/2] [POWERPC] uprobes: powerpc port

2012-06-07 Thread Michael Ellerman
On Fri, 2012-06-08 at 11:31 +0530, Ananth N Mavinakayanahalli wrote: > On Fri, Jun 08, 2012 at 03:51:54PM +1000, Michael Ellerman wrote: > > On Fri, 2012-06-08 at 10:06 +0530, Ananth N Mavinakayanahalli wrote: > > > On Wed, Jun 06, 2012 at 11:08:04AM -0700, Jim Keniston wrote: &g

Re: [PATCH 2/2] [POWERPC] uprobes: powerpc port

2012-06-07 Thread Michael Ellerman
On Fri, 2012-06-08 at 11:49 +0530, Ananth N Mavinakayanahalli wrote: > On Fri, Jun 08, 2012 at 04:17:44PM +1000, Michael Ellerman wrote: > > On Fri, 2012-06-08 at 11:31 +0530, Ananth N Mavinakayanahalli wrote: > > > On Fri, Jun 08, 2012 at 03:51:54PM +1000, Michael Ellerman wro

[PATCH 2/15] powerpc: modify macro ready for %r0 register change

2012-06-08 Thread Michael Neuling
The assembler doesn't take %r0 register arguments in braces, so remove them. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) Index: clone3/arch/powerpc/include/asm/ppc_

[PATCH 0/15] powerpc: convert GPR usage to %r0-31 and R0-31

2012-06-08 Thread Michael Neuling
First 5 patches convert us to %r0-31. Next 10 patches make using R0-31 required. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 1/15] powerpc: Add defines for R0-R31

2012-06-08 Thread Michael Neuling
We are going to use these later and convert r0 to %r0 etc. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h | 33 + 1 file changed, 33 insertions(+) Index: clone3/arch/powerpc/include/asm/ppc_asm.h

[PATCH 3/15] powerpc: fix usage of register macros getting ready for %r0 change

2012-06-08 Thread Michael Neuling
4) as %r14 doesn't work in the STK_REG macro since it's just calculating an offset. Signed-off-by: Michael Neuling --- arch/powerpc/kernel/cpu_setup_a2.S |6 arch/powerpc/kernel/fpu.S |4 arch/powerpc/kernel/misc_64.S |4 a

[PATCH 4/15] powerpc: Fix sldi to take literal not register name

2012-06-08 Thread Michael Neuling
Was introduced by: commit 19ccb76a1938ab364a412253daec64613acbf3df Author: Paul Mackerras Date: Sat Jul 23 17:42:46 2011 +1000 Talking to paulus, this shouldn't be a literal. Signed-off-by: Michael Neuling --- arch/powerpc/kvm/book3s_hv_rmhandlers.S |2 +- 1 file chang

[PATCH 6/15] powerpc/pasemi: move lbz/stbciz to ppc-opcode.h

2012-06-08 Thread Michael Neuling
move lbz/stbciz to ppc-opcode.h. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |7 +++ arch/powerpc/kernel/misc_64.S |5 - 2 files changed, 7 insertions(+), 5 deletions(-) Index: clone3/arch/powerpc/include/asm/ppc-opcode.h

[PATCH 5/15] powerpc: convert to %r for all GPR usage

2012-06-08 Thread Michael Neuling
Now all the fixes are in place, let's rock-n-roll! Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h | 72 - 1 file changed, 39 insertions(+), 33 deletions(-) Index: clone3/arch/powerpc/include/asm/ppc_

[PATCH 7/15] powerpc: merge STK_REG/PARAM/FRAMESIZE

2012-06-08 Thread Michael Neuling
Merge the defines of STACKFRAMESIZE, STK_REG, STK_PARAM from different places. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h |5 + arch/powerpc/lib/checksum_64.S |3 arch/powerpc/lib/copyuser_power7.S |3 arch

[PATCH 8/15] powerpc: change mtcrf to use real register names

2012-06-08 Thread Michael Neuling
mtocrf define is just a wrapper around the real instructions so we can just use real register names here (ie. lower case). Also remove braces in macro so this is possible. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/asm-compat.h |2 +- arch/powerpc/include/asm/ppc_asm.h

[PATCH 10/15] powerpc: fixes for instructions not using correct register naming

2012-06-08 Thread Michael Neuling
These macros are using integers where they could be using logical names since they take registers. We are going to enforce this soon, so fix these up now. Signed-off-by: Michael Neuling --- arch/powerpc/kernel/exceptions-64e.S |8 arch/powerpc/kernel/misc_64.S|4

[PATCH 9/15] powerpc: change LOAD_REG_ADDR to use real register names

2012-06-08 Thread Michael Neuling
LOAD_REG_ADDR define is just a wrapper around real instructions so we can just use real register names here (ie. lower case). Signed-off-by: Michael Neuling --- arch/powerpc/platforms/powernv/opal-wrappers.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: clone3/arch/powerpc

[PATCH 12/15] powerpc: introduce new ___PPC_RA/B/S/T macros

2012-06-08 Thread Michael Neuling
These are currently the same as __PPC_RA/B/S/T but we'll wrap them soon. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |4 1 file changed, 4 insertions(+) Index: clone3/arch/powerpc/include/asm/ppc-opc

[PATCH 11/15] powerpc: fix VSX macros so register names aren't wrapped

2012-06-08 Thread Michael Neuling
We need to do this so we can enforce the name of a and b in called macros PPC_RA/B later. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: clone3/arch/powerpc/include/asm/ppc-opcode.h

[PATCH 13/15] powerpc: start using ___PPC_RA/B/S/T where necessary

2012-06-08 Thread Michael Neuling
Now have ___PPC_RA/B/S/T we can use it in some places. These are places where we can't use the existing defines which will soon enforce R0-R31 usage. The macros being changed here are being used in inline asm, which can't convert to enforce the R0-R31 usage. Signed-off-by: Micha

[PATCH 14/15] powerpc: Introduce new __REG_R macros

2012-06-08 Thread Michael Neuling
Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h | 32 1 file changed, 32 insertions(+) Index: clone3/arch/powerpc/include/asm/ppc_asm.h === --- clone3.orig/arch/powerpc

[PATCH 15/15] powerpc: enforce usage of R0-R31 where possible

2012-06-08 Thread Michael Neuling
Enforce the use of R0-R31 in macros where possible now we have all the fixes in. R0-R31 macros are removed here so that can't be used anymore. They should not be defined anywhere. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |8 ++--- arch/powerpc/in

Re: [PATCH 2/2] [POWERPC] uprobes: powerpc port

2012-06-11 Thread Michael Ellerman
On Fri, 2012-06-08 at 14:51 +0530, Ananth N Mavinakayanahalli wrote: > On Fri, Jun 08, 2012 at 04:38:17PM +1000, Michael Ellerman wrote: > > On Fri, 2012-06-08 at 11:49 +0530, Ananth N Mavinakayanahalli wrote: > > > On Fri, Jun 08, 2012 at 04:17:44PM +1000, Michael Ellerman wro

Re: [Cbe-oss-dev] [PATCH 05/10] powerpc/ps3: Use highmem region from repository

2012-06-12 Thread Michael Ellerman
On Wed, 2012-04-25 at 19:19 +, Andre Heider wrote: > Use any preallocated highmem region setup by the bootloader. > This implementation only checks for the existance of a single > region at region_index=0. > > This feature allows the bootloader to preallocate highmem > regions and pass the reg

Re: [PATCH] powerpc: pseries: Round up MSI-X requests

2012-06-12 Thread Michael Ellerman
On Tue, 2012-06-05 at 12:47 +1000, Anton Blanchard wrote: > Hi, > > > On Mon, 2012-06-04 at 16:43 +1000, Michael Ellerman wrote: > > > There is some chance this will result in breakage because the driver > > > asks for N - and assumes that is what was alloc

Re: Replacement to of_register_platform_driver ?

2012-06-13 Thread Michael Ellerman
On Wed, 2012-06-13 at 17:21 +0200, Guillaume Dargaud wrote: > Hello all, > I just updated to the most recent kernel and a driver I wrote last year > won't compile: > xad.c:534:2: error: implicit declaration of function > 'of_register_platform_driver' > > I see references to this function as 'obs

Re: [PATCH 5/15] powerpc: convert to %r for all GPR usage

2012-06-13 Thread Michael Neuling
Jesse Larrew wrote: > On 06/08/2012 06:36 AM, Michael Neuling wrote: > > > > -/* General Purpose Registers (GPRs) */ > > +/* > > + * General Purpose Registers (GPRs) > > + * > > + * The lower case r0-r31 should be used in preference to the upper > &g

[PATCH 0/18] powerpc: convert GPR usage to %r0-31 and R0-31

2012-06-13 Thread Michael Neuling
First 5 patches convert us to %r0-31. Next 12 convert make using R0-31 required in macros. Last 2 convert instructions where ra = r0 we use 0 rather than the register value (as suggested by Andreas). Version 2 adds: ra = 0 idea (as Andreas suggested) Fixes for 32bit KVM (added ppc44x_defconf

[PATCH 1/18] powerpc: Add defines for R0-R31

2012-06-13 Thread Michael Neuling
We are going to use these later and convert r0 to %r0 etc. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h | 33 + 1 file changed, 33 insertions(+) Index: powerpc-test/arch/powerpc/include/asm/ppc_asm.h

[PATCH 2/18] powerpc: modify macro ready for %r0 register change

2012-06-13 Thread Michael Neuling
The assembler doesn't take %r0 register arguments in braces, so remove them. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) Index: powerpc-test/arch/powerpc/include/asm/ppc_

[PATCH 4/18] powerpc: Fix sldi to take literal not register name

2012-06-13 Thread Michael Neuling
Was introduced by: commit 19ccb76a1938ab364a412253daec64613acbf3df Author: Paul Mackerras Date: Sat Jul 23 17:42:46 2011 +1000 Talking to paulus, this shouldn't be a literal. Signed-off-by: Michael Neuling --- arch/powerpc/kvm/book3s_hv_rmhandlers.S |2 +- 1 file chang

[PATCH 5/18] powerpc: convert to %r for all GPR usage

2012-06-13 Thread Michael Neuling
Now all the fixes are in place, let's rock-n-roll! Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h | 72 - 1 file changed, 39 insertions(+), 33 deletions(-) Index: powerpc-test/arch/powerpc/include/asm/ppc_

[PATCH 6/18] powerpc/pasemi: move lbz/stbciz to ppc-opcode.h

2012-06-13 Thread Michael Neuling
move lbz/stbciz to ppc-opcode.h. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |7 +++ arch/powerpc/kernel/misc_64.S |5 - 2 files changed, 7 insertions(+), 5 deletions(-) Index: powerpc-test/arch/powerpc/include/asm/ppc-opcode.h

[PATCH 7/18] powerpc: merge STK_REG/PARAM/FRAMESIZE

2012-06-13 Thread Michael Neuling
Merge the defines of STACKFRAMESIZE, STK_REG, STK_PARAM from different places. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h |5 + arch/powerpc/lib/checksum_64.S |3 arch/powerpc/lib/copypage_power7.S |3 arch

[PATCH 8/18] powerpc: merge VCPU_GPR

2012-06-13 Thread Michael Neuling
Merge the defines of VCPU_GPR from different places. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h |7 +++ arch/powerpc/kvm/book3s_hv_rmhandlers.S |3 --- arch/powerpc/kvm/book3s_interrupts.S|8 arch/powerpc/kvm/booke_interrupts.S

[PATCH 9/18] powerpc: change mtcrf to use real register names

2012-06-13 Thread Michael Neuling
mtocrf define is just a wrapper around the real instructions so we can just use real register names here (ie. lower case). Also remove braces in macro so this is possible. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/asm-compat.h |2 +- arch/powerpc/include/asm/ppc_asm.h

[PATCH 10/18] powerpc: change LOAD_REG_ADDR to use real register names

2012-06-13 Thread Michael Neuling
LOAD_REG_ADDR define is just a wrapper around real instructions so we can just use real register names here (ie. lower case). Signed-off-by: Michael Neuling --- arch/powerpc/platforms/powernv/opal-wrappers.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: powerpc-test/arch

[PATCH 11/18] powerpc: fixes for instructions not using correct register naming

2012-06-13 Thread Michael Neuling
These macros are using integers where they could be using logical names since they take registers. We are going to enforce this soon, so fix these up now. Signed-off-by: Michael Neuling --- arch/powerpc/kernel/exceptions-64e.S |8 arch/powerpc/kernel/misc_64.S|4

[PATCH 13/18] powerpc: introduce new ___PPC_RA/B/S/T macros

2012-06-13 Thread Michael Neuling
These are currently the same as __PPC_RA/B/S/T but we'll wrap them soon. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |4 1 file changed, 4 insertions(+) Index: powerpc-test/arch/powerpc/include/asm/ppc-opc

[PATCH 12/18] powerpc: fix VSX macros so register names aren't wrapped

2012-06-13 Thread Michael Neuling
We need to do this so we can enforce the name of a and b in called macros PPC_RA/B later. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: powerpc-test/arch/powerpc/include/asm/ppc-opcode.h

[PATCH 16/18] powerpc: enforce usage of R0-R31 where possible

2012-06-13 Thread Michael Neuling
Enforce the use of R0-R31 in macros where possible now we have all the fixes in. R0-R31 macros are removed here so that can't be used anymore. They should not be defined anywhere. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |8 ++--- arch/powerpc/includ

[PATCH 15/18] powerpc: Introduce new __REG_R macros

2012-06-13 Thread Michael Neuling
Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h | 32 1 file changed, 32 insertions(+) Index: powerpc-test/arch/powerpc/include/asm/ppc_asm.h === --- powerpc-test.orig/arch

[PATCH 14/18] powerpc: start using ___PPC_RA/B/S/T where necessary

2012-06-13 Thread Michael Neuling
Now have ___PPC_RA/B/S/T we can use it in some places. These are places where we can't use the existing defines which will soon enforce R0-R31 usage. The macros being changed here are being used in inline asm, which can't convert to enforce the R0-R31 usage. Signed-off-by: Micha

[PATCH 17/18] powerpc: Add defines for RA 0-R31

2012-06-13 Thread Michael Neuling
R0 is special since it'll be 0. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |1 + arch/powerpc/include/asm/ppc_asm.h| 33 + 2 files changed, 34 insertions(+) Index: powerpc-test/arch/powerpc/include/asm/ppc-opc

[PATCH 18/18] powerpc: enforce usage of RA 0-R31 where possible

2012-06-13 Thread Michael Neuling
Some macros use RA where when RA=R0 the values is 0, so make this the enforced mnemonic in the macro. Idea suggested by Andreas Schwab. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h | 14 +++--- arch/powerpc/kernel/cpu_setup_a2.S|2 +- arch/powerpc

Re: [PATCH 1/2] powerpc/mm: remove obsolete comment about page size name array

2012-06-14 Thread Michael Ellerman
On Thu, 2012-06-14 at 18:40 -0500, Scott Wood wrote: > The array of names in hugetlbpage.c no longer exists. > > Signed-off-by: Scott Wood > --- > arch/powerpc/include/asm/mmu.h |7 +-- > 1 files changed, 1 insertions(+), 6 deletions(-) > > diff --git a/arch/powerpc/include/asm/mmu.h b/

Re: [PATCH 0/7][TRIVIAL][resend] trivial patches

2012-06-17 Thread Michael Ellerman
On Fri, 2012-06-15 at 21:21 +0800, Wanpeng Li wrote: > From: Wanpeng Li > > Since these patches has already send more than one week and > doesn't get any response, I collect them and send out a patch set. These patches are all trivial cleanups, so I would not expect to get any response. Just lo

Re: CPU-local TLB flushing

2012-06-18 Thread Michael Ellerman
On Mon, 2012-06-18 at 15:55 -0500, Seth Jennings wrote: > This is a continuation of a thread a few months ago: ... > > With local_flush_tlb_kernel_range() being a stub, > the new function local_unmap_kernel_range() is exactly > the same as unmap_kernel_range() since > local_flush_tlb_kernel_range

[PATCH] powerpc: fix uninitialised error in numa.c

2012-06-19 Thread Michael Neuling
chroma_defconfig currently gives me this with gcc 4.6: arch/powerpc/mm/numa.c:638:13: error: 'dm' may be used uninitialized in this function [-Werror=uninitialized] It's a bogus warning since of_get_drconf_memory() only writes it anyway. Signed-off-by: Michael Neuling cc: st

Re: [PATCH] powerpc: fix uninitialised error in numa.c

2012-06-19 Thread Michael Neuling
Tony Breeds wrote: > On Wed, Jun 20, 2012 at 02:17:47PM +1000, Michael Neuling wrote: > > chroma_defconfig currently gives me this with gcc 4.6: > > arch/powerpc/mm/numa.c:638:13: error: 'dm' may be used uninitialized in > > this function [-Werror=uninitialized

[PATCH] powerpc: fix uninitialised error in numa.c

2012-06-19 Thread Michael Neuling
chroma_defconfig currently gives me this with gcc 4.6: arch/powerpc/mm/numa.c:638:13: error: 'dm' may be used uninitialized in this function [-Werror=uninitialized] It's a bogus warning/error since of_get_drconf_memory() only writes it anyway. Signed-off-by: Michael N

[PATCH 0/18] powerpc: convert GPR usage to %r0-31 and R0-31

2012-06-20 Thread Michael Neuling
First 5 patches convert us to %r0-31. Next 12 convert make using R0-31 required in macros. Last 2 convert instructions where ra = r0 we use 0 rather than the register value (as suggested by Andreas). Version 3 adds: Fixes for chroma (moved some defines ppc_asm.h -> ppc-opcode.h) Fixed commen

[PATCH 1/18] powerpc: Add defines for R0-R31

2012-06-20 Thread Michael Neuling
We are going to use these later and convert r0 to %r0 etc. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h | 33 + 1 file changed, 33 insertions(+) Index: powerpc-test/arch/powerpc/include/asm/ppc-opcode.h

[PATCH 2/18] powerpc: modify macro ready for %r0 register change

2012-06-20 Thread Michael Neuling
The assembler doesn't take %r0 register arguments in braces, so remove them. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) Index: powerpc-test/arch/powerpc/include/asm/ppc_

[PATCH 4/18] powerpc/kvm: sldi should be sld

2012-06-20 Thread Michael Neuling
be a literal. Signed-off-by: Michael Neuling --- arch/powerpc/kvm/book3s_hv_rmhandlers.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: powerpc-test/arch/powerpc/kvm/book3s_hv_rmhandlers.S === --- powerpc-test.orig

[PATCH 5/18] powerpc: convert to %r for all GPR usage

2012-06-20 Thread Michael Neuling
Now all the fixes are in place, let's rock-n-roll! Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h | 72 - 1 file changed, 39 insertions(+), 33 deletions(-) Index: powerpc-test/arch/powerpc/include/asm/ppc_

[PATCH 6/18] powerpc/pasemi: move lbz/stbciz to ppc-opcode.h

2012-06-20 Thread Michael Neuling
move lbz/stbciz to ppc-opcode.h. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |7 +++ arch/powerpc/kernel/misc_64.S |5 - 2 files changed, 7 insertions(+), 5 deletions(-) Index: powerpc-test/arch/powerpc/include/asm/ppc-opcode.h

[PATCH 7/18] powerpc: merge STK_REG/PARAM/FRAMESIZE

2012-06-20 Thread Michael Neuling
Merge the defines of STACKFRAMESIZE, STK_REG, STK_PARAM from different places. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h |5 + arch/powerpc/lib/checksum_64.S |3 arch/powerpc/lib/copypage_power7.S |3 arch

[PATCH 8/18] powerpc: merge VCPU_GPR

2012-06-20 Thread Michael Neuling
Merge the defines of VCPU_GPR from different places. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h |7 +++ arch/powerpc/kvm/book3s_hv_rmhandlers.S |3 --- arch/powerpc/kvm/book3s_interrupts.S|8 arch/powerpc/kvm/booke_interrupts.S

[PATCH 9/18] powerpc: change mtcrf to use real register names

2012-06-20 Thread Michael Neuling
mtocrf define is just a wrapper around the real instructions so we can just use real register names here (ie. lower case). Also remove braces in macro so this is possible. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/asm-compat.h |2 +- arch/powerpc/include/asm/ppc_asm.h

[PATCH 10/18] powerpc: change LOAD_REG_ADDR to use real register names

2012-06-20 Thread Michael Neuling
LOAD_REG_ADDR define is just a wrapper around real instructions so we can just use real register names here (ie. lower case). Signed-off-by: Michael Neuling --- arch/powerpc/platforms/powernv/opal-wrappers.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: powerpc-test/arch

[PATCH 11/18] powerpc: fixes for instructions not using correct register naming

2012-06-20 Thread Michael Neuling
These macros are using integers where they could be using logical names since they take registers. We are going to enforce this soon, so fix these up now. Signed-off-by: Michael Neuling --- arch/powerpc/kernel/exceptions-64e.S |8 arch/powerpc/kernel/misc_64.S|4

[PATCH 12/18] powerpc: fix VSX macros so register names aren't wrapped

2012-06-20 Thread Michael Neuling
We need to do this so we can enforce the name of a and b in called macros PPC_RA/B later. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: powerpc-test/arch/powerpc/include/asm/ppc-opcode.h

[PATCH 13/18] powerpc: introduce new ___PPC_RA/B/S/T macros

2012-06-20 Thread Michael Neuling
These are currently the same as __PPC_RA/B/S/T but we'll wrap them soon. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |4 1 file changed, 4 insertions(+) Index: powerpc-test/arch/powerpc/include/asm/ppc-opc

[PATCH 14/18] powerpc: start using ___PPC_RA/B/S/T where necessary

2012-06-20 Thread Michael Neuling
Now have ___PPC_RA/B/S/T we can use it in some places. These are places where we can't use the existing defines which will soon enforce R0-R31 usage. The macros being changed here are being used in inline asm, which can't convert to enforce the R0-R31 usage. Signed-off-by: Micha

[PATCH 15/18] powerpc: Introduce new __REG_R macros

2012-06-20 Thread Michael Neuling
Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h | 33 + 1 file changed, 33 insertions(+) Index: powerpc-test/arch/powerpc/include/asm/ppc-opcode.h === --- powerpc

[PATCH 16/18] powerpc: enforce usage of R0-R31 where possible

2012-06-20 Thread Michael Neuling
Enforce the use of R0-R31 in macros where possible now we have all the fixes in. R0-R31 macros are removed here so that can't be used anymore. They should not be defined anywhere. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |

[PATCH 17/18] powerpc: Add defines for RA 0-R31

2012-06-20 Thread Michael Neuling
R0 is special since it'll be 0. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h | 34 ++ 1 file changed, 34 insertions(+) Index: powerpc-test/arch/powerpc/include/asm/ppc-opc

[PATCH 18/18] powerpc: enforce usage of RA 0-R31 where possible

2012-06-20 Thread Michael Neuling
Some macros use RA where when RA=R0 the values is 0, so make this the enforced mnemonic in the macro. Idea suggested by Andreas Schwab. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h | 14 +++--- arch/powerpc/kernel/cpu_setup_a2.S|2 +- arch/powerpc

Re: linux-next: build failure after merge of the final tree (powerpc related)

2012-06-20 Thread Michael Ellerman
On Wed, 2012-06-20 at 17:50 +1000, Stephen Rothwell wrote: > Hi all, > > After merging the final tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > powerpc64-linux-ld: arch/powerpc/net/built-in.o: In function > `bpf_slow_path_word': > (.text+0x90): sibling call optimiz

Re: linux-next: build failure after merge of the final tree (powerpc related)

2012-06-21 Thread Michael Ellerman
On Thu, 2012-06-21 at 16:24 +1000, Benjamin Herrenschmidt wrote: > On Thu, 2012-06-21 at 15:36 +1000, Michael Ellerman wrote: > > > > powerpc64-linux-ld: > > /src/next/net/openvswitch/vport-netdev.c:189:(.text+0x89b990): > > sibling call optimization to `_

Re: linux-next: build failure after merge of the final tree (powerpc related)

2012-06-21 Thread Michael Ellerman
On Thu, 2012-06-21 at 17:07 +1000, Michael Ellerman wrote: > On Thu, 2012-06-21 at 16:24 +1000, Benjamin Herrenschmidt wrote: > > On Thu, 2012-06-21 at 15:36 +1000, Michael Ellerman wrote: > > > > > > powerpc64-linux-ld: > > > /src/next/net/openvswitc

Re: linux-next: build failure after merge of the final tree (powerpc related)

2012-06-21 Thread Michael Ellerman
On Thu, 2012-06-21 at 21:13 +0930, Alan Modra wrote: > On Thu, Jun 21, 2012 at 08:18:39PM +0930, Alan Modra wrote: > > Linker bug. That's not a sibling call, but a normal function return > > via an out-of-line register restore function. > > I couldn't see how this might be occurring, then I remem

[PATCH] powerpc: Fix BPF_JIT code to link with multiple TOCs

2012-06-21 Thread Michael Ellerman
load of our TOC pointer. Signed-off-by: Michael Ellerman --- arch/powerpc/net/bpf_jit_64.S |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/net/bpf_jit_64.S b/arch/powerpc/net/bpf_jit_64.S index 55ba385..7d3a3b5 100644 --- a/arch/powerpc/net/bpf_jit_64.S +++ b/arch/powerpc

[PATCH] powerpc: Turn on BPF_JIT in ppc64_defconfig

2012-06-21 Thread Michael Ellerman
Matt added BPF_JIT support in commit 0ca87f05, but currently none of our defconfigs build it. Turn that sucker on. Signed-off-by: Michael Ellerman --- arch/powerpc/configs/ppc64_defconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/ppc64_defconfig b/arch/powerpc

[PATCH 0/18] powerpc: convert GPR usage to %r0-31 and R0-31

2012-06-25 Thread Michael Neuling
First 5 patches convert us to %r0-31. Next 12 convert make using R0-31 required in macros. Last 2 convert instructions where ra = r0 we use 0 rather than the register value (as suggested by Andreas). Version 4 add: Fixes for bpf_jit code Version 3 adds: Fixes for chroma (moved some defines

[PATCH 1/18] powerpc: Add defines for R0-R31

2012-06-25 Thread Michael Neuling
We are going to use these later and convert r0 to %r0 etc. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h | 33 + 1 file changed, 33 insertions(+) Index: b/arch/powerpc/include/asm/ppc-opcode.h

[PATCH 2/18] powerpc: modify macro ready for %r0 register change

2012-06-25 Thread Michael Neuling
The assembler doesn't take %r0 register arguments in braces, so remove them. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) Index: b/arch/powerpc/include/asm/ppc_

[PATCH 4/18] powerpc/kvm: sldi should be sld

2012-06-25 Thread Michael Neuling
be a literal. Signed-off-by: Michael Neuling --- arch/powerpc/kvm/book3s_hv_rmhandlers.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: b/arch/powerpc/kvm/book3s_hv_rmhandlers.S === --- a/arch/powerp

[PATCH 5/18] powerpc: convert to %r for all GPR usage

2012-06-25 Thread Michael Neuling
Now all the fixes are in place, let's rock-n-roll! Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h | 72 - 1 file changed, 39 insertions(+), 33 deletions(-) Index: b/arch/powerpc/include/asm/ppc_

[PATCH 6/18] powerpc/pasemi: move lbz/stbciz to ppc-opcode.h

2012-06-25 Thread Michael Neuling
move lbz/stbciz to ppc-opcode.h. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |7 +++ arch/powerpc/kernel/misc_64.S |5 - 2 files changed, 7 insertions(+), 5 deletions(-) Index: b/arch/powerpc/include/asm/ppc-opcode.h

[PATCH 7/18] powerpc: merge STK_REG/PARAM/FRAMESIZE

2012-06-25 Thread Michael Neuling
Merge the defines of STACKFRAMESIZE, STK_REG, STK_PARAM from different places. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h |5 + arch/powerpc/lib/checksum_64.S |3 arch/powerpc/lib/copypage_power7.S |3 arch

[PATCH 8/18] powerpc: merge VCPU_GPR

2012-06-25 Thread Michael Neuling
Merge the defines of VCPU_GPR from different places. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc_asm.h |7 +++ arch/powerpc/kvm/book3s_hv_rmhandlers.S |3 --- arch/powerpc/kvm/book3s_interrupts.S|8 arch/powerpc/kvm/booke_interrupts.S

[PATCH 9/18] powerpc: change mtcrf to use real register names

2012-06-25 Thread Michael Neuling
mtocrf define is just a wrapper around the real instructions so we can just use real register names here (ie. lower case). Also remove braces in macro so this is possible. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/asm-compat.h |2 +- arch/powerpc/include/asm/ppc_asm.h

[PATCH 10/18] powerpc: change LOAD_REG_ADDR to use real register names

2012-06-25 Thread Michael Neuling
LOAD_REG_ADDR define is just a wrapper around real instructions so we can just use real register names here (ie. lower case). Signed-off-by: Michael Neuling --- arch/powerpc/platforms/powernv/opal-wrappers.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: b/arch/powerpc

[PATCH 11/18] powerpc: fixes for instructions not using correct register naming

2012-06-25 Thread Michael Neuling
These macros are using integers where they could be using logical names since they take registers. We are going to enforce this soon, so fix these up now. Signed-off-by: Michael Neuling --- arch/powerpc/kernel/exceptions-64e.S |8 arch/powerpc/kernel/misc_64.S|4

[PATCH 12/18] powerpc: fix VSX macros so register names aren't wrapped

2012-06-25 Thread Michael Neuling
We need to do this so we can enforce the name of a and b in called macros PPC_RA/B later. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: b/arch/powerpc/include/asm/ppc-opcode.h

[PATCH 13/18] powerpc: introduce new ___PPC_RA/B/S/T macros

2012-06-25 Thread Michael Neuling
These are currently the same as __PPC_RA/B/S/T but we'll wrap them soon. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |4 1 file changed, 4 insertions(+) Index: b/arch/powerpc/include/asm/ppc-opc

[PATCH 14/18] powerpc: start using ___PPC_RA/B/S/T where necessary

2012-06-25 Thread Michael Neuling
ix of both generated and non-generated with the same code, so just convert all these to use the ___PPC_R versions which won't enforce R usage later. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h | 12 +-- arch/powerpc/net/bpf_jit.h

[PATCH 15/18] powerpc: Introduce new __REG_R macros

2012-06-25 Thread Michael Neuling
Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h | 33 + 1 file changed, 33 insertions(+) Index: b/arch/powerpc/include/asm/ppc-opcode.h === --- a/arch/powerpc/include/asm

[PATCH 16/18] powerpc: enforce usage of R0-R31 where possible

2012-06-25 Thread Michael Neuling
Enforce the use of R0-R31 in macros where possible now we have all the fixes in. R0-R31 macros are removed here so that can't be used anymore. They should not be defined anywhere. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h |

[PATCH 17/18] powerpc: Add defines for RA 0-R31

2012-06-25 Thread Michael Neuling
R0 is special since it'll be 0. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/ppc-opcode.h | 34 ++ 1 file changed, 34 insertions(+) Index: b/arch/powerpc/include/asm/ppc-opc

[PATCH 18/18] powerpc: enforce usage of RA 0-R31 where possible

2012-06-25 Thread Michael Neuling
Some macros use RA where when RA=R0 the values is 0, so make this the enforced mnemonic in the macro. Idea suggested by Andreas Schwab. Signed-off-by: Michael Neuling --- --- Index: b/arch/powerpc/include/asm/ppc-opcode.h

Help with Freescale DPAA bug

2012-06-26 Thread Michael Steckly
I'm hoping someone here can help me. Several levels of Freescale management have assured me that I am authorized to discuss their Linux code on public lists--and even explicitly suggested the ozlabs linuxppc-dev list. I'm using the P4080 processor and the Freescale SDK on a custom board. We've h

[PATCH] powerpc: fix whitespace in eeh

2012-06-26 Thread Michael Neuling
Signed-off-by: Michael Neuling diff --git a/arch/powerpc/platforms/pseries/eeh_pseries.c b/arch/powerpc/platforms/pseries/eeh_pseries.c index 8752f79..c33360ec 100644 --- a/arch/powerpc/platforms/pseries/eeh_pseries.c +++ b/arch/powerpc/platforms/pseries/eeh_pseries.c @@ -81,7 +81,7 @@ static

Re: Build regressions/improvements in v3.5-rc4

2012-06-27 Thread Michael Ellerman
On Tue, 2012-06-26 at 22:06 +0200, Geert Uytterhoeven wrote: > On Tue, Jun 26, 2012 at 9:59 PM, Geert Uytterhoeven > wrote: > > JFYI, when comparing v3.5-rc4 to v3.5-rc3[3], the summaries are: > > - build errors: +11/-219 > powerpc-randconfig > > + include/asm-generic/pgtable.h: error: implic

[PATCH] powerpc/pseries: fix software invalidate TCE

2012-06-27 Thread Michael Neuling
The following added support for powernv but broke pseries/BML: 1f1616e powerpc/powernv: Add TCE SW invalidation support TCE_PCI_SW_INVAL was split into FREE and CREATE flags but the tests in the pseries code were not updated to reflect this. Signed-off-by: Michael Neuling cc: sta...@kernel.org

Re: [PATCH 03/21] ppc/eeh: more logs for EEH initialization

2012-06-27 Thread Michael Ellerman
On Thu, 2012-06-28 at 00:01 +0800, Gavin Shan wrote: > The patch adds more logs to EEH initialization functions for > debugging purpose. Also, the machine type ("pSeries") is checked > in the platform initialization to assure it's the correct platform > to invoke it. Hi Gavin, Our boot logs are f

Re: [git pull] Please pull powerpc.git merge branch

2012-07-01 Thread Michael Neuling
> Here are a few powerpc fixes. Arguably some of this should have come to > you earlier but I'm only just catching up after my medical leave. > > Mostly these fixes regressions, a couple are long standing bugs. Benh, This should probably go up now too: http://patchwork.ozlabs.org/patch/167270

[PATCH] powerpc: Add a symbol for hypervisor trampolines

2012-07-03 Thread Michael Ellerman
Purely for cosmetic purposes, otherwise it can appear that we are in single_step_pSeries() which is slightly confusing. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/exceptions-64s.S |1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch

Re: [PATCH v3] printk: Have printk() never buffer its data

2012-07-05 Thread Michael Neuling
> On Mon, 2012-06-25 at 18:40 -0700, Linus Torvalds wrote: > > On Mon, Jun 25, 2012 at 5:56 PM, Kay Sievers wrote: > > > > > > Buffering has nice effects though: > > > It makes continuation lines appear as one record in the buffer, not as > > > n individual prints with n headers. > > > > As I alr

Re: [PATCH v3] printk: Have printk() never buffer its data

2012-07-05 Thread Michael Neuling
Kay Sievers wrote: > On Thu, Jul 5, 2012 at 10:39 AM, Kay Sievers wrote: > > On Thu, Jul 5, 2012 at 9:03 AM, Michael Neuling wrote: > >>> On Mon, 2012-06-25 at 18:40 -0700, Linus Torvalds wrote: > > > >>> > I think it might be a great idea to buffer fo

Re: [PATCH v3] printk: Have printk() never buffer its data

2012-07-05 Thread Michael Neuling
Kay Sievers wrote: > On Thu, 2012-07-05 at 13:47 +0200, Kay Sievers wrote: > > On Thu, Jul 5, 2012 at 12:20 PM, Michael Neuling wrote: > > > > > I can only make 2) happen on SMP. It's when the second CPU is coming up > > > and it's printing something

<    1   2   3   4   5   6   7   8   9   10   >