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

2012-06-20 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 Neuling mi...@neuling.org

[PATCH] MIPS: fix bug.h MIPS build regression

2012-06-20 Thread Yoichi Yuasa
Commit: 3777808873b0c49c5cf27e44c948dfb02675d578 breaks all MIPS builds. CC arch/mips/kernel/machine_kexec.o In file included from include/linux/kernel.h:20:0, from include/asm-generic/bug.h:35, from

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

2012-06-20 Thread Stephen Rothwell
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 optimization to `skb_copy_bits' does not allow automatic multiple TOCs;

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

2012-06-20 Thread Geert Uytterhoeven
On Wed, Jun 20, 2012 at 5:59 AM, Paul Mundt let...@linux-sh.org wrote: On Sun, Jun 17, 2012 at 09:56:59PM +0200, Geert Uytterhoeven wrote: On Sun, Jun 17, 2012 at 9:46 PM, Geert Uytterhoeven ge...@linux-m68k.org wrote: JFYI, when comparing v3.5-rc3 to v3.5-rc2[3], the summaries are: ??-

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

2012-06-20 Thread Benjamin Herrenschmidt
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: I hate our ABI is a good answer ? :-) I'll see what I can do tomorrow. Poke me when I'm in the office. Cheers, Ben.

Re: [PATCH] MIPS: fix bug.h MIPS build regression

2012-06-20 Thread Sergei Shtylyov
Hello. On 20-06-2012 10:27, Yoichi Yuasa wrote: Commit: 3777808873b0c49c5cf27e44c948dfb02675d578 Please also specify the summary of that commit in parens. breaks all MIPS builds. [...] Signed-off-by: Yoichi Yuasayu...@linux-mips.org WBR, Sergei

Re: [PATCH] MIPS: fix bug.h MIPS build regression

2012-06-20 Thread John Crispin
On 20/06/12 08:27, Yoichi Yuasa wrote: Commit: 3777808873b0c49c5cf27e44c948dfb02675d578 breaks all MIPS builds. Hi Yoichi, I stumbled across the same build regression last night and came up with almost the same fix :-) Tested-by: John Crispin blo...@openwrt.org Thanks, John

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

2012-06-20 Thread Giuseppe CAVALLARO
Hello Paul On 6/20/2012 5:59 AM, Paul Mundt wrote: On Sun, Jun 17, 2012 at 09:56:59PM +0200, Geert Uytterhoeven wrote: On Sun, Jun 17, 2012 at 9:46 PM, Geert Uytterhoeven ge...@linux-m68k.org wrote: JFYI, when comparing v3.5-rc3 to v3.5-rc2[3], the summaries are: ??- build errors: +235/-10

Re: [PATCH] MIPS: fix bug.h MIPS build regression

2012-06-20 Thread Ralf Baechle
On Wed, Jun 20, 2012 at 03:27:59PM +0900, Yoichi Yuasa wrote: Commit: 3777808873b0c49c5cf27e44c948dfb02675d578 breaks all MIPS builds. Thanks, fix applied. Ralf ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

Re: [PATCH] PPC: PCI: Fix pcibios_io_space_offset() so it works for 32-bit ptr/64-bit rsrcs

2012-06-20 Thread Bjorn Helgaas
On Mon, Jun 18, 2012 at 2:39 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Mon, 2012-06-18 at 09:23 -0600, Bjorn Helgaas wrote: Ooh, sorry about that.  Who's going to push this fix?  I don't see it in Linus' tree yet.  If you want me to, please forward me the original patch.

Re: [PATCH] i2c: let the core register devices from devicetree

2012-06-20 Thread Barry Song
2012/6/14 Wolfram Sang w.s...@pengutronix.de: Currently, every driver has to do it on its own, but it should be done in the core, like we already do with board_info structs. Signed-off-by: Wolfram Sang w.s...@pengutronix.de Acked-by: Barry Song barry.s...@lianlab.org --- Based on

[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

[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 mi...@neuling.org --- 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 mi...@neuling.org --- arch/powerpc/include/asm/ppc_asm.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) Index: powerpc-test/arch/powerpc/include/asm/ppc_asm.h

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

2012-06-20 Thread Michael Neuling
Since we are taking a registers, this should never have been an sldi. Talking to paulus offline, this is the correct fix. Was introduced by: commit 19ccb76a1938ab364a412253daec64613acbf3df Author: Paul Mackerras pau...@samba.org Date: Sat Jul 23 17:42:46 2011 +1000 Talking to paulus, this

[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 mi...@neuling.org --- arch/powerpc/include/asm/ppc_asm.h | 72 - 1 file changed, 39 insertions(+), 33 deletions(-) Index: powerpc-test/arch/powerpc/include/asm/ppc_asm.h

[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 mi...@neuling.org --- arch/powerpc/include/asm/ppc-opcode.h |7 +++ arch/powerpc/kernel/misc_64.S |5 - 2 files changed, 7 insertions(+), 5 deletions(-) Index:

[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 mi...@neuling.org --- arch/powerpc/include/asm/ppc_asm.h |5 + arch/powerpc/lib/checksum_64.S |3 arch/powerpc/lib/copypage_power7.S |

[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 mi...@neuling.org --- arch/powerpc/include/asm/ppc_asm.h |7 +++ arch/powerpc/kvm/book3s_hv_rmhandlers.S |3 --- arch/powerpc/kvm/book3s_interrupts.S|8

[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 mi...@neuling.org --- arch/powerpc/include/asm/asm-compat.h |2 +-

[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 mi...@neuling.org --- arch/powerpc/platforms/powernv/opal-wrappers.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index:

[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 mi...@neuling.org --- arch/powerpc/kernel/exceptions-64e.S |8 arch/powerpc/kernel/misc_64.S

[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 mi...@neuling.org --- arch/powerpc/include/asm/ppc-opcode.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index:

[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 mi...@neuling.org --- arch/powerpc/include/asm/ppc-opcode.h |4 1 file changed, 4 insertions(+) Index: powerpc-test/arch/powerpc/include/asm/ppc-opcode.h

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

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

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

[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 mi...@neuling.org --- arch/powerpc/include/asm/ppc-opcode.h | 41

[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 mi...@neuling.org --- arch/powerpc/include/asm/ppc-opcode.h | 34 ++ 1 file changed, 34 insertions(+) Index: powerpc-test/arch/powerpc/include/asm/ppc-opcode.h

[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 mi...@neuling.org --- arch/powerpc/include/asm/ppc-opcode.h | 14 +++--- arch/powerpc/kernel/cpu_setup_a2.S|2

Re: [PATCH] PPC: PCI: Fix pcibios_io_space_offset() so it works for 32-bit ptr/64-bit rsrcs

2012-06-20 Thread Benjamin Herrenschmidt
(Bjorn, added you back because I ended up digging a shitload of issues including some generic ... see below) On Tue, 2012-06-05 at 23:50 -0400, Ben Collins wrote: The commit introducing pcibios_io_space_offset() was ignoring 32-bit to 64-bit sign extention, which is the case on ppc32 with

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 optimization