Re: [PATCH] fix ppc64 build failure on fedora

2009-09-17 Thread Kyle McMartin
On Fri, Sep 18, 2009 at 11:50:06AM +1000, Benjamin Herrenschmidt wrote: > On Thu, 2009-09-17 at 13:41 -0400, Kyle McMartin wrote: > > From: Kyle McMartin > > > > For some reason or another (newer gcc?) on Fedora 12 koji builders we're > > seeing _restgpr0_$n symbols instead of _restgpr_$n as hand

Re: drivers/mfd/ab3100-core.c

2009-09-17 Thread Anton Vorontsov
On Thu, Sep 17, 2009 at 05:20:58PM -0700, Andrew Morton wrote: > This: > > static const struct ab3100_init_setting __initdata > ab3100_init_settings[] = { Looks like it should be __initconst, otherwise it's ambiguous. > causes this: > > drivers/mfd/ab3100-core.c:651: error: ab3100_init_settings

Re: [PATCH] fix ppc64 build failure on fedora

2009-09-17 Thread Benjamin Herrenschmidt
On Thu, 2009-09-17 at 13:41 -0400, Kyle McMartin wrote: > From: Kyle McMartin > > For some reason or another (newer gcc?) on Fedora 12 koji builders we're > seeing _restgpr0_$n symbols instead of _restgpr_$n as handled in the > prom_init_check.sh file: > Checking prom_init.o symbol '_restgpr0_14'

Re: drivers/mfd/ab3100-core.c

2009-09-17 Thread Andrew Morton
On Fri, 18 Sep 2009 05:22:13 +0400 Anton Vorontsov wrote: > On Thu, Sep 17, 2009 at 05:20:58PM -0700, Andrew Morton wrote: > > This: > > > > static const struct ab3100_init_setting __initdata > > ab3100_init_settings[] = { > > Looks like it should be __initconst, otherwise it's ambiguous. > >

drivers/mfd/ab3100-core.c

2009-09-17 Thread Andrew Morton
This: static const struct ab3100_init_setting __initdata ab3100_init_settings[] = { causes this: drivers/mfd/ab3100-core.c:651: error: ab3100_init_settings causes a section type conflict on ppc64. I keep forgetting why. Did MFD do something wrong or is powerpc borked or did my compiler versi

Re: [PATCH] fix ppc64 build failure on fedora

2009-09-17 Thread Kyle McMartin
On Thu, Sep 17, 2009 at 01:41:44PM -0400, Kyle McMartin wrote: > For some reason or another (newer gcc?) on Fedora 12 koji builders we're > seeing _restgpr0_$n symbols instead of _restgpr_$n as handled in the > prom_init_check.sh file: > Checking prom_init.o symbol '_restgpr0_14' > Error: External

[PATCH] fix ppc64 build failure on fedora

2009-09-17 Thread Kyle McMartin
From: Kyle McMartin For some reason or another (newer gcc?) on Fedora 12 koji builders we're seeing _restgpr0_$n symbols instead of _restgpr_$n as handled in the prom_init_check.sh file: Checking prom_init.o symbol '_restgpr0_14' Error: External symbol '_restgpr0_14' referenced from prom_init.c C

Re: 2.6.31-git5 kernel boot hangs on powerpc

2009-09-17 Thread Tejun Heo
Hello, Benjamin Herrenschmidt wrote: > On Thu, 2009-09-17 at 16:21 +0530, Sachin Sant wrote: >> The problem seems to have been introduced with >> commit ada3fa15057205b7d3f727bba5cd26b5912e350f. >> >> Specifically this patch : >> powerpc64: convert to dynamic percpu allocator >> >> If i revert th

Re: 2.6.31-git5 kernel boot hangs on powerpc

2009-09-17 Thread Sachin Sant
Tejun Heo wrote: Ah... sorry about that. Sachin, is it possible for you to build the kernel with debug info and ask gdb where the stalling NIP is in the c file? <6>NET: Registered protocol family 10 <3>BUG: soft lockup - CPU#2 stuck for 61s! [modprobe:1865] <4>Modules linked in: ipv6(+) fuse

Re: PPC PCI bus registers

2009-09-17 Thread Eddie Dawydiuk
Benjamin, ioremap + readN / writeN will give you fully ordered behaviour. It's only when you try to be sneaky or speedy and use the __raw variants that you have to be more careful. You've been most helpful, thanks. -- Best Regards,

Re: FPGA access over PCI-E on MPC8536

2009-09-17 Thread David Hawkins
Hi Felix, On my custom MPC8536 based board running 2.6.31 kernel FPGA is connected via x2 PCI-E lane. FPGA is identified during PCI scan and is visible via lspci. :01:00.0 Class ff00: Altera Corporation Unknown device 0004 (rev 01) Subsystem: Altera Corporation Unknown device 0004

Re: [PATCH 1/5] dynamic logical partitioning infrastructure

2009-09-17 Thread Nathan Fontenot
Michael Ellerman wrote: On Fri, 2009-09-11 at 16:10 -0500, Nathan Fontenot wrote: This patch provides the kernel DLPAR infrastructure in a new filed named dlpar.c. The functionality provided is for acquiring and releasing a resource from firmware and the parsing of information returned from th

Re: [spi-devel-general] [PATCH] mpc52xx_psc_spi: enlarge clock range

2009-09-17 Thread Wolfram Sang
> I wasn't aware that MPC5200 differ from MPC5200B in this regard. I also > couldn't find any MPC5200 user manual on Freescale's webpage. Hmm, it was the first hit using a web search engine :) http://www.freescale.com/files/microcontrollers/doc/user_guide/MPC5200UM.pdf?WT_TYPE=Users%20Guides&WT_V

Re: [spi-devel-general] [PATCH] mpc52xx_psc_spi: enlarge clock range

2009-09-17 Thread Dragos Carp
Hi, I wasn't aware that MPC5200 differ from MPC5200B in this regard. I also couldn't find any MPC5200 user manual on Freescale's webpage. Is there a #define that I can use to distinguish between the two processor variants? Querying the PVR register is not a nice solution because the chip-select ac

Re: [spi-devel-general] [PATCH] mpc52xx_psc_spi: enlarge clock range

2009-09-17 Thread Grant Likely
On Thu, Sep 17, 2009 at 8:04 AM, Dragos Carp wrote: > Hi, > > I wasn't aware that MPC5200 differ from MPC5200B in this regard. I also > couldn't find any MPC5200 user manual on Freescale's webpage. > Is there a #define that I can use to distinguish between the two > processor variants? Querying th

Re: [RFC] [PATCH] Write to HVC terminal from purgatory code

2009-09-17 Thread Michael Ellerman
On Mon, 2009-09-07 at 10:44 +0530, M. Mohan Kumar wrote: > Write to HVC terminal from purgatory code > > Current x86/x86-64 kexec-tools print the message "I'm in purgatory" to > serial console/VGA while executing the purgatory code. Implement this > feature for POWERPC pseries platform by using t

Re: 2.6.31-git5 kernel boot hangs on powerpc

2009-09-17 Thread Benjamin Herrenschmidt
On Thu, 2009-09-17 at 16:21 +0530, Sachin Sant wrote: > The problem seems to have been introduced with > commit ada3fa15057205b7d3f727bba5cd26b5912e350f. > > Specifically this patch : > powerpc64: convert to dynamic percpu allocator > > If i revert this patch i am able to boot latest git > on a

mpc8572ds & uImage: Stuck startup

2009-09-17 Thread Isaac Gomez Morales
Hello, I'm trying to startup the latest kernel image (2.6.31) for my mpc8572ds machine. I have downloaded the kernel's source code at kernel.org and i have compiled it with a native ppc compiler using make uImage. At this moment I have in my system my uImage and u-boot-2009-08 programmed in the

Re: [RFC] [PATCH] Write to HVC terminal from purgatory code

2009-09-17 Thread M. Mohan Kumar
> On Mon, Sep 07, 2009 at 10:44:07AM +0530, M. Mohan Kumar wrote: > > Write to HVC terminal from purgatory code > > > > Current x86/x86-64 kexec-tools print the message "I'm in purgatory" to > > serial console/VGA while executing the purgatory code. Implement this > > feature for POWERPC pseries p

Re: FPGA access over PCI-E on MPC8536

2009-09-17 Thread Benjamin Herrenschmidt
> > However when I attempt to access FPGA memory my mmapping it in > > userspace the read hangs. The same happens in kernel space. Does it > > happen because FPGA memory is marked as disabled, or because FPGA > > code is doing something wrong ? > > Can you access the device in u-boot? That