Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread David Rientjes
On Sat, 8 Dec 2007, Balbir Singh wrote: > > You're going to want to distribute the cpu's based on how they match up > > physically with the actual platform that you're running on. x86_64 does > > Could you explain this better, how does it match up CPU's with fake NUMA > memory? Is there some s

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Balbir Singh
David Rientjes wrote: > On Sat, 8 Dec 2007, Balbir Singh wrote: > >> Yes, they all appear on node 0. We could have tweaks to distribute CPU's >> as well. >> > > You're going to want to distribute the cpu's based on how they match up > physically with the actual platform that you're running on.

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Balbir Singh
David Rientjes wrote: > On Sat, 8 Dec 2007, Balbir Singh wrote: > >> To be able to test the memory controller under NUMA, I use fake NUMA >> nodes. x86-64 has a similar feature, the code I have here is the >> simplest I could come up with for PowerPC. >> > > Magnus Damm had patches from over a ye

Re: [PATCH 1/5] PowerPC 74xx: Katana Qp device tree

2007-12-07 Thread David Gibson
On Thu, Dec 06, 2007 at 04:27:56PM -0700, Mark A. Greer wrote: > David, et. al., > > This is a big blob patch of what I've changed for the prpmc2800. It > includes the necessary changes in the kernel which you can probably > ignore but they're there for reference. If you like the dts, then I'll

dtc: Remove header information dumping

2007-12-07 Thread David Gibson
Currently, when used in -Idtb mode, dtc will dump information about the input blob's header fields to stderr. This is kind of ugly, and can get in the way of dtc's real output. This patch, therefore, removes this. So that there's still a way of getting this information for debugging purposes, it

RE: Xilinx EDK BSP generation of device trees for microblaze and PowerPC

2007-12-07 Thread Stephen Neuendorffer
> > > -Original Message- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > > > Behalf Of Grant Likely > > > Sent: Sunday, November 25, 2007 2:47 PM > > > To: Stephen Neuendorffer; Segher Boessenkool; David Gibson; > > > Jon Loeliger > > > Cc: [EMAIL PROTECTED]; > > > linuxppc-d

Re: [DTC][PATCH] Fix cross-compile building

2007-12-07 Thread David Gibson
On Fri, Dec 07, 2007 at 12:28:20PM -0600, Kumar Gala wrote: > From: Stuart Hughes <[EMAIL PROTECTED]> > > This patch allows you to build the DTC source without making the > tests directory. This is necessary when cross compiling as the > dumptest (and other) files cannot be run/used on the host s

Re: dtc: Convert #address-cells and #size-cells related checks

2007-12-07 Thread David Gibson
On Fri, Dec 07, 2007 at 02:05:55PM +1100, David Gibson wrote: > This patch converts checks related to #address-cells and #size-cells > to the new framework. Specifically, it reimplements the check that > "reg" properties have a valid size based on the relevant > #address-cells and #size-cells valu

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread David Rientjes
On Sat, 8 Dec 2007, Balbir Singh wrote: > Yes, they all appear on node 0. We could have tweaks to distribute CPU's > as well. > You're going to want to distribute the cpu's based on how they match up physically with the actual platform that you're running on. x86_64 does this already and it m

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread David Rientjes
On Sat, 8 Dec 2007, Balbir Singh wrote: > To be able to test the memory controller under NUMA, I use fake NUMA > nodes. x86-64 has a similar feature, the code I have here is the > simplest I could come up with for PowerPC. > Magnus Damm had patches from over a year ago that, I believe, made much

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread David Rientjes
On Fri, 7 Dec 2007, Olof Johansson wrote: > > Comments are as always welcome! > > Care to explain what this is useful for? (Not saying it's a stupid idea, > just wondering what the reason for doing it is). > Fake NUMA has always been useful for testing NUMA code without having to have a wide r

[PATCH] Fake NUMA emulation for PowerPC (Take 2)

2007-12-07 Thread Balbir Singh
Changelog 1. Get rid of the constant 5 (based on comments from [EMAIL PROTECTED]) 2. Implement suggestions from Olof Johannson 3. Check if cmdline is NULL in fake_numa_create_new_node() Tested with additional parameters from Olof numa=debug,fake= numa=foo,fake=ba

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Balbir Singh
Nathan Lynch wrote: > Hi Balbir- > > Balbir Singh wrote: >> >> Here's a dumb simple implementation of fake NUMA nodes for PowerPC. Fake >> NUMA nodes can be specified using the following command line option >> >> numa=fake= >> >> node range is of the format ,,... >> >> Each of the rangeX parameter

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Balbir Singh
Arnd Bergmann wrote: > On Friday 07 December 2007, Balbir Singh wrote: >> Here's a dumb simple implementation of fake NUMA nodes for PowerPC. Fake >> NUMA nodes can be specified using the following command line option >> >> numa=fake= >> >> node range is of the format ,,... > > Excellent idea! I'd

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Balbir Singh
Kumar Gala wrote: > > On Dec 7, 2007, at 4:12 PM, Balbir Singh wrote: > >> Kumar Gala wrote: >>> >>> On Dec 7, 2007, at 3:35 PM, Balbir Singh wrote: >>> Olof Johansson wrote: > Hi, > > On Sat, Dec 08, 2007 at 02:44:25AM +0530, Balbir Singh wrote: > >> Comments are as alwa

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Kumar Gala
On Dec 7, 2007, at 4:12 PM, Balbir Singh wrote: > Kumar Gala wrote: >> >> On Dec 7, 2007, at 3:35 PM, Balbir Singh wrote: >> >>> Olof Johansson wrote: Hi, On Sat, Dec 08, 2007 at 02:44:25AM +0530, Balbir Singh wrote: > Comments are as always welcome! Care to expl

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Balbir Singh
Kumar Gala wrote: > > On Dec 7, 2007, at 3:35 PM, Balbir Singh wrote: > >> Olof Johansson wrote: >>> Hi, >>> >>> On Sat, Dec 08, 2007 at 02:44:25AM +0530, Balbir Singh wrote: >>> Comments are as always welcome! >>> >>> Care to explain what this is useful for? (Not saying it's a stupid idea,

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Balbir Singh
Arnd Bergmann wrote: > On Friday 07 December 2007, Balbir Singh wrote: >> Balbir Singh wrote: >>> Geert Uytterhoeven wrote: On Sat, 8 Dec 2007, Balbir Singh wrote: > + if (strstr(p, "fake=")) > + cmdline = p + 5;/* 5 is faster than strlen("fake=") */ Really? My

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Arnd Bergmann
On Friday 07 December 2007, Balbir Singh wrote: > Here's a dumb simple implementation of fake NUMA nodes for PowerPC. Fake > NUMA nodes can be specified using the following command line option > > numa=fake= > > node range is of the format ,,... Excellent idea! I'd love to have this in RHEL5u1,

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Arnd Bergmann
On Friday 07 December 2007, Balbir Singh wrote: > Balbir Singh wrote: > > Geert Uytterhoeven wrote: > >> On Sat, 8 Dec 2007, Balbir Singh wrote: > >>> +   if (strstr(p, "fake=")) > >>> +   cmdline = p + 5;/* 5 is faster than strlen("fake=") */ > >> Really? My gcc is smart enough to

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Kumar Gala
On Dec 7, 2007, at 3:35 PM, Balbir Singh wrote: > Olof Johansson wrote: >> Hi, >> >> On Sat, Dec 08, 2007 at 02:44:25AM +0530, Balbir Singh wrote: >> >>> Comments are as always welcome! >> >> Care to explain what this is useful for? (Not saying it's a stupid >> idea, >> just wondering what the

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Balbir Singh
Balbir Singh wrote: > Geert Uytterhoeven wrote: >> On Sat, 8 Dec 2007, Balbir Singh wrote: >>> + if (strstr(p, "fake=")) >>> + cmdline = p + 5;/* 5 is faster than strlen("fake=") */ >> Really? My gcc is smart enough to replace the `strlen("fake=")' by 5, even >> without -O. >> >

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Balbir Singh
Geert Uytterhoeven wrote: > On Sat, 8 Dec 2007, Balbir Singh wrote: >> +if (strstr(p, "fake=")) >> +cmdline = p + 5;/* 5 is faster than strlen("fake=") */ > > Really? My gcc is smart enough to replace the `strlen("fake=")' by 5, even > without -O. > Thanks for pointing th

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Balbir Singh
Olof Johansson wrote: > Hi, > > On Sat, Dec 08, 2007 at 02:44:25AM +0530, Balbir Singh wrote: > >> Comments are as always welcome! > > Care to explain what this is useful for? (Not saying it's a stupid idea, > just wondering what the reason for doing it is). > In my case, I use it to test part

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Geert Uytterhoeven
On Sat, 8 Dec 2007, Balbir Singh wrote: > + if (strstr(p, "fake=")) > + cmdline = p + 5;/* 5 is faster than strlen("fake=") */ Really? My gcc is smart enough to replace the `strlen("fake=")' by 5, even without -O. With kind regards, Geert Uytterhoeven Software Architect

Re: [PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Olof Johansson
Hi, On Sat, Dec 08, 2007 at 02:44:25AM +0530, Balbir Singh wrote: > Comments are as always welcome! Care to explain what this is useful for? (Not saying it's a stupid idea, just wondering what the reason for doing it is). > diff -puN arch/powerpc/mm/numa.c~ppc-fake-numa-easy arch/powerpc/mm/num

[PATCH] Fake NUMA emulation for PowerPC

2007-12-07 Thread Balbir Singh
Here's a dumb simple implementation of fake NUMA nodes for PowerPC. Fake NUMA nodes can be specified using the following command line option numa=fake= node range is of the format ,,... Each of the rangeX parameters is passed using memparse(). I find the patch useful for fake NUMA emulation on

Re: [PATCH 1/11] ibm_newemac: Add BCM5248 and Marvell 88E1111 PHY support

2007-12-07 Thread Jeff Garzik
Benjamin Herrenschmidt wrote: > From: Stefan Roese <[EMAIL PROTECTED]> > > This patch adds BCM5248 and Marvell 88E PHY support to NEW EMAC driver. > These PHY chips are used on PowerPC 440EPx boards. > The PHY code is based on the previous work by Stefan Roese <[EMAIL PROTECTED]> > > Signed-o

[PATCH v2] ucc_uart: add support for Freescale QUICCEngine UART

2007-12-07 Thread Timur Tabi
Add support for UART serial ports using a Freescale QUICC Engine (found on some MPC83xx and MPC85xx SOCs). Updated booting-without-of.txt to define new properties for a QE UART node, and a new node definition that describes uploaded QE firmware. Because of a silicon bug in some QE-enabled SOCs (e

Re: [PATCH] IB/ehca: Serialize HCA-related hCalls on POWER5

2007-12-07 Thread Joachim Fenkes
Roland Dreier <[EMAIL PROTECTED]> wrote on 06.12.2007 19:27:09: > > > + ehca_lock_hcalls = !(cur_cpu_spec->cpu_user_features > > > +& PPC_FEATURE_ARCH_2_05); > > > We already talked about this yesterday, but I still feel that checking the >

[PATCH v4] qe: add ability to upload QE firmware

2007-12-07 Thread Timur Tabi
Define the layout of a binary blob that contains a QE firmware and instructions on how to upload it. Add function qe_upload_firmware() to parse the blob and perform the actual upload. Fully define 'struct rsp' in immap_qe.h to include the actual RISC Special Registers. Added description of a new

Re: [RFC][POWERPC] Provide a way to protect 4k subpages when using 64k pages

2007-12-07 Thread Arnd Bergmann
On Friday 07 December 2007, Paul Mackerras wrote: > I have re-purposed the ioperm system call for this.  The old ioperm > system call never did anything (except return an ENOSYS error) and in > fact never could have actually been useful for anything on the PowerPC > architecture, so nothing ever us

Re: [RFC/PATCH 0/10] powerpc: PCI updates & merges

2007-12-07 Thread Stefan Roese
On Thursday 06 December 2007, Benjamin Herrenschmidt wrote: > This serie of patches converts the 32 bits PCI code to use the generic > pci_assign_unassigned_resources() instead of its own assignment code > which was unable to deal with unassigned PCI<->PCI bridges among > other issues. > > It then

Re: [PATCH] IB/ehca: Serialize HCA-related hCalls on POWER5

2007-12-07 Thread Arnd Bergmann
On Thursday 06 December 2007, Roland Dreier wrote: >  > Regarding the performance problem, have you checked whether converting all >  > your spin_lock_irqsave to spin_lock/spin_lock_irq improves your performance >  > on the older machines? Maybe it's already fast enough that way. > > It does seem

[PATCH 1/3] [POWERPC] 4xx: Add Kilauea PCIe support to dts and Kconfig

2007-12-07 Thread Stefan Roese
Signed-off-by: Stefan Roese <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/kilauea.dts | 82 arch/powerpc/platforms/40x/Kconfig |1 + 2 files changed, 83 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/dts/kilauea.dts b/arch/powerpc/boot/dt

[PATCH 3/3] [POWERPC] 4xx: Enable PCIe support in the Kilauea defconfig file

2007-12-07 Thread Stefan Roese
Signed-off-by: Stefan Roese <[EMAIL PROTECTED]> --- arch/powerpc/configs/kilauea_defconfig | 755 ++-- 1 files changed, 225 insertions(+), 530 deletions(-) diff --git a/arch/powerpc/configs/kilauea_defconfig b/arch/powerpc/configs/kilauea_defconfig index 1340871..40b

[PATCH 2/3] [POWERPC] 4xx: Set ibpre for 405EX in 4xx PCIe driver

2007-12-07 Thread Stefan Roese
This patch sets the ibpre flag (Inbound Presence) for the 405EX in the 4xx PCIe driver. Signed-off-by: Stefan Roese <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/ppc4xx_pci.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sy

Re: [PATCH] [POWERPC] Fix swapper_pg_dir size when CONFIG_PTE_64BIT=y on FSL_BOOKE

2007-12-07 Thread Cedric Hombourger
Thanks Kumar for this much better patch! Cedric Kumar Gala wrote: > The size of swapper_pg_dir is 8k instead of 4k when using 64-bit PTEs > (CONFIG_PTE_64BIT). > > This was reported by Cedric Hombourger <[EMAIL PROTECTED]> > > Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> > --- > > This is in my