[PATCH] powerpc: remove two lines of dead code

2013-03-25 Thread Paul Bolle
Commit c1fb6816fb1b78dd94b673b0fdaa9a7a16e97bd1 ("powerpc: Add relocation on exception vector handlers") added two lines of code that depend on the macro CONFIG_HVC_SCOM. That macro doesn't exist. Perhaps it was intended to use CONFIG_PPC_SCOM here. But since "maintence_interrupt" is a typo and the

Re: [PATCH 1/2] cpufreq: Notify all policy->cpus in cpufreq_notify_transition()

2013-03-25 Thread Viresh Kumar
On 25 March 2013 22:18, Stephen Warren wrote: > On 03/24/2013 11:19 PM, Viresh Kumar wrote: >> On 24 March 2013 19:18, Viresh Kumar wrote: >>> policy->cpus contains all online cpus that have single shared clock line. >>> And >>> their frequencies are always updated together. >>> >>> Many SMP sys

Re: [PATCH 1/2] cpufreq: Notify all policy->cpus in cpufreq_notify_transition()

2013-03-25 Thread Stephen Warren
On 03/24/2013 11:19 PM, Viresh Kumar wrote: > On 24 March 2013 19:18, Viresh Kumar wrote: >> policy->cpus contains all online cpus that have single shared clock line. And >> their frequencies are always updated together. >> >> Many SMP system's cpufreq drivers take care of this in individual drive

[PATCH 9/9] powerpc: cpufreq: move cpufreq driver to drivers/cpufreq

2013-03-25 Thread Viresh Kumar
This patch moves cpufreq driver of powerpc platform to drivers/cpufreq. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Olof Johansson Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Viresh Kumar --- arch/powerpc/platforms/Kconfig | 31 -- arch/power

[PATCH v2 0/11] NUMA CPU Reconfiguration using PRRN

2013-03-25 Thread Nathan Fontenot
Newer firmware on Power systems can transparently reassign platform resources (CPU and Memory) in use. For instance, if a processor or memory unit is predicted to fail, the platform may transparently move the processing to an equivalent unused processor or the memory state to an equivalent unused m

[PATCH v2 1/11] Expose pseries devicetree_update()

2013-03-25 Thread Nathan Fontenot
From: Jesse Larrew Newer firmware on Power systems can transparently reassign platform resources (CPU and Memory) in use. For instance, if a processor or memory unit is predicted to fail, the platform may transparently move the processing to an equivalent unused processor or the memory state to a

[PATCH v2 2/11] Add PRRN Event Handler

2013-03-25 Thread Nathan Fontenot
From: Jesse Larrew A PRRN event is signaled via the RTAS event-scan mechanism, which returns a Hot Plug Event message "fixed part" indicating "Platform Resource Reassignment". In response to the Hot Plug Event message, we must call ibm,update-nodes to determine which resources were reassigned and

[PATCH v2 3/11] Move architecture vector definitions to prom.h

2013-03-25 Thread Nathan Fontenot
As part of handling of hndling PRRN events we will need to check the vector 5 portion of the architectire bits reported in the device tree to ensure that PRRN event handling is enabled. In order to do this a new platform_has_feature call is introduced (in a subsequent patch) to make this check. To

[PATCH v2 4/11] Update firmware_has_feature() to check architecture bits

2013-03-25 Thread Nathan Fontenot
The firmware_has_feature() function makes it easy to check for supported features of the hypervisor. This patch extends the capability of the firmware_has_feature() function to include checking for specified bits in vector 5 of the architecture vector as is reported in the device tree. As part of

[PATCH v2 5/11] Update numa.c to use updated firmware_has_feature()

2013-03-25 Thread Nathan Fontenot
Update the numa code to use the updated firmware_has_feature() when checking for type 1 affinity. Signed-off-by: Nathan Fontenot --- arch/powerpc/mm/numa.c | 22 +++--- 1 file changed, 3 insertions(+), 19 deletions(-) Index: powerpc/arch/powerpc/mm/numa.c =

[PATCH v2 6/11] Update CPU Maps

2013-03-25 Thread Nathan Fontenot
From: Jesse Larrew Platform events such as partition migration or the new PRRN firmware feature can cause the NUMA characteristics of a CPU to change, and these changes will be reflected in the device tree nodes for the affected CPUs. This patch registers a handler for Open Firmware device tree

[PATCH v2 7/11] Use stop machine to update cpu maps

2013-03-25 Thread Nathan Fontenot
From: Jesse Larrew The new PRRN firmware feature allows CPU and memory resources to be transparently reassigned across NUMA boundaries. When this happens, the kernel must update the node maps to reflect the new affinity information. Although the NUMA maps can be protected by locking primitives d

[PATCH v2 8/11] Update numa cpu vdso info

2013-03-25 Thread Nathan Fontenot
From: Jesse Larrew The following patch adds vdso_getcpu_init(), which stores the NUMA node for a cpu in SPRG3: Commit 18ad51dd34 ("powerpc: Add VDSO version of getcpu") adds vdso_getcpu_init(), which stores the NUMA node for a cpu in SPRG3. This patch ensures that this information is also updat

[PATCH v2 9/11] Re-enable Virtual Private Home Node capabilities

2013-03-25 Thread Nathan Fontenot
From: Jesse Larrew The new PRRN firmware feature provides a more convenient and event-driven interface than VPHN for notifying Linux of changes to the NUMA affinity of platform resources. However, for practical reasons, it may not be feasible for some customers to update to the latest firmware. F

[PATCH v2 11/11] Add /proc interface to control topology updates

2013-03-25 Thread Nathan Fontenot
There are instances in which we do not want topology updates to occur. In order to allow this a /proc interface (/proc/powerpc/topology_updates) is introduced so that topology updates can be enabled and disabled. This patch also adds a prrn_is_enabled() call so that PRRN events are handled in the

[PATCH v2 10/11] Enable PRRN

2013-03-25 Thread Nathan Fontenot
The Linux kernel and platform firmware negotiate their mutual support of the PRRN option via the ibm,client-architecture-support interface. This patch simply sets the appropriate fields in the client architecture vector to indicate Linux support and will cause the firmware to begin sending PRRN eve

repository location (MPC5200b)

2013-03-25 Thread Maxwell MacLean
Hello all, I have been following this list for a while now and am interested in getting a version of the latest work in progress Linux kernel with fixes for powerpc. Yes, I am a kernel newbie, but I am learning! I have an inherited project based on version 2.6.28 that is compiled for an MPC5200b

Re: repository location (MPC5200b)

2013-03-25 Thread Anatolij Gustschin
Hello, On Mon, 25 Mar 2013 20:27:17 + Maxwell MacLean wrote: > Hello all, > I have been following this list for a while now and am interested > in getting a version of the latest work in progress Linux kernel > with fixes for powerpc. For latest work in progress kernel look at master branch

[git pull] Please pull some powerpc build fixes

2013-03-25 Thread Stephen Rothwell
The following changes since commit 3912a677f68f6084e0a7b6a1a29310ac1b083713: Merge tag 'pinctrl-fixes-for-v3.9' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl (2013-03-24 10:11:29 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kerne

[PATCH 2/3] clk: add PowerPC corenet clock driver support

2013-03-25 Thread Yuantian.Tang
From: Tang Yuantian This adds the clock driver for Freescale PowerPC corenet series SOC using common clock infrastructure. Signed-off-by: Tang Yuantian Signed-off-by: Li Yang --- arch/powerpc/platforms/Kconfig.cputype | 1 + drivers/clk/Kconfig| 7 + drivers/clk/Makefi

[PATCH 1/3] powerpc/mpc85xx: Update the clock device tree nodes

2013-03-25 Thread Yuantian.Tang
From: Tang Yuantian The following SOCs will be affected: p2041, p3041, p4080, p5020, p5040 Signed-off-by: Tang Yuantian Signed-off-by: Li Yang --- arch/powerpc/boot/dts/fsl/p2041si-post.dtsi | 62 - arch/powerpc/boot/dts/fsl/p2041si-pre.dtsi | 4 ++ arch/powerpc/boot/dts/f

[PATCH 3/3] cpufreq: Add cpufreq driver for Freescale e500mc SOCs

2013-03-25 Thread Yuantian.Tang
From: Tang Yuantian Add cpufreq driver for Freescale e500mc, e5500 and e6500 SOCs which are capable of changing the frequency of CPU dynamically Signed-off-by: Tang Yuantian Signed-off-by: Li Yang --- drivers/cpufreq/Kconfig.powerpc | 10 ++ drivers/cpufreq/Makefile | 1

RE: [PATCH 3/3] powerpc/fsl: add MPIC timer wakeup support

2013-03-25 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Saturday, March 23, 2013 6:11 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Zhao Chenhui-B35336; Li Yang-R58472 > Subject: Re: [PATCH 3/3] powerpc/fsl: add MPIC timer wakeu

RE: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-25 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Saturday, March 23, 2013 6:30 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer support > > On 03/22/2

[PATCH 1/2] powerpc/MPIC: Add get_version API both for internal and external use

2013-03-25 Thread Jia Hongtao
MPIC version is useful information for both mpic_alloc() and mpic_init(). The patch provide an API to get MPIC version for reusing the code. Also, some other IP block may need MPIC version for their own use. The API for external use is also provided. Signed-off-by: Jia Hongtao Signed-off-by: Li Y

[PATCH 2/2] powerpc/85xx: workaround for chips with MSI hardware errata

2013-03-25 Thread Jia Hongtao
The MPIC version 2.0 has a MSI errata (errata PIC1 of mpc8544), It causes that neither MSI nor MSI-X can work fine. This is a workaround to allow MSI-X to function properly. Signed-off-by: Liu Shuo Signed-off-by: Li Yang Signed-off-by: Jia Hongtao --- arch/powerpc/sysdev/fsl_msi.c | 47 +++

Re: [PATCH] powerpc: remove two lines of dead code

2013-03-25 Thread Michael Ellerman
On Mon, Mar 25, 2013 at 11:32:11AM +0100, Paul Bolle wrote: > Commit c1fb6816fb1b78dd94b673b0fdaa9a7a16e97bd1 ("powerpc: Add > relocation on exception vector handlers") added two lines of code that > depend on the macro CONFIG_HVC_SCOM. That macro doesn't exist. Perhaps > it was intended to use CON

Re: [PATCH 1/2] powerpc/MPIC: Add get_version API both for internal and external use

2013-03-25 Thread Michael Ellerman
On Tue, Mar 26, 2013 at 11:28:46AM +0800, Jia Hongtao wrote: > MPIC version is useful information for both mpic_alloc() and mpic_init(). > The patch provide an API to get MPIC version for reusing the code. > Also, some other IP block may need MPIC version for their own use. > The API for external u

RE: [PATCH 1/2] powerpc/MPIC: Add get_version API both for internal and external use

2013-03-25 Thread Jia Hongtao-B38951
> -Original Message- > From: Michael Ellerman [mailto:mich...@ellerman.id.au] > Sent: Tuesday, March 26, 2013 12:14 PM > To: Jia Hongtao-B38951 > Cc: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org; Wood Scott- > B07421 > Subject: Re: [PATCH 1/2] powerpc/MPIC: Add get_version API

[PATCH] powerpc: fix annotation of fake_numa_create_new_node()

2013-03-25 Thread Stephen Rothwell
This function has always been marked as __cpuinit, but is only called from functions marked as __init and references an __initdata variable. So change its annotation to __init. Fixes this build warning: WARNING: arch/powerpc/mm/built-in.o(.cpuinit.text+0x86): Section mismatch in reference from t

Re: [PATCH 3/3] cpufreq: Add cpufreq driver for Freescale e500mc SOCs

2013-03-25 Thread Viresh Kumar
On Tue, Mar 26, 2013 at 8:06 AM, wrote: > diff --git a/drivers/cpufreq/Kconfig.powerpc b/drivers/cpufreq/Kconfig.powerpc > index e76992f..6339db4 100644 > --- a/drivers/cpufreq/Kconfig.powerpc > +++ b/drivers/cpufreq/Kconfig.powerpc > @@ -5,3 +5,13 @@ config CPU_FREQ_MAPLE > help >

[PATCH V2] powerpc/MPIC: Add get_version API both for internal and external use

2013-03-25 Thread Jia Hongtao
MPIC version is useful information for both mpic_alloc() and mpic_init(). The patch provide an API to get MPIC version for reusing the code. Also, some other IP block may need MPIC version for their own use. The API for external use is also provided. Signed-off-by: Jia Hongtao Signed-off-by: Li Y