Re: [PATCHv3] powerpc: convert relocs_check to a shell script using grep

2015-03-15 Thread Tony Breeds
On Sun, Mar 15, 2015 at 10:08:47PM +1100, Stephen Rothwell wrote: > This runs a bit faster and removes another use of perl from > the kernel build. > > Signed-off-by: Stephen Rothwell I only wrote it in perl because ... lazy. Kill it with fire. Acked-By: Tony Breeds

Re: [PATCH 1/2] powerpc: Add a proper syscall for switching endianness

2015-03-15 Thread Tony Breeds
On Fri, Mar 13, 2015 at 05:38:46PM +1100, Michael Ellerman wrote: > According to Paul there are no working implementations of LE on 32-bit cpus, > so > the syscall doesn't really make sense there. Ummm that doesn't sound right. I don't think there is an LE linux userspace but I'm pretty sure we

Re: [PATCH v2] powerpc: Remove more traces of bootmem

2014-11-19 Thread Tony Breeds
On Thu, Nov 20, 2014 at 11:07:38AM +1100, Michael Ellerman wrote: > Although we are now selecting NO_BOOTMEM, we still have some traces of > bootmem lying around. That is because even with NO_BOOTMEM there is > still a shim that converts bootmem calls into memblock calls, but > ultimately we want t

[PATCH] powerpc/boot: Don't install zImage.* from make install

2014-08-14 Thread Tony Breeds
hange reverts make install to just install the vmlinux (we can change the dfault in a seperate patch) and introduces a new make zInstall which works with a more flexible installkernel script. Cc: Grant Likely Signed-off-by: Tony Breeds --- arch/powerpc/boot/Makefile | 5 + 1 file chang

Re: [tip:timers/core] timekeeping: Fixup typo in update_vsyscall_old definition

2014-08-12 Thread Tony Breeds
On Tue, Aug 12, 2014 at 08:30:40AM -0700, John Stultz wrote: > Thanks for pointing it out. I'll send a fix here shortly (though I only > have the ppc64le toolchain handy, so forgive me if its not quite right). /me pimps the kernel.org toolchains: https://www.kernel.org/pub/tools/crosstool/files/b

Re: Kernel build issues after yesterdays merge by Linus

2014-06-12 Thread Tony Breeds
On Thu, Jun 12, 2014 at 10:09:12PM +1000, Anton Blanchard wrote: > The TOC symbol export is special and I think we might need to get our > script to ignore it. Try this (untested) patch. If it's good I'll send it to Ben. diff --git a/arch/powerpc/relocs_check.pl b/arch/powerpc/relocs_check.pl

[PATCH] powerpc/le: Show the endianess of the LPAR under PowerVM.

2014-03-12 Thread Tony Breeds
Signed-off-by: Tony Breeds --- arch/powerpc/platforms/pseries/setup.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 972df0f..5a32caa 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch

[PATCH] powerpc/le: Avoid creatng R_PPC64_TOCSAVE relocations for modules.

2014-03-11 Thread Tony Breeds
_conntrack: Unknown ADD relocation: 109 This patch tells the linker to avoid createing R_PPC64_TOCSAVE relocations allowing modules to load. Signed-off-by: Tony Breeds --- arch/powerpc/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile ind

Re: [PATCH] powerpc: ftrace: bugfix for test_24bit_addr

2014-02-26 Thread Tony Breeds
On Wed, Feb 26, 2014 at 11:22:16PM +1100, Michael Ellerman wrote: > ppc_function_entry() just needs to be a nop on LE, as it already is on 32-bit. Well on LE ABI2, but yes. Yours Tony pgpHb6onHPwUw.pgp Description: PGP signature ___ Linuxppc-dev mai

[PATCH] powerpc/le: Ensure that the 'stop-self' RTAS token is handled correctly

2014-02-20 Thread Tony Breeds
To fix this we always use the stop-self token in host order and always convert it to be32 before passing this to rtas. Signed-off-by: Tony Breeds Cc: sta...@vger.kernel.org --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-

Re: error compiling ptrace in current mainline git

2013-07-12 Thread Tony Breeds
On Fri, Jul 12, 2013 at 10:27:41AM -0600, Chris Friesen wrote: > Hi all, > > I'm trying to build current mainline git with gcc version 4.4.1 as a > cross compiler and I'm getting the following: > > > CC arch/powerpc/kernel/ptrace.o > {standard input}: Assembler messages: > {standard input

Re: IBM OpenPower 720 ipr driver woes

2013-06-03 Thread Tony Breeds
On Mon, Jun 03, 2013 at 09:40:52PM -0400, Robert Knight wrote: > On 6/3/2013 8:01 PM, Tony Breeds wrote: > >On Mon, Jun 03, 2013 at 05:20:12PM -0400, Robert Knight wrote: > > > >>>Device tree struct 0x0482 -> 0x0484 > >>>Callin

Re: IBM OpenPower 720 ipr driver woes

2013-06-03 Thread Tony Breeds
On Mon, Jun 03, 2013 at 05:20:12PM -0400, Robert Knight wrote: > >Device tree struct 0x0482 -> 0x0484 > >Calling quiesce... > >returning from prom_init > >[1.376359] ehci-pci :c8:01.2: can't setup Can you try adding "debug" to the kernel commandline. We're missin

Re: [PATCH] powerpc: Update currituck pci/usb fixup for new board revision

2013-05-14 Thread Tony Breeds
mapping the appropriate IRQ. > > Signed-off-by: Alistair Popple Acked-by: Tony Breeds Yours Tony pgp6258pwIZwa.pgp Description: PGP signature ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCHv4 1/2] ppc64: perform proper max_bus_speed detection

2013-05-02 Thread Tony Breeds
On Thu, May 02, 2013 at 12:21:37PM -0300, Kleber Sacilotto de Souza wrote: > Hi Tony, > > It seems Lucas' change is a bit incomplete and is not handling the reference > counter to > the device_node correctly. Is the following change what you had in mind? Ahh Sorry I expected there would be a fo

Re: [PATCHv4 1/2] ppc64: perform proper max_bus_speed detection

2013-04-24 Thread Tony Breeds
On Wed, Apr 24, 2013 at 07:54:49PM -0300, luca...@linux.vnet.ibm.com wrote: > From: Lucas Kannebley Tavares > > On pseries machines the detection for max_bus_speed should be done > through an OpenFirmware property. This patch adds a function to perform > this detection and a hook to perform dynam

[PATCH v2] powerpc: Wireup the kcmp syscall to sys_ni

2013-03-04 Thread Tony Breeds
Since kmp takes 2 unsigned long args there should be a compat wrapper. Since one isn't provided I think it's safer just to hook this up to not implemented. If we need it later we can do it properly then. Signed-off-by: Tony Breeds --- Changes since v1: - Add comment to make finding t

[PATCH] powerpc: Wireup the kcmp syscall to sys_ni

2013-03-04 Thread Tony Breeds
Since kmp takes 2 unsigned long args there should be a compat wrapper. Since one isn't provided I think it's safer just to hook this up to not implemented. If we need it later we can do it properly then. Signed-off-by: Tony Breeds --- arch/powerpc/include/asm/systbl.h | 1 + ar

[PATCH] ppc32: Fix compile of sha1-powerpc-asm.S

2013-02-25 Thread Tony Breeds
expression too complex powerpc/crypto/sha1-powerpc-asm.S:178: Error: unsupported relocation against STACKFRAMESIZE --- Use INT_FRAME_SIZE instead. Signed-off-by: Tony Breeds --- arch/powerpc/crypto/sha1-powerpc-asm.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) FWIW the SHA1_PPC m

[PATCH] powerpc: Add asm/debug.h to get powerpc_debugfs_root

2012-10-02 Thread Tony Breeds
Since the "Disintegrate asm/system.h for PowerPC" (ae3a197e3d0bfe3f4bf1693723e82dc018c096f3) This has been failing when DEBUG is #defined. Signed-off-by: Tony Breeds --- arch/powerpc/kernel/prom.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/powe

[PATCH] powerpc/47x: Use the new ppc-opcode intrastructiure.

2012-10-02 Thread Tony Breeds
Don't use 47x only #defines for TLBIVAX or ICBT, supply and use helpers in ppc-opcode.h This fixes a compile breakage. Signed-off-by: Tony Breeds --- arch/powerpc/include/asm/ppc-opcode.h |4 arch/powerpc/mm/tlb_nohash_low.S | 15 --- 2 files changed, 8 inser

Re: [PATCH V5 2/3] powerpc/swiotlb: Enable at early stage and disable if not necessary

2012-08-08 Thread Tony Breeds
|5 + > > 7 files changed, 32 insertions(+), 14 deletions(-) > > Josh, Tony > > Can you ack the 44x/currituck.c change. Looks fine to me. Acked-by: Tony Breeds Yours Tony pgplQWNNfUudd.pgp Description: PGP signature ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: 3.5+: yaboot, Invalid memory access

2012-07-31 Thread Tony Breeds
On Mon, Jul 30, 2012 at 10:46:39PM -0700, Christian Kujau wrote: > Hi, > > when trying to upgrade from 3.5 (final) to today's git checkout from > Linus' tree, yaboot cannot boot and the following is printed: > > [...] > returning from prom_init > Invalid memory access at %SRR0: 00c62fd4 %

Re: [PATCH] radeonfb: Add quirk for the graphics adapter in some JSxx

2012-07-18 Thread Tony Breeds
On Wed, Jul 18, 2012 at 06:49:04PM +0200, o...@aepfle.de wrote: Thanks for following this up. > From: Tony Breeds > > These devices are set to 640x480 by firmware, switch them to 800x600@60 > so that the graphical installer can run on remote console. > > Reported by IBM duri

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

2012-06-19 Thread Tony Breeds
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] > > It's a bogus warning since of_get_drconf_memory() only

Re: [PATCH v2] powerpc/boot: Only build board support files when required.

2012-04-03 Thread Tony Breeds
-by: Tony Breeds --- arch/powerpc/boot/Makefile | 56 +--- 1 files changed, 37 insertions(+), 19 deletions(-) Changes since v1: - I missed a dependancy for ep8248e.c on planetcore.c, this caused the 6xx_defconfig to fail. - Use the sorted and de

Re: [PATCH] powerpc/boot: Only build board support files when required.

2012-04-02 Thread Tony Breeds
are right. How about this. From b59e3f86d72fe3e16881ec972602a9bb3e28045a Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Mon, 2 Apr 2012 16:20:35 +1000 Subject: [PATCH] powerpc/boot: Only build board support files when required. Currently we build all board files regardless of the final zImage t

Re: [PATCH] powerpc/boot: Only build board support files when required.

2012-04-02 Thread Tony Breeds
On Tue, Apr 03, 2012 at 11:00:02AM +1000, David Gibson wrote: > Um.. I believe the one platform breaking another is actually working > as intended. I think Paulus did it this way to stop people breaking > platforms other than the one they were working on without realising > it. Well that may ha

[PATCH] powerpc/boot: Only build board support files when required.

2012-04-02 Thread Tony Breeds
-by: Tony Breeds --- arch/powerpc/boot/Makefile | 69 +--- 1 files changed, 52 insertions(+), 17 deletions(-) diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index e8461cb..3d4d9ea 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch

Re: kilauea compilation breaks with v3.3 kernel and ELDK 4.2

2012-04-01 Thread Tony Breeds
That > should fix it. Please try this patch. Only lightly tested here. I haven't "split up" src-wlib yet as I wanted to verify I'm on the right track. From e0b1ac84bfd539482bc88b943724e577e6b8dfb3 Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Mon, 2 Apr 2012 16:20:3

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

2012-03-21 Thread Tony Breeds
On Wed, Mar 21, 2012 at 07:02:00PM -0700, Linus Torvalds wrote: > Ok, so this conflicted a bit with the generalized irq-domain stuff > from Grant Likely, and while I tried to fix it up I can't even > compile-test the end result, so you really need to verify my merge and > perhaps send me fixups. O

Re: kilauea compilation breaks with v3.3 kernel and ELDK 4.2

2012-03-21 Thread Tony Breeds
On Wed, Mar 21, 2012 at 02:10:59PM +0200, Robert Berger wrote: > Hi, > > Up to 3.2.x I was able to compile a mainline kernel for the kilauea > board, but... > > http://git.denx.de/?p=linux-denx.git;a=commitdiff;h=075bcf5879225d0c2a119c23d8046b890e051e81 > > shows, that mfdcrx was introduced in t

Re: [PATCH 0/2] Kdump support for PPC_47x

2012-03-14 Thread Tony Breeds
On Wed, Mar 14, 2012 at 03:52:30PM +0530, Suzuki K. Poulose wrote: > The following series implements Kexec/Kdump support for > PPC_47x based platforms. Doesn't support SMP yet. > > I have tested these patches on simics simulator for ppc476. I'll test these patches on the currituck board I have he

Re: [PATCH stable-2.6.27] powerpc: Add more Power7 specific definitions

2012-02-13 Thread Tony Breeds
On Mon, Feb 13, 2012 at 07:35:28AM +0100, Willy Tarreau wrote: > On Mon, Feb 13, 2012 at 11:52:02AM +1100, Michael Neuling wrote: > > stable-2.6.27.60 added c24cb8e5 which uses PV_POWER7 but it's not > > defined. Following patch adds these definitions. > > Thank you for the report Michael, I have

Re: linux-next bad Kconfig for drivers/hid

2011-12-15 Thread Tony Breeds
On Thu, Dec 15, 2011 at 11:08:08AM +0100, Jiri Kosina wrote: > Tony, > > have you actually tested this one to work in the configuration you have > been seeing it to fail? > > I don't seem to be able to find any use of '==' in other Kconfig files > (and never used it myself), so I'd like to ha

[PATCH] Only use initrd_end as the limit for alloc_bottom if it's inside the RMO.

2011-12-13 Thread Tony Breeds
27;s inside the RMO. Signed-off-by: Paul Mackerras Signed-off-by: Tony Breeds --- arch/powerpc/kernel/prom_init.c | 17 + 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index cc58486..940dc0c 10

Re: linux-next bad Kconfig for drivers/hid

2011-12-11 Thread Tony Breeds
On Mon, Dec 12, 2011 at 12:21:16AM +0100, Jiri Kosina wrote: > On Thu, 8 Dec 2011, Jeremy Fitzhardinge wrote: > > > > Hm. How about making it "depends on HID && POWER_SUPPLY"? I think that > > would needlessly disable it if HID is also modular, but I'm not sure how > > to fix that. "depends on

[PATCH] powerpc: fix compile error with 85xx/p1010rdb.c

2011-12-08 Thread Tony Breeds
oduced in: commit 996983b75cebb1bc1c2c545f20336f24ebfa17af Author: Kyle Moffett Date: Fri Dec 2 06:28:02 2011 + powerpc/mpic: Search for open-pic device-tree node if NULL Signed-off-by: Tony Breeds --- Mikey already posted a fix for p1023_rds.c. I think this is the last one. arch/po

linux-next bad Kconfig for drivers/hid

2011-12-08 Thread Tony Breeds
Commit 4f5ca836bef3 (HID: hid-input: add support for HID devices reporting Battery Strength) went into linux-next on Dec 1st since then a ppc6xx_defconfig has been failing with: --- drivers/built-in.o: In function `hidinput_cleanup_battery': /scratch/tony/working/drivers/hid/hid-input.c:351: unde

Re: [linux-3.2-rc4 PPC64] Series of "Section Mismatch" warnings, are they expected ?

2011-12-08 Thread Tony Breeds
On Fri, Dec 09, 2011 at 12:40:32AM +0530, Subrata Modak wrote: > Hello, > > While compiling linux-3.2-rc4 on PPC64, i get the following set of > warning series. I wanted to know if they are expected, or, they need to > be fixed: If you have time they should be fixed. Yours Tony pgpLJnfmz0SFz.p

Re: [PATCH 7/8] 44x/476fpe: Add 476fpe SoC code

2011-12-03 Thread Tony Breeds
On Sat, Dec 03, 2011 at 08:33:40AM -0500, Josh Boyer wrote: > If the plan is to have them go through my tree, I can fix them up when > I apply them. I was expecting them to go through your tree, so it'd be grat if you didn't mind finxing those up. Yours Tony pgpPpuZpwUGxh.pgp Description: PGP

Re: [PATCH 7/8] 44x/476fpe: Add 476fpe SoC code

2011-12-03 Thread Tony Breeds
On Sat, Dec 03, 2011 at 07:58:17AM +1100, Benjamin Herrenschmidt wrote: > On Thu, 2011-12-01 at 18:39 +1100, Tony Breeds wrote: > > Based on original work by David 'Shaggy' Kliekamp. > > Typo in Shaggy's last name :-) Rats! Looks like I stuffed it up once. Do yo

Re: Add support for the currituck 476 platform from IBM (v2)

2011-11-30 Thread Tony Breeds
On Thu, Dec 01, 2011 at 06:39:16PM +1100, Tony Breeds wrote: > Patches 1 to 3 > Modify the 44x PCI code to work with 476fpe/currituck. > Patch 4 > Is an old patch by Christoph Egger that fell through the cracks > somehow. > Patches 5 and 6 > Modi

[PATCH 8/8] 44x/currituck: Add support for the new IBM currituck platform

2011-11-30 Thread Tony Breeds
Based on original work by David 'Shaggy' Kliekamp. Signed-off-by: Tony Breeds --- arch/powerpc/boot/Makefile |5 +- arch/powerpc/boot/dts/currituck.dts | 237 ++ arch/powerpc/boot/treeboot-currituck.c | 119 +

[PATCH 7/8] 44x/476fpe: Add 476fpe SoC code

2011-11-30 Thread Tony Breeds
Based on original work by David 'Shaggy' Kliekamp. Signed-off-by: Tony Breeds --- arch/powerpc/include/asm/reg.h |1 + arch/powerpc/kernel/cputable.c | 14 + arch/powerpc/kernel/head_44x.S |2 + arch/powerpc/platforms/44x/Kconfig |4 ++ arch/powe

[PATCH 6/8] powerpc/boot: Add mfdcrx

2011-11-30 Thread Tony Breeds
Needed for currituck support. Signed-off-by: Tony Breeds --- arch/powerpc/boot/dcr.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) I chose to use a #define to keep with the style of m[tf]dcr in the same file. diff --git a/arch/powerpc/boot/dcr.h b/arch/powerpc/boot/dcr.h

[PATCH 5/8] powerpc/boot: Add extended precision shifts to the boot wrapper.

2011-11-30 Thread Tony Breeds
build as the .o's need to be built with different flags for the bootwrapper vs the kernel. So for now the easyest option is to just copy code from arch/powerpc/kernel/misc_32.S I don't think this code changes too often ;P Signed-off-by: Tony Breeds --- arch/powerpc/boot

[PATCH 4/8] 44x: Removing dead CONFIG_PPC47x

2011-11-30 Thread Tony Breeds
h Egger Signed-off-by: Tony Breeds --- arch/powerpc/mm/44x_mmu.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/mm/44x_mmu.c b/arch/powerpc/mm/44x_mmu.c index f60e006..5d4e3ff 100644 --- a/arch/powerpc/mm/44x_mmu.c +++ b/arch/powerpc/mm/44x_mmu.c @@ -78,11

[PATCH 3/8] 44x/pci: Setup the dma_window properties for each pci_controller

2011-11-30 Thread Tony Breeds
Needed if you want to use swiotlb, harmless otherwise. Signed-off-by: Tony Breeds --- arch/powerpc/sysdev/ppc4xx_pci.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c index ab3293a..45148ef 100644

[PATCH 2/8] 44x/pci: Add a want_sdr flag into ppc4xx_pciex_hwops

2011-11-30 Thread Tony Breeds
Currituck doesn't need nor use SDR so aborting the pci setup if there is no sdr-base would be bad. Add a flag to ppc4xx_pciex_hwops for the backends to state if they need SDR and then only complain and abort if they do and it's not found in the device tree. Signed-off-by: Tony Breeds

[PATCH 1/8] 44x/pci: Use PCI_BASE_ADDRESS_MEM_PREFETCH rather than magic value.

2011-11-30 Thread Tony Breeds
Signed-off-by: Tony Breeds --- arch/powerpc/sysdev/ppc4xx_pci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) This patch was somehow missed from the original series. diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c index 862f11b..16f5eba 100644

Add support for the currituck 476 platform from IBM (v2)

2011-11-30 Thread Tony Breeds
Patches 1 to 3 Modify the 44x PCI code to work with 476fpe/currituck. Patch 4 Is an old patch by Christoph Egger that fell through the cracks somehow. Patches 5 and 6 Modify the bootwrapper to handle 476fpe/currituck Patch 7 The SoC support. Patch 8 The curri

Re: [PATCH 6/6] 44x/currituck: Add support for the new IBM currituck platform

2011-11-30 Thread Tony Breeds
On Thu, Dec 01, 2011 at 03:05:24PM +1100, Tony Breeds wrote: > On Wed, Nov 30, 2011 at 05:20:22PM +1100, Benjamin Herrenschmidt wrote: > > On Wed, 2011-11-30 at 16:24 +1100, Tony Breeds wrote: > > > +void platform_init(void) > > > +{ > > > + /* Cap the zI

Re: [PATCH 6/6] 44x/currituck: Add support for the new IBM currituck platform

2011-11-30 Thread Tony Breeds
On Wed, Nov 30, 2011 at 07:23:40AM -0600, Kumar Gala wrote: > Split the board support patches from the SoC support. Will do, as I said to Ben I was confused. > This seems like it should be PVR_476FPE Yup. Fixed. Yours Tony pgpmujvrlooRf.pgp Description: PGP signature ___

Re: [PATCH 6/6] 44x/currituck: Add support for the new IBM currituck platform

2011-11-30 Thread Tony Breeds
On Wed, Nov 30, 2011 at 05:20:22PM +1100, Benjamin Herrenschmidt wrote: > On Wed, 2011-11-30 at 16:24 +1100, Tony Breeds wrote: > > + plb { > > + compatible = "ibm,plb-4xx", "ibm,plb4"; /* Could be PLB6, > > doesn't matter */ > > T

Re: [PATCH 1/6] 44x/pci: Continue pci setup even if there is no sdr-base in the device-tree

2011-11-30 Thread Tony Breeds
On Wed, Nov 30, 2011 at 04:46:13PM +1100, Benjamin Herrenschmidt wrote: > If you don't expect an sdr-base as part of the normal operations of that > bridge, don't bring a message that makes me think something is wrong :-) > > Just changing the severity isn't enough. you should just remove the > m

Re: [PATCH 5/6] powerpc/boot: Add mfdcrx

2011-11-30 Thread Tony Breeds
On Thu, Dec 01, 2011 at 10:30:27AM +1100, Tony Breeds wrote: > Okay I'll change it to "i", mostly I used a #define to match the style Of course I menat "r" here. Yours Tony pgp2a2sFjknsb.pgp Description: PGP signature _

Re: [PATCH 5/6] powerpc/boot: Add mfdcrx

2011-11-30 Thread Tony Breeds
On Wed, Nov 30, 2011 at 02:09:20PM +0100, Segher Boessenkool wrote: > >+#define mfdcrx(rn) \ > >+({ \ > >+unsigned long rval; \ > >+asm volatile("mfdcrx %0,%1" : "=r"(rval) : "g"(rn)); \ > >+rval; \ > >+}) > > "g" is never correct on PowerPC, you wa

Re: [PATCH 4/6] powerpc/boot: Add extended precision shifts to the boot wrapper.

2011-11-30 Thread Tony Breeds
On Wed, Nov 30, 2011 at 06:45:37AM -0500, Josh Boyer wrote: > However, adding this code and wonderful and all but why do we need to > add it? Changelog should say why. Okay changelog updated to: powerpc/boot: Add extended precision shifts to the boot wrapper. The upcoming currituck

[PATCH 6/6] 44x/currituck: Add support for the new IBM currituck platform

2011-11-29 Thread Tony Breeds
Based on original work by David 'Shaggy' Kliekamp. Signed-off-by: Tony Breeds --- arch/powerpc/boot/Makefile |5 +- arch/powerpc/boot/dts/currituck.dts | 240 ++ arch/powerpc/boot/treeboot-currituck.c | 129 ++

[PATCH 5/6] powerpc/boot: Add mfdcrx

2011-11-29 Thread Tony Breeds
Signed-off-by: Tony Breeds --- arch/powerpc/boot/dcr.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/dcr.h b/arch/powerpc/boot/dcr.h index 645a7c9..51b5893 100644 --- a/arch/powerpc/boot/dcr.h +++ b/arch/powerpc/boot/dcr.h @@ -9,6 +9,12

[PATCH 4/6] powerpc/boot: Add extended precision shifts to the boot wrapper.

2011-11-29 Thread Tony Breeds
Code copied from arch/powerpc/kernel/misc_32.S Signed-off-by: Tony Breeds --- arch/powerpc/boot/div64.S | 52 + 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/div64.S b/arch/powerpc/boot/div64.S index d271ab5

[PATCH 3/6] 44x: Removing dead CONFIG_PPC47x

2011-11-29 Thread Tony Breeds
From: Christoph Egger CONFIG_PPC47x doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger --- arch/powerpc/mm/44x_mmu.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/mm/44x_mmu.c b/arch

[PATCH 2/6] 44x/pci: Setup the dma_window properties for each pci_controller

2011-11-29 Thread Tony Breeds
Needed if you want to use swiotlb, harmless otherwise. Signed-off-by: Tony Breeds --- arch/powerpc/sysdev/ppc4xx_pci.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c index d3fa380..d766068 100644

[PATCH 1/6] 44x/pci: Continue pci setup even if there is no sdr-base in the device-tree

2011-11-29 Thread Tony Breeds
Signed-off-by: Tony Breeds --- arch/powerpc/sysdev/ppc4xx_pci.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c index 16f5eba..d3fa380 100644 --- a/arch/powerpc/sysdev/ppc4xx_pci.c +++ b/arch

Add support for the currituck 476 platform from IBM

2011-11-29 Thread Tony Breeds
Patches 1 and 2 Modify the 44x PCI code to work with currituck. Patch 3 Is an old patch by Christoph Egger that fell through the cracks somehow. Patches 4 and 5 Modify the bootwrapper to handle currituck Patch 6 The platform itself. arch/powerpc/boot/Makefile

Re: [PATCH] powerpc: 44x: Add mtd ndfc to the ppx44x defconfig

2011-11-22 Thread Tony Breeds
On Wed, Nov 23, 2011 at 12:34:44PM +1100, Benjamin Herrenschmidt wrote: > On Tue, 2011-11-22 at 20:04 -0500, Josh Boyer wrote: > > On Tue, Nov 22, 2011 at 6:50 PM, Tony Breeds > > wrote: > > > Signed-off-by: Tony Breeds > > > > Acked-by: Josh Boyer

[PATCH] powerpc: 44x: Add mtd ndfc to the ppx44x defconfig

2011-11-22 Thread Tony Breeds
Signed-off-by: Tony Breeds --- Again appologies for the SPAM trying to send this message. arch/powerpc/configs/ppc44x_defconfig |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/configs/ppc44x_defconfig b/arch/powerpc/configs/ppc44x_defconfig index 6cdf1c0

Re: your mail

2011-11-22 Thread Tony Breeds
On Wed, Nov 23, 2011 at 10:42:45AM +1100, Tony Breeds wrote: > From 1a44c074e3ce572cbf60d31ac704e6ce42be4708 Mon Sep 17 00:00:00 2001 > From: Tony Breeds > Date: Wed, 23 Nov 2011 10:16:40 +1100 > Subject: [PATCH] powerpc: 44x: Add mtd ndfc to the ppx44x defconfig Sorry all for

[no subject]

2011-11-22 Thread Tony Breeds
>From 1a44c074e3ce572cbf60d31ac704e6ce42be4708 Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Wed, 23 Nov 2011 10:16:40 +1100 Subject: [PATCH] powerpc: 44x: Add mtd ndfc to the ppx44x defconfig Signed-off-by: Tony Breeds --- arch/powerpc/configs/ppc44x_defconfig |2 ++ 1 files changed

[no subject]

2011-11-22 Thread Tony Breeds
>From 1a44c074e3ce572cbf60d31ac704e6ce42be4708 Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Wed, 23 Nov 2011 10:16:40 +1100 Subject: [PATCH] powerpc: 44x: Add mtd ndfc to the ppx44x defconfig Signed-off-by: Tony Breeds --- arch/powerpc/configs/ppc44x_defconfig |2 ++ 1 files changed

44x/pci: Add __init annotations for *init_port_hw() functions.

2011-08-10 Thread Tony Breeds
ppc4xx_pciex_port_reset_sdr is wrong. Trivial patch to silence those warnings. Reported-By: Stephen Rothwell Signed-off-by: Tony Breeds diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c index dbfe96b..60541a6 100644 --- a/arch/powerpc/sysdev/ppc4xx_pci.c +++ b

Re: [v3 PATCH 1/1] powerpc/4xx: enable and fix pcie gen1/gen2 on the 460sx

2011-07-20 Thread Tony Breeds
On Wed, Jul 20, 2011 at 08:02:29AM -0500, Ayman Elkhashab wrote: > From: Ayman El-Khashab > > Adds a register to the config space for the 460sx. Changes the vc0 > detect to a pll detect. maps configuration space to test the link > status. changes the setup to enable gen2 devices to operate at

Re: [v2 PATCH 1/1] powerpc/4xx: enable and fix pcie gen1/gen2 on the 460sx

2011-07-18 Thread Tony Breeds
On Mon, Jul 18, 2011 at 08:31:01AM -0500, Ayman El-Khashab wrote: > Yes, but I think that is correct for it to be "1". The data > sheets for these parts that I checked had bit 1 marked as > reserved. Only OMR1MSKL and OMR3MSKL had extra definitions > such as the _IO and _UOT. The parts I checke

Re: [v2 PATCH 1/1] powerpc/4xx: enable and fix pcie gen1/gen2 on the 460sx

2011-07-17 Thread Tony Breeds
On Fri, Jul 15, 2011 at 11:40:27AM -0500, Ayman Elkhashab wrote: > @@ -1582,8 +1628,8 @@ static int __init ppc4xx_setup_one_pciex_POM(struct > ppc4xx_pciex_port *port, > dcr_write(port->dcrs, DCRO_PEGPL_OMR2BAH, lah); > dcr_write(port->dcrs, DCRO_PEGPL_OMR2BAL, lal);

Re: [PATCH 1/1] powerpc/4xx: enable and fix pcie gen1/gen2 on the 460sx

2011-07-13 Thread Tony Breeds
On Wed, Jul 13, 2011 at 07:33:31PM -0500, Ayman El-Khashab wrote: > Adds a register to the config space for the 460sx. Changes the vc0 > detect to a pll detect. maps configuration space to test the link > status. changes the setup to enable gen2 devices to operate at gen2 > speeds. fixes mappin

Re: [PATCH 2/3] powerpc/44x: don't use tlbivax on AMP systems

2011-07-12 Thread Tony Breeds
On Wed, Jul 13, 2011 at 12:48:21AM -0500, Kumar Gala wrote: > > On Jul 4, 2011, at 11:38 PM, Tony Breeds wrote: > > > +#ifdef CONFIG_PPC_47x > > +void __init early_init_mmu_47x(void) > > +{ > > +#ifdef CONFIG_SMP > > + unsigned long root = of_get_flat_dt_

Re: [PATCH] 4xx: Add check_link to struct ppc4xx_pciex_hwops

2011-07-12 Thread Tony Breeds
On Tue, Jul 12, 2011 at 02:04:04PM -0400, Josh Boyer wrote: > On Tue, Jul 12, 2011 at 12:40:07PM -0500, Ayman El-Khashab wrote: > >On Fri, Jul 01, 2011 at 04:44:24PM +1000, Tony Breeds wrote: > >> All current pcie controllers unconditionally use SDR to check the link and &

Re: [PATCH] 4xx: Add check_link to struct ppc4xx_pciex_hwops

2011-07-12 Thread Tony Breeds
On Tue, Jul 12, 2011 at 05:13:38PM -0500, Ayman El-Khashab wrote: > Ok, so let me ask the following ... will it cause trouble if > I swap the sequence of the calls to the following in xxx_port_init > > ppc4xx_pciex_port_init_mapping(...) > > and > > if (ppc4xx_pciex_hwops->check_link)... > > T

[PATCH] mm: Fix output of total_ram.

2011-07-04 Thread Tony Breeds
On 32bit platforms that support >= 4GB memory total_ram was truncated. This creates a confusing printk: Top of RAM: 0x1, Total RAM: 0x0 Fix that: Top of RAM: 0x1, Total RAM: 0x1 Signed-off-by: Tony Breeds --- arch/powerpc/mm/mem.c |4 ++-- 1 fi

[PATCH 3/3] powerpc/44x: boot wrapper: allow kernel to load into non-zero address

2011-07-04 Thread Tony Breeds
From: Dave Kleikamp For AMP, different kernel instances load into separate memory regions. Read the start of memory from the device tree and limit the memory to what's specified in the device tree. Signed-off-by: Dave Kleikamp Signed-off-by: Tony Breeds Cc: Benjamin Herrenschmidt Cc:

[PATCH 2/3] powerpc/44x: don't use tlbivax on AMP systems

2011-07-04 Thread Tony Breeds
From: Dave Kleikamp Since other OS's may be running on the other cores don't use tlbivax Signed-off-by: Dave Kleikamp Signed-off-by: Tony Breeds Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/mmu.h |7 ++- ar

[PATCH 1/3] powerpc/47x: allow kernel to be loaded in higher physical memory

2011-07-04 Thread Tony Breeds
: Tony Breeds Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/Kconfig |2 +- arch/powerpc/configs/44x/iss476-smp_defconfig |6 ++-- arch/powerpc/kernel/head_44x.S| 42

[PATCH] 4xx: Add check_link to struct ppc4xx_pciex_hwops

2011-06-30 Thread Tony Breeds
-off-by: Tony Breeds diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c index 156aa7d..ad330fe 100644 --- a/arch/powerpc/sysdev/ppc4xx_pci.c +++ b/arch/powerpc/sysdev/ppc4xx_pci.c @@ -650,12 +650,75 @@ struct ppc4xx_pciex_hwops int (*core_init)(struct

Re: Power machines fail to boot after build being successful

2010-08-26 Thread Tony Breeds
On Thu, Aug 26, 2010 at 04:56:10PM +0530, divya wrote: > Hi, > > After successfully building the kernel version 2.6.36-rc2-git4(commitid > d4348c678977c) with the config file attached(used make oldconfig), > P5 and P6 power machines fails to reboot with the following logs > Preparing to boot Li

[PATCH] powerpc: Fix bad include of stdint.h in ptrace.h when -D__ASSEMBLY__

2010-07-05 Thread Tony Breeds
: Unrecognized opcode: `typedef' ../sysdeps/generic/stdint.h:38: Error: Unrecognized opcode: `typedef' ../sysdeps/generic/stdint.h:39: Error: Unrecognized opcode: `typedef' --- Signed-off-by: Tony Breeds --- arch/powerpc/include/asm/ptrace.h |2 ++ 1 files changed, 2 insertions(

Re: 2.6.34: arch/powerpc/sysdev/micropatch.c not compiling

2010-07-05 Thread Tony Breeds
On Mon, Jul 05, 2010 at 09:45:11AM +0200, LEROY Christophe wrote: > When activating micropatch option, the kernel does not compile. powerpc problems should alos CC linuxppc-dev. > It looks like a spi_t is not defined anywhere. > > CC arch/powerpc/sysdev/micropatch.o > arch/powerpc/sysdev/microp

Re: [PATCHv2 2/2] Update ibm,client-architecture call field based on device tree

2010-02-01 Thread Tony Breeds
On Mon, Feb 01, 2010 at 04:51:02PM -0600, Joel Schopp wrote: > static void __init prom_send_capabilities(void) > { > ihandle elfloader, root; > prom_arg_t ret; > + u32 *cores; > > root = call_prom("open", 1, 1, ADDR("/")); > if (root != 0) { > + /* > +

Re: [PATCH] powerpc: update ibm,client-architecture

2009-12-21 Thread Tony Breeds
On Mon, Dec 21, 2009 at 04:14:54PM -0600, Joel Schopp wrote: > It's a bad interface. No matter what you choose there will be a > downside. 1) If you choose NR_CPUS, the best case of how many you > could boot without SMT, then when you boot with SMT2 or SMT4 you can > get assigned more cpus than

Re: [PATCH] powerpc: update ibm,client-architecture

2009-12-21 Thread Tony Breeds
On Mon, Dec 21, 2009 at 12:22:09PM -0600, Joel Schopp wrote: > 4 is the new 2. Since the actual threads per core is unknown at > this point in boot you have to be conservative and go with the > maximum number of any processor. See page 4 of these charts: > http://www.power.org/events/powercon09/

Re: [PATCH] powerpc: update ibm,client-architecture

2009-12-20 Thread Tony Breeds
On Fri, Dec 18, 2009 at 03:07:32PM -0600, Joel Schopp wrote: > In order to boot with more than 64 cores on machines that support the > ibm,client-architecture RTAS call a new field has been added to the > structure. This patch updates that field and adds a few others in the > process. It would be

Re: [PATCH] powerpc: Check for unsupported relocs when using CONFIG_RELOCATABLE

2009-09-14 Thread Tony Breeds
On Tue, Sep 15, 2009 at 03:57:02PM +1000, Benjamin Herrenschmidt wrote: > diff --git a/arch/powerpc/relocs_check.pl b/arch/powerpc/relocs_check.pl > new file mode 100755 > index 000..215e966 > --- /dev/null > +++ b/arch/powerpc/relocs_check.pl > @@ -0,0 +1,57 @@ > +#!/usr/bin/perl > + > +# Co

Re: 2.6.31-rc5-git2 crash [net/core/flow.c:flow_cache_new_hashrnd]

2009-08-06 Thread Tony Breeds
On Fri, Aug 07, 2009 at 01:13:54PM +1000, Benjamin Herrenschmidt wrote: > I think Tony did yes. Not sure what's the status with the "enterprise" > distros. It's fixed in F11 and F12 (thanks to dwmw2), it's in my for-1.3.15 branch for yaboot. We're working on updateing the version in the enterpr

Re: Can't boot 2.6.30 powerpc kernel under qemu.

2009-06-29 Thread Tony Breeds
On Mon, Jun 29, 2009 at 06:34:06PM -0500, Rob Landley wrote: > Cool! Is there a reason it's hidden? (Or at least not listed in either > vger.kernel.org's list info page Because it's not hosted on vger :( ... I guess we're controll freaks! :D > or in the "Malin

Re: [PATCH] Re:[BUILD FAILURE 04/04] Next June 04:PPC64 randconfig [drivers/net/ucc_geth.o]

2009-06-10 Thread Tony Breeds
On Thu, Jun 11, 2009 at 07:26:04AM +0530, Subrata Modak wrote: > On Thu, 2009-06-11 at 11:05 +1000, Stephen Rothwell wrote: > > Hi Subrata, > > > > On Wed, 10 Jun 2009 23:13:23 +0530 Subrata Modak > > wrote: > > > > > > /* Find the TBI PHY. If it's not there, we don't support SGMII */ > > > -

[PATCH 1/1] Remove __devinit annotation from pcibios_claim_one_bus()

2009-05-21 Thread Tony Breeds
: http://bugzilla.kernel.org/show_bug.cgi?id=13228 Signed-off-by: Tony Breeds --- arch/powerpc/kernel/pci-common.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 0f41812..a9f988f 100644 --- a

Re: drivers/video/logo/logo_linux_mono.c build error

2009-04-28 Thread Tony Breeds
On Mon, Apr 27, 2009 at 02:50:31PM -0700, Andrew Morton wrote: > > powerpc allmodconfig, current mainline: > > drivers/video/logo/logo_linux_mono.c:11: error: logo_linux_mono_data causes a > section type conflict > > switching it from __initconst to __initdata "fixes" it. > > I'm (illegally) u

Re: Fedora on the ibm power 275

2009-04-23 Thread Tony Breeds
On Fri, Apr 24, 2009 at 01:04:53AM +0100, Freeman Wiser wrote: > Hey I saw that Jim installed Fedora on the 275, can you tell me how? I just > bought one of the 275s and am not really ibm savvy, and was going to sell it > when I came across Jim's post here: > > http://lists.infradead.org/pipermai

[PATCH 1/1] Fix build failure drivers/parport/parport_pc.c for powerpc

2009-04-13 Thread Tony Breeds
rror: too few arguments to function 'parport_pc_probe_port' arch/powerpc/include/asm/parport.h:32: error: too few arguments to function 'parport_pc_probe_port' make[3]: *** [drivers/parport/parport_pc.o] Error 1 Signed-off-by: Tony Breeds --- Resend due to MUA badness arch/p

Re: [PATCH] Quieten arch/powerpc in a allmodconfig build.

2009-04-09 Thread Tony Breeds
On Fri, Apr 10, 2009 at 12:46:06AM +0200, Segher Boessenkool wrote: > -Wno-unused or -Wno-unused-pparameter and/or -Wno-unused-variable. But I > thought this was about uninitialised var warnings? -Wno-uninitialized > for that one. > If you are asking for a GCC option that will warn for all susp

  1   2   3   >