Re: tlb flushing on Power

2012-03-06 Thread Michael Neuling
Seth, > Thanks for the help! I was wondering if you could take a look at something > for me. > > I've been working on this staging driver (zsmalloc memory allocator) > that does virtual mapping of two pages. > > I have a github repo with the driver and the unsubmitted changes. I'm > trying to

Re: linux-next: manual merge of the powerpc tree with the arm tree

2012-03-07 Thread Michael Neuling
> Today's linux-next merge of the powerpc tree got a conflict in > arch/powerpc/Kconfig between commit 2ed86b16eabe ("irq: make SPARSE_IRQ > an optionally hidden option") from the arm tree and commit ad5b7f1350c2 > ("powerpc: Make SPARSE_IRQ required") from the powerpc tree. > > I fixed it up (see

Re: [GIT PULL] Disintegrate and kill asm/system.h

2012-03-28 Thread Michael Neuling
Hi all, > > On Thu, 29 Mar 2012 13:55:55 +1100 Stephen Rothwell = > wrote: > > > > On Thu, 29 Mar 2012 13:50:44 +1100 Michael Neuling wr= > ote: > > > > > > > Here are a bunch of patches to disintegrate asm/system.h into a set o= > f separat

Re: [GIT PULL] Disintegrate and kill asm/system.h

2012-03-28 Thread Michael Neuling
fallout from system.h split up > > Signed-off-by: Stephen Rothwell FWIW.. this works for me too.. Acked-by: Michael Neuling Mikey > --- > arch/powerpc/kernel/fadump.c |2 + > arch/powerpc/kernel/irq.c| 72 ++= > >

[PATCH] gianfar: add missing include

2012-04-09 Thread Michael Neuling
ion) drivers/net/ethernet/freescale/gianfar_ethtool.c:1766:9: error: 'HWTSTAMP_FILTER_ALL' undeclared (first use in this function) This is because of a missing include file from: 6663628 gianfar: Support the get_ts_info ethtool method. Signed-off-by: Michael Neuling CC: Richard Cochran

Re: [PATCH] gianfar: add missing include

2012-04-09 Thread Michael Neuling
Richard Cochran wrote: > On Tue, Apr 10, 2012 at 02:18:47PM +1000, Michael Neuling wrote: > > This is because of a missing include file from: > > 6663628 gianfar: Support the get_ts_info ethtool method. > > > > Signed-off-by: Michael Neuling > > I did a poor

Re: linux-next: boot failures with next-20120411

2012-04-12 Thread Michael Neuling
Stephen Rothwell wrote: > Hi all, > > Some (not all) of my PowerPC boot tests have failed like this after > getting into user mode (this one was just after udev started, but others > are after other processes getting going): > > Unable to handle kernel paging request for data at address 0xc

Re: linux-next: boot failures with next-20120411

2012-04-13 Thread Michael Neuling
Jiri Slaby wrote: > On 04/13/2012 10:02 AM, Jiri Slaby wrote: > > On 04/13/2012 04:30 AM, Michael Neuling wrote: > >> Stephen Rothwell wrote: > >> > >>> Hi all, > >>> > >>> Some (not all) of my PowerPC boot tests have failed like t

Re: linux-next: PowerPC boot failures in next-20120521

2012-05-21 Thread Michael Neuling
> Hi all, > > Last nights boot tests on various PowerPC systems failed like this: > > calling .numa_group_init+0x0/0x3c @ 1 > initcall .numa_group_init+0x0/0x3c returned 0 after 0 usecs > calling .numa_init+0x0/0x1dc @ 1 > Unable to handle kernel paging request for data at address 0x1688 >

Re: linux-next: PowerPC boot failures in next-20120521

2012-05-21 Thread Michael Neuling
> > Trying David's patch just posted doesn't fix it. > > > > Hmm, what does CONFIG_DEBUG_VM say? No set. Mikey ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: linux-next: PowerPC boot failures in next-20120521

2012-05-21 Thread Michael Neuling
Michael Neuling wrote: > > > Trying David's patch just posted doesn't fix it. > > > > > > > Hmm, what does CONFIG_DEBUG_VM say? > > No set. Sorry, should have read "Not set" mikey ___ Linux

Re: linux-next: PowerPC boot failures in next-20120521

2012-05-21 Thread Michael Neuling
David Rientjes wrote: > On Tue, 22 May 2012, Michael Neuling wrote: > > > > > > Trying David's patch just posted doesn't fix it. > > > > > > > > > > > > > Hmm, what does CONFIG_DEBUG_VM say? > > > > > &g

Re: linux-next: PowerPC boot failures in next-20120521

2012-05-21 Thread Michael Neuling
David Rientjes wrote: > On Tue, 22 May 2012, Michael Neuling wrote: > > > Sorry, got it... CONFIG_DEBUG_VM enabled below... > > > > pid_max: default: 32768 minimum: 301 > > Dentry cache hash table entries: 262144 (order: 5, 2097152 bytes) > > Inode-cache

Re: [PATCH] powerpc: Optimise the 64bit optimised __clear_user

2012-06-06 Thread Michael Neuling
Benjamin Herrenschmidt wrote: > On Wed, 2012-06-06 at 18:40 +0200, Segher Boessenkool wrote: > > > +err1;dcbzr0,r3 > > > > There is no such instruction, you probably meant "dcbz 0,r3"? > > This reminds me... what would happen if we changed all our > > #define r0 0 > #define

Re: [PATCH] powerpc: Optimise the 64bit optimised __clear_user

2012-06-06 Thread Michael Neuling
Michael Ellerman wrote: > On Thu, 2012-06-07 at 16:05 +1000, Michael Neuling wrote: > > Benjamin Herrenschmidt wrote: > > > > > On Wed, 2012-06-06 at 18:40 +0200, Segher Boessenkool wrote: > > > > > +err1;dcbzr0,r3 > > > > >

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

2012-06-07 Thread Michael Neuling
Fix sldi to take literal not register name. Was introduced by: commit 19ccb76a1938ab364a412253daec64613acbf3df Author: Paul Mackerras Date: Sat Jul 23 17:42:46 2011 +1000 Signed-off-by: Michael Neuling --- I got sick off the bike-shedding in a vacuum and started doing the conversion

[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 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

[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

[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

[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

[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: [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

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

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

2012-07-05 Thread Michael Neuling
Kay Sievers wrote: > On Fri, Jul 6, 2012 at 2:41 AM, Michael Neuling wrote: > > >> > Does this happen only very early during bootup, or also later when the > >> > box fully initialized? > > > > I'm seeing during boot but not later (xmon (ppc kern

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

2012-07-05 Thread Michael Neuling
Michael Neuling wrote: > Kay Sievers wrote: > > > On Fri, Jul 6, 2012 at 2:41 AM, Michael Neuling wrote: > > > > >> > Does this happen only very early during bootup, or also later when the > > >> > box fully initialized? > > > >

Re: [PATCH] irqbalance, powerpc: add IRQs without settable SMP affinity to banned list

2010-09-23 Thread Michael Neuling
s to put the IPIs on one core (CPU0&1) and lan0 and ibmvscsi on the other core (CPU2&3). This is suboptimal as we want lan0 and ibmvscsi to be on separate cores and IPIs to be ignored. When irqblance attempts writes to the IPI smp_affinity (ie. /proc/irq/16/smp_affinity in the above example)

Re: [PATCH] add icswx support v2

2010-10-12 Thread Michael Neuling
In message <1286855108.14049.8.ca...@flin.austin.ibm.com> you wrote: > icswx is a PowerPC co-processor instruction to send data to a > co-processor. On Book-S processors the LPAR_ID and process ID (PID) of > the owning process are registered in the window context of the > co-processor at initial ti

<    5   6   7   8   9   10   11   12   13   14   >