[PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Dongsheng Wang
From: Wang Dongsheng After __cpuidle_register_device, the cpu incs are added up, but decs are not, thus the module refcount is not match. So the module "exit" function can not be executed when we do remove operation. Move module_put into __cpuidle_register_device to fix it. Signed-off-by: Wang D

[PATCH] cpuidle: add freescale e500 family porcessors idle support

2013-07-30 Thread Dongsheng Wang
From: Wang Dongsheng Add cpuidle support for e500 family, using cpuidle framework to manage various low power modes. The new implementation will remain compatible with original idle method. Initially, this supports PW10, and subsequent patches will support PW20/DOZE/NAP. Signed-off-by: Wang Don

Re: Build regressions/improvements in v3.11-rc3

2013-07-30 Thread Geert Uytterhoeven
On Tue, 30 Jul 2013, Geert Uytterhoeven wrote: > JFYI, when comparing v3.11-rc3 to v3.11-rc2[3], the summaries are: > - build errors: +38/-14 + arch/powerpc/kvm/book3s_emulate.c: error: 'bat' may be used uninitialized in this function [-Werror=uninitialized]: => 349:2 + arch/powerpc/kvm/bo

Re: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Daniel Lezcano
On 07/30/2013 08:55 AM, Dongsheng Wang wrote: > From: Wang Dongsheng > > After __cpuidle_register_device, the cpu incs are added up, but decs > are not, thus the module refcount is not match. So the module "exit" > function can not be executed when we do remove operation. Move > module_put into _

[PATCH v3 1/3] powerpc/85xx: Add SEC6.0 device tree

2013-07-30 Thread Po Liu
From: Mingkai Hu Add device tree for SEC 6.0 used on C29x silicon. Signed-off-by: Mingkai Hu Signed-off-by: Po Liu --- Changes for v2: - Remove the compatible sec v4.0/v4.4/v5.0; - Add the device tree binding file fsl-sec6.txt; Changes for v3: - Change some comments in

[PATCH v3 2/3] powerpc/85xx: Add silicon device tree for C293

2013-07-30 Thread Po Liu
From: Mingkai Hu Signed-off-by: Mingkai Hu Signed-off-by: Po Liu --- Changes for v2: - None Changes for v3: - None arch/powerpc/boot/dts/fsl/c293si-post.dtsi | 193 + arch/powerpc/boot/dts/fsl/c293si-pre.dtsi | 63 ++ 2 files changed, 256

[PATCH v3 3/3] powerpc/85xx: Add C293PCIE board support

2013-07-30 Thread Po Liu
From: Mingkai Hu C293PCIE board is a series of Freescale PCIe add-in cards to perform as public key crypto accelerator or secure key management module. - 512KB platform SRAM in addition to 512K L2 Cache/SRAM - 512MB soldered DDR3 32bit memory - CPLD System Logic - 64MB x16 NOR flash and 4GB

Re: [PATCH] cpuidle: add freescale e500 family porcessors idle support

2013-07-30 Thread Daniel Lezcano
On 07/30/2013 09:00 AM, Dongsheng Wang wrote: > From: Wang Dongsheng > > Add cpuidle support for e500 family, using cpuidle framework to > manage various low power modes. The new implementation will remain > compatible with original idle method. > > Initially, this supports PW10, and subsequent

Re: powerpc/85xx: Add P1023RDB board support

2013-07-30 Thread Chunhe Lan
On 07/30/2013 09:09 AM, Scott Wood wrote: On Fri, Jun 14, 2013 at 04:26:20PM +0800, Chunhe Lan wrote: Ethernet: eTSEC1: Connected to Atheros AR8035 GETH PHY eTSEC2: Connected to Atheros AR8035 GETH PHY Where are the PHYs in the device tree? "Atheros AR8035 GETH PHY" driver is modul

RE: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Wang Dongsheng-B40534
> -Original Message- > From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > Sent: Tuesday, July 30, 2013 5:28 PM > To: Wang Dongsheng-B40534 > Cc: r...@sisk.pl; linux...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH] cpuidle: fix unremovable issue for module dr

RE: [PATCH] cpuidle: add freescale e500 family porcessors idle support

2013-07-30 Thread Wang Dongsheng-B40534
> -Original Message- > From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > Sent: Tuesday, July 30, 2013 5:51 PM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; r...@sisk.pl; b...@kernel.crashing.org; Li Yang- > R58472; Zhao Chenhui-B35336; linux...@vger.kernel.org; linuxppc- >

Re: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Daniel Lezcano
On 07/30/2013 12:48 PM, Wang Dongsheng-B40534 wrote: > > >> -Original Message- >> From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] >> Sent: Tuesday, July 30, 2013 5:28 PM >> To: Wang Dongsheng-B40534 >> Cc: r...@sisk.pl; linux...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org >> Su

[PATCH v2] powerpc/85xx: Add P1023RDB board support

2013-07-30 Thread Chunhe Lan
P1023RDB Specification: --- Memory subsystem: 512MB DDR3 (Fixed DDR on board) 64MB NOR flash 128MB NAND flash Ethernet: eTSEC1: Connected to Atheros AR8035 GETH PHY eTSEC2: Connected to Atheros AR8035 GETH PHY PCIe: Three mini-PCIe slots USB: Two USB2.0 T

[PATCH v3] powerpc: Update compilation flags with core specific options

2013-07-30 Thread Catalin Udma
If CONFIG_E500 is enabled, the compilation flags are updated specifying the target core -mcpu=e5500/e500mc/8540 Also remove -Wa,-me500, being incompatible with -mcpu=e5500/e6500 The assembler option is redundant if the -mcpu= flag is set. The patch fixes the kernel compilation problem for e5500/e65

Re: [PATCH] cpuidle: fix unremovable issue for module driver

2013-07-30 Thread Rafael J. Wysocki
On Tuesday, July 30, 2013 01:19:46 PM Daniel Lezcano wrote: > On 07/30/2013 12:48 PM, Wang Dongsheng-B40534 wrote: > > > > > >> -Original Message- > >> From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > >> Sent: Tuesday, July 30, 2013 5:28 PM > >> To: Wang Dongsheng-B40534 > >> Cc:

Re: powerpc/85xx: Add P1023RDB board support

2013-07-30 Thread Scott Wood
On 07/30/2013 05:22:11 AM, Chunhe Lan wrote: On 07/30/2013 09:09 AM, Scott Wood wrote: On Fri, Jun 14, 2013 at 04:26:20PM +0800, Chunhe Lan wrote: Ethernet: eTSEC1: Connected to Atheros AR8035 GETH PHY eTSEC2: Connected to Atheros AR8035 GETH PHY Where are the PHYs in the device tree?

RE: [PATCH 4/4] kvm: powerpc: set cache coherency only for RAM pages

2013-07-30 Thread Bhushan Bharat-R65777
> -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Saturday, July 27, 2013 3:57 AM > To: Bhushan Bharat-R65777 > Cc: Alexander Graf; kvm-...@vger.kernel.org; k...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; Wood Scott-B07421 > Subject: Re

Re: [PATCH v3 2/3] powerpc/85xx: Add silicon device tree for C293

2013-07-30 Thread Scott Wood
On 07/30/2013 03:49:22 AM, Po Liu wrote: From: Mingkai Hu Signed-off-by: Mingkai Hu Signed-off-by: Po Liu --- Changes for v2: - None Changes for v3: - None arch/powerpc/boot/dts/fsl/c293si-post.dtsi | 193 + arch/powerpc/boot/dts/fsl/c293si-pre

Re: [PATCH v3 3/3] powerpc/85xx: Add C293PCIE board support

2013-07-30 Thread Scott Wood
On 07/30/2013 03:49:23 AM, Po Liu wrote: + nand@1,0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "fsl,ifc-nand"; + reg = <0x1 0x0 0x1>; + + partition@0 { + /* This location must

Re: [PATCH 4/4] kvm: powerpc: set cache coherency only for RAM pages

2013-07-30 Thread Scott Wood
On 07/30/2013 11:22:54 AM, Bhushan Bharat-R65777 wrote: diff --git a/arch/powerpc/kvm/e500_mmu_host.c b/arch/powerpc/kvm/e500_mmu_host.c index 5cbdc8f..a48c13f 100644 --- a/arch/powerpc/kvm/e500_mmu_host.c +++ b/arch/powerpc/kvm/e500_mmu_host.c @@ -40,6 +40,84 @@ static struct kvmppc_e500_tlb

Re: [PATCH v2] powerpc/85xx: Add P1023RDB board support

2013-07-30 Thread Scott Wood
On 07/30/2013 06:40:29 AM, Chunhe Lan wrote: P1023RDB Specification: --- Memory subsystem: 512MB DDR3 (Fixed DDR on board) 64MB NOR flash 128MB NAND flash Ethernet: eTSEC1: Connected to Atheros AR8035 GETH PHY eTSEC2: Connected to Atheros AR8035 GETH PHY PCIe:

Re: [PATCH] cpuidle: add freescale e500 family porcessors idle support

2013-07-30 Thread Scott Wood
On 07/30/2013 02:00:03 AM, Dongsheng Wang wrote: From: Wang Dongsheng Add cpuidle support for e500 family, using cpuidle framework to manage various low power modes. The new implementation will remain compatible with original idle method. Initially, this supports PW10, and subsequent patches w

Re: [PATCH 1/3] mmc:core: parse voltage from device-tree

2013-07-30 Thread Scott Wood
On 07/29/2013 08:34:29 PM, Zhang Haijun wrote: On 07/30/2013 06:07 AM, Scott Wood wrote: On 07/28/2013 09:56:33 PM, Haijun Zhang wrote: Add function to support get voltage from device-tree. If there are voltage-range specified in device-tree node, this function will parse it and return the a

Re: [4/4] Added device tree entries for Legerity SLIC node on various Freescale Platforms

2013-07-30 Thread Scott Wood
On Thu, Mar 07, 2013 at 04:57:48PM +0530, Sandeep Singh wrote: > diff --git a/arch/powerpc/boot/dts/p1024rdb.dtsi > b/arch/powerpc/boot/dts/p1024rdb.dtsi > index b05dcb4..cec36a3 100644 > --- a/arch/powerpc/boot/dts/p1024rdb.dtsi > +++ b/arch/powerpc/boot/dts/p1024rdb.dtsi > @@ -164,6 +164,19 @@ >

RE: [PATCH v3 2/3] powerpc/85xx: Add silicon device tree for C293

2013-07-30 Thread Liu Po-B43644
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, July 31, 2013 2:28 AM > To: Liu Po-B43644 > Cc: linuxppc-...@ozlabs.org; ga...@kernel.crashing.org; Fleming Andy- > AFLEMING; Hu Mingkai-B21284; Liu Po-B43644 > Subject: Re: [PATCH v3 2/3] powerpc/85xx: Add silicon de

Re: [PATCH v2] powerpc/85xx: Add P1023RDB board support

2013-07-30 Thread Chunhe Lan
On 07/31/2013 02:57 AM, Scott Wood wrote: On 07/30/2013 06:40:29 AM, Chunhe Lan wrote: + +lbc: localbus@ff605000 { +reg = <0 0xff605000 0 0x1000>; + +/* NOR, NAND Flashes */ +ranges = <0x0 0x0 0x0 0xec00 0x0400 + 0x1 0x0 0x0 0xffa0 0x0800>

[PATCH] powerpc/dts: fix sRIO error interrupt for b4860

2013-07-30 Thread Minghuan Lian
For B4 platform, MPIC EISR register is in reversed bitmap order, instead of "Error interrupt source 0-31. Bit 0 represents SRC0." the correct ordering is "Error interrupt source 0-31. Bit 0 represents SRC31." This patch is to fix sRIO EISR bit value of error interrupt in dts node. Signed-off-by: M

[PATCH V2 1/6] cpuidle/pseries: Fix kernel command line parameter smt-snooze-delay

2013-07-30 Thread Deepthi Dharwar
smt-snooze-delay is tunable provided currently on powerpc to delay the entry of an idle cpu to NAP state. By default, the value is 100us, which is entry criteria for NAP state i.e only if the idle period is above 100us it would enter NAP. Value of -1 disables entry into NAP. This value can be set e

[PATCH V2 2/6] cpuidle/pseries: Remove dependency of pseries.h file

2013-07-30 Thread Deepthi Dharwar
As a part of pseries_idle cleanup to make the backend driver code common to both pseries and powernv, this patch is essential to remove the dependency of pseries.h header file. Move the declaration of smt_snooze_delay from pseries.h to processor_idle.c. smt_snooze_delay variable is needed for both

[PATCH V2 0/6] cpuidle/powerpc: POWERPC cpuidle driver for POWER and POWERNV platforms

2013-07-30 Thread Deepthi Dharwar
Following patch series consolidates backend cpuidle driver for pseries and powernv platforms. Current existing backend driver for pseries has been moved to arch/powerpc/sysdev and has been extended to accommodate powernv idle power mgmt states. As seen in V1 of this patch series, too much code

[PATCH V2 6/6] cpuidle/powernv: Enable idle powernv cpu to call into the cpuidle framework.

2013-07-30 Thread Deepthi Dharwar
This patch enables idle powernv cpu to hook on to the cpuidle framework, if available, else call on to default idle platform code. Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/powernv/setup.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/pow

[PATCH V2 4/6] cpuidle/pseries: Move the pseries_idle backend driver to sysdev.

2013-07-30 Thread Deepthi Dharwar
Move pseries_idle backend driver code to arch/powerpc/sysdev so that the code can be used for a common driver for powernv and pseries. This removes a lot of code duplicacy. Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/pseries/Kconfig |9 - arch/powerpc/platforms/pseries

[PATCH V2 3/6] pseries: Move plpar_wrapper.h to powerpc common include/asm location.

2013-07-30 Thread Deepthi Dharwar
As a part of pseries_idle backend driver cleanup to make the code common to both pseries and powernv archs, it is necessary to move the backend-driver code to powerpc/sysdev. As a pre-requisite to that, it is essential to move plpar_wrapper.h to include/asm. Signed-off-by: Deepthi Dharwar --- a

[PATCH V2 5/6] cpuidle/powerpc: Backend-powerpc idle driver for powernv and pseries.

2013-07-30 Thread Deepthi Dharwar
The following patch extends the current pseries backend idle driver to powernv platform. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm/processor.h |2 - arch/powerpc/sysdev/Kconfig |8 +- arch/powerpc/sysdev/Makefile |2 - arch/powerpc/sysdev/processor_

Re: [PATCH] cpuidle: add freescale e500 family porcessors idle support

2013-07-30 Thread Deepthi Dharwar
On 07/30/2013 04:32 PM, Wang Dongsheng-B40534 wrote: Hi Dongsheng, I have posted out a generic powerpc idle backend driver ccing you. Please take a look at it and integrate your platform idle states into it. Right now, cpu hotplug notifier is common for all powerpc. This shouldn't hinder you. Th

RE: [PATCH V2 4/6] cpuidle/pseries: Move the pseries_idle backend driver to sysdev.

2013-07-30 Thread Wang Dongsheng-B40534
> -Original Message- > From: Deepthi Dharwar [mailto:deep...@linux.vnet.ibm.com] > Sent: Wednesday, July 31, 2013 10:59 AM > To: b...@kernel.crashing.org; daniel.lezc...@linaro.org; linux- > ker...@vger.kernel.org; mich...@ellerman.id.au; > srivatsa.b...@linux.vnet.ibm.com; pre...@linux.v

RE: [PATCH V2 5/6] cpuidle/powerpc: Backend-powerpc idle driver for powernv and pseries.

2013-07-30 Thread Wang Dongsheng-B40534
> > -static int pseries_cpuidle_add_cpu_notifier(struct notifier_block *n, > +static int powerpc_cpuidle_add_cpu_notifier(struct notifier_block *n, > unsigned long action, void *hcpu) > { > int hotcpu = (unsigned long)hcpu; > struct cpuidle_device *dev = > -

Re: [PATCH V2 4/6] cpuidle/pseries: Move the pseries_idle backend driver to sysdev.

2013-07-30 Thread Preeti U Murthy
Hi Dongsheng, On 07/31/2013 08:52 AM, Wang Dongsheng-B40534 wrote: > > >> -Original Message- >> From: Deepthi Dharwar [mailto:deep...@linux.vnet.ibm.com] >> Sent: Wednesday, July 31, 2013 10:59 AM >> To: b...@kernel.crashing.org; daniel.lezc...@linaro.org; linux- >> ker...@vger.kernel.or

[PATCH 1/3] selftests: Add infrastructure for powerpc selftests

2013-07-30 Thread Michael Ellerman
This commit adds a powerpc subdirectory to tools/testing/selftests, for tests that are powerpc specific. On other architectures nothing is built. The makefile supports cross compilation if the user sets ARCH and CROSS_COMPILE. Signed-off-by: Michael Ellerman --- tools/testing/selftests/Makefile

[PATCH 2/3] selftests: Add support files for powerpc tests

2013-07-30 Thread Michael Ellerman
This commit adds support code used by upcoming powerpc tests. Signed-off-by: Michael Ellerman --- tools/testing/selftests/powerpc/harness.c | 83 +++ tools/testing/selftests/powerpc/subunit.h | 47 + tools/testing/selftests/powerpc/utils.h | 34 +

[PATCH 3/3] selftests: Add test of PMU instruction counting on powerpc

2013-07-30 Thread Michael Ellerman
This commit adds a test of instruction counting using the PMU on powerpc. Although the bulk of the code is architecture agnostic, the code needs to run a precisely sized loop which is implemented in assembler. Signed-off-by: Michael Ellerman --- tools/testing/selftests/powerpc/Makefile

[PATCH] powerpc: handle unaligned ldbrx/stdbrx

2013-07-30 Thread Anton Blanchard
Normally when we haven't implemented an alignment handler for a load or store instruction the process will be terminated. The alignment handler uses the DSISR (or a pseudo one) to locate the right handler. Unfortunately ldbrx and stdbrx overlap lfs and stfs so we incorrectly think ldbrx is an lfs

RE: [PATCH 4/4] kvm: powerpc: set cache coherency only for RAM pages

2013-07-30 Thread Bhushan Bharat-R65777
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, July 31, 2013 12:19 AM > To: Bhushan Bharat-R65777 > Cc: Benjamin Herrenschmidt; Alexander Graf; kvm-...@vger.kernel.org; > k...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421 > Subject: Re: [PATCH 4/4] k

RE: [PATCH V2 4/6] cpuidle/pseries: Move the pseries_idle backend driver to sysdev.

2013-07-30 Thread Wang Dongsheng-B40534
Hi Preeti, > -Original Message- > From: Preeti U Murthy [mailto:pre...@linux.vnet.ibm.com] > Sent: Wednesday, July 31, 2013 12:00 PM > To: Wang Dongsheng-B40534 > Cc: Deepthi Dharwar; b...@kernel.crashing.org; daniel.lezc...@linaro.org; > linux-ker...@vger.kernel.org; mich...@ellerman.id.a

[PATCH] powerpc: Wrap MSR macros with parentheses

2013-07-30 Thread Anton Blanchard
Not having parentheses around a macro is asking for trouble. Signed-off-by: Anton Blanchard --- Index: b/arch/powerpc/include/asm/reg.h === --- a/arch/powerpc/include/asm/reg.h +++ b/arch/powerpc/include/asm/reg.h @@ -115,10 +115,1

[PATCH] powerpc: Align p_toc

2013-07-30 Thread Anton Blanchard
p_toc is an 8 byte relative offset to the TOC that we place in the text section. This means it is only 4 byte aligned where it should be 8 byte aligned. Add an explicit alignment. Signed-off-by: Anton Blanchard --- Index: b/arch/powerpc/kernel/head_64.S =

[PATCH] powerpc: Remove SAVE_VSRU and REST_VSRU macros

2013-07-30 Thread Anton Blanchard
We always use VMX loads and stores to manage the high 32 VSRs. Remove these unused macros. Signed-off-by: Anton Blanchard --- Index: b/arch/powerpc/include/asm/ppc_asm.h === --- a/arch/powerpc/include/asm/ppc_asm.h +++ b/arch/power

Re: [PATCH 2/3] selftests: Add support files for powerpc tests

2013-07-30 Thread Michael Ellerman
On Wed, Jul 31, 2013 at 02:56:32PM +1000, Michael Ellerman wrote: > This commit adds support code used by upcoming powerpc tests. Fudge, I broke this one while "cleaning it up". Will send a v2. cheers ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozl

RE: [PATCH] cpuidle: add freescale e500 family porcessors idle support

2013-07-30 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, July 31, 2013 3:38 AM > To: Wang Dongsheng-B40534 > Cc: r...@sisk.pl; daniel.lezc...@linaro.org; b...@kernel.crashing.org; Li > Yang-R58472; Zhao Chenhui-B35336; linux...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org >

[PATCH] powerpc: On POWERNV enable PPC_DENORMALISATION by default

2013-07-30 Thread Anton Blanchard
We want PPC_DENORMALISATION enabled when POWERNV is enabled, so update the Kconfig. Signed-off-by: Anton Blanchard --- Index: b/arch/powerpc/Kconfig === --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -566,7 +566,7 @@ conf

Re: [PATCH] powerpc: Remove SAVE_VSRU and REST_VSRU macros

2013-07-30 Thread Michael Neuling
Anton Blanchard wrote: > > We always use VMX loads and stores to manage the high 32 > VSRs. Remove these unused macros. > > Signed-off-by: Anton Blanchard Acked-by: Michael Neuling > --- > > Index: b/arch/powerpc/include/asm/ppc_asm.h >

Re: [PATCH] powerpc: On POWERNV enable PPC_DENORMALISATION by default

2013-07-30 Thread Michael Neuling
Anton Blanchard wrote: > > We want PPC_DENORMALISATION enabled when POWERNV is enabled, > so update the Kconfig. > > Signed-off-by: Anton Blanchard Acked-by: Michael Neuling > --- > > Index: b/arch/powerpc/Kconfig > === > ---

[PATCH v2] selftests: Add support files for powerpc tests

2013-07-30 Thread Michael Ellerman
This commit adds support code used by upcoming powerpc tests. Signed-off-by: Michael Ellerman --- v2: Put back the SIGALRM handler to make the hang logic work. tools/testing/selftests/powerpc/harness.c | 99 +++ tools/testing/selftests/powerpc/subunit.h | 47