Re: [RFC PATCH powerpc] make CONFIG_NUMA depends on CONFIG_SMP

2013-04-19 Thread Michael Ellerman
On Fri, 2013-04-19 at 10:10 +0800, Li Zhong wrote: > On Thu, 2013-04-18 at 11:46 +1000, Michael Ellerman wrote: > > On Wed, May 30, 2012 at 05:31:58PM +0800, Li Zhong wrote: > > > I'm not sure whether it makes sense to add this dependency to avoid > > > CONFI_NUMA && !CONFIG_SMP. > > > > > > I wa

Re: [PATCH v7 3/3] of/pci: mips: convert to common of_pci_range_parser

2013-04-19 Thread Gabor Juhos
2013.04.18. 15:09 keltezéssel, Jason Cooper írta: > On Thu, Apr 18, 2013 at 01:59:10PM +0100, Andrew Murray wrote: >> On Wed, Apr 17, 2013 at 04:42:48PM +0100, Linus Walleij wrote: >>> On Tue, Apr 16, 2013 at 12:18 PM, Andrew Murray >>> wrote: >>> This patch converts the pci_load_of_ranges f

[PATCH] powerpc/fsl: Enable CONFIG_E1000E in mpc85xx_smp_defconfig

2013-04-19 Thread Chunhe Lan
On the most boards of Freescale platform, they use the PCI-Express Intel(R) PRO/1000 gigabit ethernet card to work. So enable the corresponding driver for it. Signed-off-by: Chunhe Lan --- arch/powerpc/configs/mpc85xx_smp_defconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff

[PATCH 3/3] powerpc/powernv: Patch MSI EOI handler on P8

2013-04-19 Thread Gavin Shan
The EOI handler of MSI/MSI-X interrupts for P8 (PHB3) need additional steps to handle the P/Q bits in IVE before EOIing the corresponding interrupt. The patch changes the EOI handler to cover that. Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/pci-ioda.c | 33 +++

[PATCH 1/3] powerpc/powernv: Supports PHB3

2013-04-19 Thread Gavin Shan
The patch intends to initialize PHB3 during system boot stage. The flag "PNV_PHB_MODEL_PHB3" is introduced to differentiate IODA2 compatible PHB3 from other types of PHBs. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/powernv/pci-ioda.c | 62 +++-- ar

[PATCH 2/3] powerpc/powernv: Configure IODA2 tables explicitly

2013-04-19 Thread Gavin Shan
The PHB3, which is compatible with IODA2, have lots of tables (RTT/ PETLV/PEST/IVT/RBA) in system memory and have corresponding BARs to trace the system memory address. The patch configures the addresses of variable tables explicitly through OPAL API. Signed-off-by: Gavin Shan --- arch/powerpc/i

[PATCH v2 01/15] powerpc/85xx: cache operations for Freescale SoCs based on BOOK3E

2013-04-19 Thread Zhao Chenhui
These cache operations support Freescale SoCs based on BOOK3E. Move L1 cache operations to fsl_booke_cache.S in order to maintain easily. And, add cache operations for backside L2 cache and platform cache. The backside L2 cache appears on e500mc and e5500 core. The platform cache supported by this

[PATCH v2 02/15] powerpc/85xx: add sleep and deep sleep support

2013-04-19 Thread Zhao Chenhui
Some Freescale SoCs like MPC8536 and P1022 has the deep sleep mode in addtion to the sleep mode. In sleep PM mode, the clocks of e500 core and unused IP blocks is turned off. IP blocks which are allowed to wake up the processor are still running. While in deep sleep PM mode, additionally, the pow

[PATCH v2 03/15] fsl_pmc: Add API to enable device as wakeup event source

2013-04-19 Thread Zhao Chenhui
From: chenhui zhao Add APIs for setting wakeup source and lossless Ethernet in low power modes. These APIs can be used by wake-on-packet feature. Change-Id: I1803dcd4571af1eac49b43d99c578e7f99e2c278 Signed-off-by: Dave Liu Signed-off-by: Li Yang Signed-off-by: Jin Qing Signed-off-by: Zhao Che

[PATCH v2 04/15] pm: add power node to dts

2013-04-19 Thread Zhao Chenhui
The Power Management device tree stub indicated that the platform supports Power Management feature. Signed-off-by: Zhao Chenhui --- arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi | 14 ++- arch/powerpc/boot/dts/fsl/mpc8544si-post.dtsi |2 + arch/powerpc/boot/dts/fsl/mpc8548si-post.dtsi

[PATCH v2 05/15] fsl_pmc: update device bindings

2013-04-19 Thread Zhao Chenhui
From: Li Yang Signed-off-by: Li Yang Signed-off-by: Zhao Chenhui --- .../devicetree/bindings/powerpc/fsl/pmc.txt| 59 +++ 1 files changed, 34 insertions(+), 25 deletions(-) diff --git a/Documentation/devicetree/bindings/powerpc/fsl/pmc.txt b/Documentation/devicetree

[PATCH v2 06/15] powerpc/85xx: add support to JOG feature using cpufreq interface

2013-04-19 Thread Zhao Chenhui
From: chenhui zhao Some 85xx silicons like MPC8536 and P1022 have a JOG feature, which provides a dynamic mechanism to lower or raise the CPU core clock at runtime. This patch adds the support to change CPU frequency using the standard cpufreq interface. The ratio CORE to CCB can be 1:1(except M

[PATCH v2 08/15] powerpc/85xx: add cpu hotplug support for e500mc/e5500

2013-04-19 Thread Zhao Chenhui
From: Chen-Hui Zhao Add support to disable and re-enable individual cores at runtime. This supports e500mc/e5500 core based SoCs. To prevent the register access race, only read/write RCPM registers in platform_cpu_die() on the boot cpu instead of accessing by individual cpus. Platform implementa

[PATCH v2 09/15] powerpc/rcpm: add sleep feature for SoCs using RCPM

2013-04-19 Thread Zhao Chenhui
The SoCs which have a RCPM (Run Control/Power Management) module support power management feature. This patch implements sleep feature. In sleep mode, the clocks of cores and unused IP blocks will be turned off. The IP blocks which are allowed to wake up the system are still running. Signed-off-b

[PATCH v2 10/15] powerpc/85xx: fix 64-bit support for cpu hotplug

2013-04-19 Thread Zhao Chenhui
From: Chen-Hui Zhao * The paca[cpu].cpu_start is used as a signal to indicate if the cpu should start. So it should be cleard in .cpu_die(). * The limit memory routine only needs to be ran once at boot time by the boot cpu. Prevent other cpus running it again. * Rearrange the code segment in

[PATCH v2 07/15] powerpc/85xx: add time base sync for SoCs based on e500mc/e5500

2013-04-19 Thread Zhao Chenhui
From: Chen-Hui Zhao In the case of SMP, during the time base sync period, all time bases of online cores must stop, then start simultaneously. There is a RCPM (Run Control/Power Management) module in CoreNet based SoCs. Define a struct ccsr_rcpm to describe the register map. This patch supports

[PATCH v2 11/15] powerpc/rcpm: add struct ccsr_rcpm_v2

2013-04-19 Thread Zhao Chenhui
From: Chen-Hui Zhao Add struct ccsr_rcpm_v2 to descibe the v2 RCPM register map on some SoCs, such as T4240, etc. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang Signed-off-by: Andy Fleming --- arch/powerpc/include/asm/fsl_guts.h | 66 +++ 1 files changed

[PATCH v2 13/15] powerpc/85xx: add support for e6500 L1 cache operation

2013-04-19 Thread Zhao Chenhui
From: Chen-Hui Zhao The L1 Data Cache of e6500 contains no modified data, no flush is required. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang Signed-off-by: Andy Fleming --- arch/powerpc/kernel/fsl_booke_cache.S | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff

[PATCH v2 14/15] powerpc/smp: add cpu hotplug support for e6500

2013-04-19 Thread Zhao Chenhui
From: Chen-Hui Zhao * Only if two threads of one core are offline, the core can enter PH20 state. * Clear PH20 bits before core reset, or core will not restart. * Introduced a variable l2cache_type in the struce cpu_spec to indentify the type of L2 cache. Signed-off-by: Zhao Chenhui Signed-

[PATCH v2 15/15] powerpc/rcpm: add sleep support for T4/B4 chips

2013-04-19 Thread Zhao Chenhui
From: Chen-Hui Zhao RCPM unit controls the power managment of T4/B4 chips. Software can access RCPM registers to put specific thread/core in PH10/PH15/PH20/PH30 state or put the device in LPM10/LPM20/LPM40 mode. The RCPM unit supports several wake up sources through internal timers and internal

[PATCH v2 12/15] powerpc/85xx: add time base sync support for e6500

2013-04-19 Thread Zhao Chenhui
From: Chen-Hui Zhao For e6500, two threads in one core share one time base. Just need to do time base sync on first thread of one core, and skip it on the other thread. Signed-off-by: Zhao Chenhui Signed-off-by: Li Yang Signed-off-by: Andy Fleming --- arch/powerpc/platforms/85xx/smp.c | 52

[PATCH] powerpc/fsl-pci: fix setup_pci_atmu() parameter issue

2013-04-19 Thread Roy Zang
setup_pci_atmu() only has one parameter and remove the extra one, or build will fail due to un-match. Signed-off-by: Roy Zang --- arch/powerpc/sysdev/fsl_pci.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c ind

Re: [PATCH] powerpc/fsl-pci: fix setup_pci_atmu() parameter issue

2013-04-19 Thread Roy Zang
On 04/20/2013 02:55 AM, Roy Zang wrote: setup_pci_atmu() only has one parameter and remove the extra one, or build will fail due to un-match. Signed-off-by: Roy Zang --- based on Kumar's next branch. Roy ___ Linuxppc-dev mailing list Linuxppc-dev@l

[PATCH] powerpc/rtas_flash: New return code to indicate FW entitlement expiry

2013-04-19 Thread Vasant Hegde
Add new return code to rtas_flash to indicate firmware entitlement expiry. This will be used by the update_flash script to return appropriate message to the user. Signed-off-by: Ananth N Mavinakayanahalli Signed-off-by: Vasant Hegde --- arch/powerpc/kernel/rtas_flash.c |1 + 1 file changed,

[PATCH RESEND] powerpc/rtas_flash: Free kmem upon module exit

2013-04-19 Thread Vasant Hegde
Memory allocated to flash_block_list in rtas_flash_write is not freed during module exit. We hit below call trace if we unload rtas_flash module after loading new firmware image and before rebooting the system. Feb 6 08:42:10 eagle3 kernel: kmem_cache_destroy rtas_flash_cache: Slab cache still h