Re: [PATCH] sparsemem/bootmem: catch greater than section size allocations

2012-02-29 Thread Johannes Weiner
On Tue, Feb 28, 2012 at 12:11:51PM -0800, Nishanth Aravamudan wrote: On 28.02.2012 [14:53:26 +0100], Johannes Weiner wrote: On Fri, Feb 24, 2012 at 11:33:58AM -0800, Nishanth Aravamudan wrote: While testing AMS (Active Memory Sharing) / CMO (Cooperative Memory Overcommit) on powerpc, we

[PATCH 2/2] powerpc/44x: Add PCI MSI node for APM821xx SoC and Bluestone board in DTS

2012-02-29 Thread Mai La
Signed-off-by: Mai La m...@apm.com --- arch/powerpc/boot/dts/bluestone.dts | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/dts/bluestone.dts b/arch/powerpc/boot/dts/bluestone.dts index 2a56a0d..8ea6325 100644 ---

[PATCH 1/2] powerpc/44x: Fix PCI MSI support for APM821xx SoC and Bluestone board

2012-02-29 Thread Mai La
This patch consists of: - Enable PCI MSI as default for Bluestone board - Define number of MSI interrupt for Maui APM821xx - Fix returning ENODEV as finding MSI node - Fix MSI physical high and low address - Keep MSI data logically Signed-off-by: Mai La m...@apm.com ---

Re: [PATCH 20/21] Introduce struct eeh_stats for EEH

2012-02-29 Thread Michael Ellerman
On Tue, 2012-02-28 at 14:04 +0800, Gavin Shan wrote: With the original EEH implementation, the EEH global statistics are maintained by individual global variables. That makes the code a little hard to maintain. Hi Gavin, @@ -1174,21 +1182,24 @@ static int proc_eeh_show(struct seq_file *m,

Re: [PATCH 2/2] powerpc/44x: Add more changes for APM821XX EMAC driver

2012-02-29 Thread Josh Boyer
On Fri, Feb 17, 2012 at 3:07 AM, Duc Dang dhd...@apm.com wrote: This patch includes:  Configure EMAC PHY clock source (clock from PHY or internal clock).  Do not advertise PHY half duplex capability as APM821XX EMAC does not support half duplex mode.  Add changes to support configuring

Re: [PATCH 1/3] powerpc/44x: The bug fixed support for APM821xx SoC and Bluestone board

2012-02-29 Thread Josh Boyer
On Tue, Dec 20, 2011 at 7:43 AM, Vinh Nguyen Huu Tuong vhtngu...@apm.com wrote: This patch consists of: - Fix the pvr mask for checking pvr in cputable.c - Fix the cpu name as consistent with cpu name is describled in dts file Signed-off-by: Vinh Nguyen Huu Tuong vhtngu...@apm.com --- I was

Re: [PATCH 1/2] powerpc/44x: Fix PCI MSI support for APM821xx SoC and Bluestone board

2012-02-29 Thread Josh Boyer
On Wed, Feb 29, 2012 at 3:47 AM, Mai La m...@apm.com wrote: This patch consists of: - Enable PCI MSI as default for Bluestone board - Define number of MSI interrupt for Maui APM821xx What is Maui? Is that the same thing as Bluestone? - Fix returning ENODEV as finding MSI node - Fix MSI

Re: [PATCH] KVM: PPC: Don't sync timebase when inside KVM

2012-02-29 Thread Scott Wood
On 02/28/2012 08:16 PM, Alexander Graf wrote: When we know that we're running inside of a KVM guest, we don't have to worry about synchronizing timebases between different CPUs, since the host already took care of that. This fixes CPU overcommit scenarios where vCPUs could hang forever

[PATCH v2] bootmem/sparsemem: remove limit constraint in alloc_bootmem_section

2012-02-29 Thread Nishanth Aravamudan
On 28.02.2012 [15:47:32 +], Mel Gorman wrote: On Fri, Feb 24, 2012 at 11:33:58AM -0800, Nishanth Aravamudan wrote: While testing AMS (Active Memory Sharing) / CMO (Cooperative Memory Overcommit) on powerpc, we tripped the following: kernel BUG at mm/bootmem.c:483! cpu 0x0: Vector:

Re: [PATCH 2/2] powerpc/44x: Add more changes for APM821XX EMAC driver

2012-02-29 Thread David Miller
From: Josh Boyer jwbo...@gmail.com Date: Wed, 29 Feb 2012 08:43:46 -0500 On Fri, Feb 17, 2012 at 3:07 AM, Duc Dang dhd...@apm.com wrote: This patch includes:  Configure EMAC PHY clock source (clock from PHY or internal clock).  Do not advertise PHY half duplex capability as APM821XX EMAC

Re: [PATCH] KVM: PPC: Don't sync timebase when inside KVM

2012-02-29 Thread Alexander Graf
On 29.02.2012, at 18:50, Scott Wood scottw...@freescale.com wrote: On 02/28/2012 08:16 PM, Alexander Graf wrote: When we know that we're running inside of a KVM guest, we don't have to worry about synchronizing timebases between different CPUs, since the host already took care of that.

Re: [PATCH v2] bootmem/sparsemem: remove limit constraint in alloc_bootmem_section

2012-02-29 Thread Johannes Weiner
On Wed, Feb 29, 2012 at 10:12:33AM -0800, Nishanth Aravamudan wrote: On 28.02.2012 [15:47:32 +], Mel Gorman wrote: On Fri, Feb 24, 2012 at 11:33:58AM -0800, Nishanth Aravamudan wrote: While testing AMS (Active Memory Sharing) / CMO (Cooperative Memory Overcommit) on powerpc, we

Re: [PATCH] KVM: PPC: Don't sync timebase when inside KVM

2012-02-29 Thread Scott Wood
On 02/29/2012 12:28 PM, Alexander Graf wrote: On 29.02.2012, at 18:50, Scott Wood scottw...@freescale.com wrote: On 02/28/2012 08:16 PM, Alexander Graf wrote: When we know that we're running inside of a KVM guest, we don't have to worry about synchronizing timebases between different

[PATCH 28/39] PCI, powerpc: Register busn_res for root buses

2012-02-29 Thread Yinghai Lu
Signed-off-by: Yinghai Lu ying...@kernel.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/pci-bridge.h |1 + arch/powerpc/kernel/pci-common.c | 10 +- 2 files changed, 10

Re: [PATCH v2] bootmem/sparsemem: remove limit constraint in alloc_bootmem_section

2012-02-29 Thread Andrew Morton
On Wed, 29 Feb 2012 10:12:33 -0800 Nishanth Aravamudan n...@linux.vnet.ibm.com wrote: While testing AMS (Active Memory Sharing) / CMO (Cooperative Memory Overcommit) on powerpc, we tripped the following: kernel BUG at mm/bootmem.c:483! ... This is BUG_ON(limit goal + size

Re: [PATCH v2] bootmem/sparsemem: remove limit constraint in alloc_bootmem_section

2012-02-29 Thread Nishanth Aravamudan
On 29.02.2012 [15:28:30 -0800], Andrew Morton wrote: On Wed, 29 Feb 2012 10:12:33 -0800 Nishanth Aravamudan n...@linux.vnet.ibm.com wrote: While testing AMS (Active Memory Sharing) / CMO (Cooperative Memory Overcommit) on powerpc, we tripped the following: kernel BUG at

Re: [PATCH 20/21] Introduce struct eeh_stats for EEH

2012-02-29 Thread Gavin Shan
With the original EEH implementation, the EEH global statistics are maintained by individual global variables. That makes the code a little hard to maintain. Hi Gavin, @@ -1174,21 +1182,24 @@ static int proc_eeh_show(struct seq_file *m, void *v) { if (0 ==

[PATCH v2 1/2] powerpc/e500: make load_up_spe a normal fuction

2012-02-29 Thread Olivia Yin
From: Liu Yu yu@freescale.com So that we can call it when improving SPE switch like book3e did for fp switch. Signed-off-by: Liu Yu yu@freescale.com Signed-off-by: Olivia Yin hong-hua@freescale.com --- v2: add Signed-off-by arch/powerpc/kernel/head_fsl_booke.S | 23

[PATCH v2 2/2] KVM: booke: Improve SPE switch

2012-02-29 Thread Olivia Yin
From: Liu Yu yu@freescale.com Like book3s did for fp switch, instead of switch SPE between host and guest, the patch switch SPE state between qemu and guest. In this way, we can simulate a host loadup SPE when load guest SPE state, and let host to decide when to giveup SPE state. Therefor it

Re: [PATCH 20/21] Introduce struct eeh_stats for EEH - Reworked

2012-02-29 Thread Gavin Shan
With the original EEH implementation, the EEH global statistics are maintained by individual global variables. That makes the code a little hard to maintain. The patch introduces extra struct eeh_stats for the EEH global statistics so that it can be maintained in collective fashion. It's the

RE: [PATCH][v3] NAND Machine support for Integrated Flash Controller

2012-02-29 Thread Kushwaha Prabhakar-B32579
Hi Kumar, This patch is supposed to be pushed via powerpc.git repository to main-line. Because of dependent patch in powerpc/mpc85xx: powerpc/fsl: Add support for Integrated Flash Controller support And it is already picked by you. Commit ID: a20cbdeffce247a2b6fb83cd8d22433994068565

RE: [PATCH 1/3] powerpc/44x: The bug fixed support for APM821xx SoC and Bluestone board

2012-02-29 Thread Vinh Huu Tuong Nguyen
-Original Message- From: Josh Boyer [mailto:jwbo...@gmail.com] Sent: Wednesday, February 29, 2012 8:54 PM To: Vinh Nguyen Huu Tuong Cc: Benjamin Herrenschmidt; Paul Mackerras; linuxppc- d...@lists.ozlabs.org; linux-ker...@vger.kernel.org Subject: Re: [PATCH 1/3] powerpc/44x: The bug

[PATCH 26/36] PCI, powerpc: Register busn_res for root buses

2012-02-29 Thread Yinghai Lu
Signed-off-by: Yinghai Lu ying...@kernel.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/pci-bridge.h |1 + arch/powerpc/kernel/pci-common.c | 10 +- 2 files changed, 10

Re: [PATCH 2/2] powerpc/44x: Add more changes for APM821XX EMAC driver

2012-02-29 Thread Duc Dang
Thanks, David and Josh. Except the coding style problem that David mentioned, do you have other comment about my patch set? Regards, Duc Dang. On Thu, Mar 1, 2012 at 1:25 AM, David Miller da...@davemloft.net wrote: From: Josh Boyer jwbo...@gmail.com Date: Wed, 29 Feb 2012 08:43:46 -0500

[PATCH 1/2] atomic: Allow atomic_inc_not_zero to be overridden

2012-02-29 Thread Anton Blanchard
We want to implement a ppc64 specific version of atomic_inc_not_zero so wrap it in an ifdef to allow it to be overridden. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/include/linux/atomic.h === ---

[PATCH 2/2] powerpc: atomic: Implement atomic*_inc_not_zero

2012-02-29 Thread Anton Blanchard
Implement atomic_inc_not_zero and atomic64_inc_not_zero. At the moment we use atomic*_add_unless which requires us to put 0 and 1 constants into registers. We can also avoid a subtract by saving the original value in a second temporary. This removes 3 instructions from fget: - c01b63c0: