cpuidle/pseries: Fix kernel command line parameter smt-snooze-delay

2013-07-22 Thread Deepthi Dharwar
: Deepthi Dharwar --- arch/powerpc/platforms/pseries/processor_idle.c | 34 ++- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/platforms/pseries/processor_idle.c b/arch/powerpc/platforms/pseries/processor_idle.c index 4644efa0..8133f50 100644 --- a

[PATCH 0/3] cpuidle: (powernv) cpuidle driver.

2013-07-23 Thread Deepthi Dharwar
with pSeries idle management. For POWERNV platform to hook into CPUIDLE framework, one needs to enable CONFIG_POWERNV_IDLE and disable CONFIG_PSERIES_IDLE Deepthi Dharwar (3): cpuidle/powernv: cpuidle backend driver for powernv cpuidle/powernv: Enable idle powernv cpu to call into

[PATCH 1/3] cpuidle/powernv: cpuidle backend driver for powernv

2013-07-23 Thread Deepthi Dharwar
This patch implements a back-end cpuidle driver for powernv calling power7_nap and snooze idle states. This can be extended by adding more idle states in the future to the existing framework. Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/powernv/Kconfig |9 + arch

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

2013-07-23 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

[PATCH 3/3] cpuidle/powernv: Support smt-snooze-delay parameter in powernv idle.

2013-07-23 Thread Deepthi Dharwar
smt-snooze-delay is a tunable that is supported on powerpc platform to delay the entry to nap state. This can be set either via sysfs, kernel commandline or pp64_cpu util. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm/processor.h|2 + arch/powerpc/platforms/powernv

Re: cpuidle/pseries: Fix kernel command line parameter smt-snooze-delay

2013-07-23 Thread Deepthi Dharwar
On 07/23/2013 07:32 PM, Michael Ellerman wrote: > On Tue, Jul 23, 2013 at 10:23:57AM +0530, Deepthi Dharwar wrote: >> smt-snooze-delay is a tun-able provided currently on powerpc to delay the >> entry of an idle cpu to NAP state. By default, the value is 100us, >> which is e

Re: [PATCH 1/3] cpuidle/powernv: cpuidle backend driver for powernv

2013-07-24 Thread Deepthi Dharwar
On 07/23/2013 07:36 PM, Michael Ellerman wrote: > On Tue, Jul 23, 2013 at 02:31:41PM +0530, Deepthi Dharwar wrote: >> This patch implements a back-end cpuidle driver for >> powernv calling power7_nap and snooze idle states. >> This can be extended by adding more idle states &g

Re: [PATCH 2/3] cpuidle/powernv: Enable idle powernv cpu to call into the cpuidle framework.

2013-07-29 Thread Deepthi Dharwar
On 07/27/2013 10:59 AM, Daniel Lezcano wrote: > On 07/23/2013 11:01 AM, Deepthi Dharwar wrote: >> This patch enables idle powernv cpu to hook on to the cpuidle >> framework, if available, else call on to default idle platform >> code. > > Why do you need to do that ? &g

Re: [linux-pm] [PATCH 1/3] cpuidle/powernv: cpuidle backend driver for powernv

2013-07-29 Thread Deepthi Dharwar
Hi Daniel, On 07/27/2013 10:57 AM, Daniel Lezcano wrote: > On 07/23/2013 11:01 AM, Deepthi Dharwar wrote: >> This patch implements a back-end cpuidle driver for >> powernv calling power7_nap and snooze idle states. >> This can be extended by adding more idle states &g

Re: [PATCH 2/3] cpuidle/powernv: Enable idle powernv cpu to call into the cpuidle framework.

2013-07-29 Thread Deepthi Dharwar
On 07/29/2013 08:14 PM, Daniel Lezcano wrote: > On 07/29/2013 04:27 PM, Deepthi Dharwar wrote: >> On 07/27/2013 10:59 AM, Daniel Lezcano wrote: >>> On 07/23/2013 11:01 AM, Deepthi Dharwar wrote: >>>> This patch enables idle powernv cpu to hook on to the cpuidle >

Re: [linux-pm] [PATCH 1/3] cpuidle/powernv: cpuidle backend driver for powernv

2013-07-29 Thread Deepthi Dharwar
On 07/29/2013 08:23 PM, Daniel Lezcano wrote: > On 07/29/2013 04:39 PM, Deepthi Dharwar wrote: >> Hi Daniel, >> >> On 07/27/2013 10:57 AM, Daniel Lezcano wrote: >>> On 07/23/2013 11:01 AM, Deepthi Dharwar wrote: >>>> This patch implements a back-e

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

2013-07-30 Thread Deepthi Dharwar
per-cpu variable. This can be used to enable/disable NAP on per-cpu basis using sysfs but when this variable is passed via kernel command line or using the smt-snooze-delay it applies to all the cpus. Per-cpu tuning can only be done via sysfs. Signed-off-by: Deepthi Dharwar --- arch/powerpc

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

2013-07-30 Thread Deepthi Dharwar
both pseries and powernv. /* Snooze Delay, pseries_idle */ DECLARE_PER_CPU(long, smt_snooze_delay); Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/pseries/processor_idle.c |4 +++- arch/powerpc/platforms/pseries/pseries.h|3 --- 2 files changed, 3 insertions(+), 4

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

2013-07-30 Thread Deepthi Dharwar
framework. This patch mainly focus on an integrated CPUIDLE backend driver for POWERPC. Minor cpuidle clean-ups will be taken up going further. One need to enable POWERPC_IDLE config option to exploit these backend drivers. V1 -> http://lkml.org/lkml/2013/7/23/143 Deepthi Dharwar (6): cpui

[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

[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

[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

[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

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

2013-07-30 Thread Deepthi Dharwar
mplementation will remain compatible >>> with original idle method. >>> >>> Initially, this supports PW10, and subsequent patches will support >>> PW20/DOZE/NAP. >>> >>> Signed-off-by: Wang Dongsheng >>> --- >>> This patch

[RFC PATCH V3 0/5] powerpc/cpuidle: Generic POWERPC cpuidle driver enabled for POWER and POWERNV platforms

2013-08-18 Thread Deepthi Dharwar
c file. This will be one consolidated binary that does a run time detection based on platform and take decisions accordingly. Deepthi Dharwar (5): pseries/cpuidle: Remove dependency of pseries.h file pseries: Move plpar_wrapper.h to powerpc common include/asm location. p

[RFC PATCH V3 1/5] pseries/cpuidle: Remove dependency of pseries.h file

2013-08-18 Thread Deepthi Dharwar
As a part of pseries_idle cleanup to make the backend driver code common to both pseries and powernv. Remove non-essential smt_snooze_delay declaration in pseries.h header file and pseries.h file inclusion in pseries/processor_idle.c Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms

[RFC PATCH V3 2/5] pseries: Move plpar_wrapper.h to powerpc common include/asm location.

2013-08-18 Thread Deepthi Dharwar
As a part of pseries_idle backend driver cleanup to make the code common to both pseries and powernv platforms, it is necessary to move the backend-driver code to drivers/cpuidle. As a pre-requisite for that, it is essential to move plpar_wrapper.h to include/asm. Signed-off-by: Deepthi Dharwar

[RFC PATCH V3 3/5] powerpc/cpuidle: Generic powerpc backend cpuidle driver.

2013-08-18 Thread Deepthi Dharwar
elegant. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm/paca.h | 23 + arch/powerpc/include/asm/processor.h|2 arch/powerpc/platforms/pseries/Kconfig |9 - arch/powerpc/platforms/pseries/Makefile |1 arch/powerpc/platforms

[RFC PATCH V3 5/5] powernv/cpuidle: Enable idle powernv cpu to call into the cpuidle framework.

2013-08-18 Thread Deepthi Dharwar
This patch enables idle cpu on the powernv platform 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 | 14 +- 1 file changed, 13 insertions(+), 1 deletion

[RFC PATCH V3 4/5] powerpc/cpuidle: Enable powernv cpuidle support.

2013-08-18 Thread Deepthi Dharwar
The following patch extends the current powerpc backend idle driver to the powernv platform. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-powerpc.c | 36 +--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/drivers/cpuidle/cpuidle

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

2013-08-18 Thread Deepthi Dharwar
On 08/07/2013 05:11 AM, Scott Wood wrote: > On Wed, 2013-08-07 at 09:30 +1000, Benjamin Herrenschmidt wrote: >> On Tue, 2013-08-06 at 18:08 -0500, Scott Wood wrote: >>> Here's another example. get_lppaca() will only build on book3s -- and >>> yet we get requests for e500 code to use this file. >>

Re: [RFC PATCH V3 3/5] powerpc/cpuidle: Generic powerpc backend cpuidle driver.

2013-08-19 Thread Deepthi Dharwar
Hi Dongsheng, On 08/19/2013 11:22 AM, Wang Dongsheng-B40534 wrote: > I think we should move the states and handle function to arch/power/platform* > The states and handle function is belong to backend driver, not for this, > different platform have different state. > Different platforms to make

Re: [RFC PATCH V3 3/5] powerpc/cpuidle: Generic powerpc backend cpuidle driver.

2013-08-20 Thread Deepthi Dharwar
On 08/19/2013 11:47 PM, Scott Wood wrote: > On Mon, 2013-08-19 at 15:48 +0530, Deepthi Dharwar wrote: >> Hi Dongsheng, >> >> On 08/19/2013 11:22 AM, Wang Dongsheng-B40534 wrote: >>> I think we should move the states and handle function to >>> arch/po

[PATCH V4 0/5] powerpc/cpuidle: Generic POWERPC cpuidle driver enabled for POWER and POWERNV platforms

2013-08-21 Thread Deepthi Dharwar
ime flags. Deepthi Dharwar (5): pseries/cpuidle: Remove dependency of pseries.h file pseries: Move plpar_wrapper.h to powerpc common include/asm location. powerpc/cpuidle: Generic powerpc backend cpuidle driver. powerpc/cpuidle: Enable powernv cpuidle support. powern

[PATCH V4 1/5] pseries/cpuidle: Remove dependency of pseries.h file

2013-08-21 Thread Deepthi Dharwar
As a part of pseries_idle cleanup to make the backend driver code common to both pseries and powernv. Remove non-essential smt_snooze_delay declaration in pseries.h header file and pseries.h file inclusion in pseries/processor_idle.c Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms

[PATCH V4 2/5] pseries: Move plpar_wrapper.h to powerpc common include/asm location.

2013-08-21 Thread Deepthi Dharwar
As a part of pseries_idle backend driver cleanup to make the code common to both pseries and powernv platforms, it is necessary to move the backend-driver code to drivers/cpuidle. As a pre-requisite for that, it is essential to move plpar_wrapper.h to include/asm. Signed-off-by: Deepthi Dharwar

[PATCH V4 4/5] powerpc/cpuidle: Enable powernv cpuidle support.

2013-08-21 Thread Deepthi Dharwar
The following patch extends the current powerpc backend idle driver to the powernv platform. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-powerpc.c | 35 +-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/drivers/cpuidle/cpuidle

[PATCH V4 3/5] powerpc/cpuidle: Generic powerpc backend cpuidle driver.

2013-08-21 Thread Deepthi Dharwar
: Deepthi Dharwar --- arch/powerpc/include/asm/paca.h | 23 + arch/powerpc/include/asm/processor.h|2 arch/powerpc/platforms/pseries/Kconfig |9 - arch/powerpc/platforms/pseries/Makefile |1 arch/powerpc/platforms/pseries/processor_idle.c

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

2013-08-21 Thread Deepthi Dharwar
This patch enables idle cpu on the powernv platform 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 | 14 +- 1 file changed, 13 insertions(+), 1 deletion

Re: [RFC PATCH V3 3/5] powerpc/cpuidle: Generic powerpc backend cpuidle driver.

2013-08-21 Thread Deepthi Dharwar
On 08/22/2013 01:38 AM, Scott Wood wrote: > On Wed, 2013-08-21 at 10:23 +0530, Deepthi Dharwar wrote: >> On 08/19/2013 11:47 PM, Scott Wood wrote: >>> On Mon, 2013-08-19 at 15:48 +0530, Deepthi Dharwar wrote: >>>> Hi Dongsheng, >>>> >>>> On 08/

Re: [RFC PATCH V3 3/5] powerpc/cpuidle: Generic powerpc backend cpuidle driver.

2013-08-21 Thread Deepthi Dharwar
On 08/22/2013 11:28 AM, Benjamin Herrenschmidt wrote: > On Thu, 2013-08-22 at 11:20 +0530, Deepthi Dharwar wrote: >> But if having cpuidle backend-driver separately for other powerpc arcs >> makes sense such that each one have their own state information etc >> then it ma

[PATCH V5 1/5] pseries/cpuidle: Remove dependency of pseries.h file

2013-08-22 Thread Deepthi Dharwar
As a part of pseries_idle cleanup to make the backend driver code common to both pseries and powernv. Remove non-essential smt_snooze_delay declaration in pseries.h header file and pseries.h file inclusion in pseries/processor_idle.c Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms

[PATCH V5 0/5] POWER/cpuidle: Generic IBM-POWER cpuidle driver enabled for PSERIES and POWERNV platforms

2013-08-22 Thread Deepthi Dharwar
th pSeries to create a single powerpc driver but this had compile time flags. Deepthi Dharwar (5): pseries/cpuidle: Remove dependency of pseries.h file pseries: Move plpar_wrapper.h to powerpc common include/asm location. POWER/cpuidle: Generic IBM-POWER backend cpuidle driver.

[PATCH V5 2/5] pseries: Move plpar_wrapper.h to powerpc common include/asm location.

2013-08-22 Thread Deepthi Dharwar
As a part of pseries_idle backend driver cleanup to make the code common to both pseries and powernv platforms, it is necessary to move the backend-driver code to drivers/cpuidle. As a pre-requisite for that, it is essential to move plpar_wrapper.h to include/asm. Signed-off-by: Deepthi Dharwar

[PATCH V5 3/5] POWER/cpuidle: Generic IBM-POWER backend cpuidle driver.

2013-08-22 Thread Deepthi Dharwar
removes a lot of code duplicacy, thus making the code elegant. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm/processor.h|2 arch/powerpc/platforms/pseries/Kconfig |9 - arch/powerpc/platforms/pseries/Makefile |1 arch/powerpc/platforms

[PATCH V5 4/5] POWER/cpuidle: Enable powernv cpuidle support.

2013-08-22 Thread Deepthi Dharwar
The following patch extends the current power backend idle driver to the powernv platform. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 37 --- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/drivers/cpuidle/cpuidle

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

2013-08-22 Thread Deepthi Dharwar
This patch enables idle cpu on the powernv platform 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 | 14 +- 1 file changed, 13 insertions(+), 1 deletion

Re: [RFC PATCH V3 3/5] powerpc/cpuidle: Generic powerpc backend cpuidle driver.

2013-08-23 Thread Deepthi Dharwar
On 08/23/2013 02:54 AM, Scott Wood wrote: > On Thu, 2013-08-22 at 11:20 +0530, Deepthi Dharwar wrote: >> On 08/22/2013 01:38 AM, Scott Wood wrote: >>> On Wed, 2013-08-21 at 10:23 +0530, Deepthi Dharwar wrote: >>>> On 08/19/2013 11:47 PM, Scott Wood wrote: >>>

Re: [PATCH V4 3/5] powerpc/cpuidle: Generic powerpc backend cpuidle driver.

2013-08-23 Thread Deepthi Dharwar
Hi Bartlomiej, Thanks for the review. On 08/22/2013 04:26 PM, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Thursday, August 22, 2013 11:00:29 AM Deepthi Dharwar wrote: >> This patch involves moving the current pseries_idle backend driver code >> from pseries/pro

Re: [PATCH V5 3/5] POWER/cpuidle: Generic IBM-POWER backend cpuidle driver.

2013-08-23 Thread Deepthi Dharwar
.flags = CPUIDLE_FLAG_TIME_VALID, >> + .exit_latency = 0, >> +.target_residency = 0, >> +.enter = &shared_cede_loop }, >> +}; >> + >> +static void __exit power_processor_idle_exit(void) >> +{ >>

Re: [PATCH V5 3/5] POWER/cpuidle: Generic IBM-POWER backend cpuidle driver.

2013-08-23 Thread Deepthi Dharwar
mp;dedicated_cede_loop }, >> +}; >> + >> +/* >> + * States for shared partition case. >> + */ >> +static struct cpuidle_state shared_states[MAX_IDLE_STATE_COUNT] = { >> +{ /* Shared Cede */ >> + .name = "Shared Cede", >> +

[PATCH V6 0/7] POWER/cpuidle: Generic IBM-POWER cpuidle driver enabled for PSERIES and POWERNV platforms

2013-08-27 Thread Deepthi Dharwar
th pSeries to create a single powerpc driver but this had compile time flags. Deepthi Dharwar (7): pseries/cpuidle: Move processor_idle.c to drivers/cpuidle. pseries/cpuidle: Use cpuidle_register() for initialisation. pseries/cpuidle: Make pseries_idle backend drive

[PATCH V6 1/7] pseries/cpuidle: Move processor_idle.c to drivers/cpuidle.

2013-08-27 Thread Deepthi Dharwar
Move the file from arch specific pseries/processor_idle.c to drivers/cpuidle/cpuidle-ibm-power.c Make the relevant Makefile and Kconfig changes. This will enable having a common backend cpuidle driver for POWER platform going forward. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm

[PATCH V6 3/7] pseries/cpuidle: Make pseries_idle backend driver a non-module.

2013-08-27 Thread Deepthi Dharwar
. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/cpuidle/cpuidle-ibm-power.c b/drivers/cpuidle/cpuidle-ibm-power.c index b42b948..262db3c 100644 --- a/drivers/cpuidle/cpuidle-ibm-power.c

[PATCH V6 2/7] pseries/cpuidle: Use cpuidle_register() for initialisation.

2013-08-27 Thread Deepthi Dharwar
This patch replaces the cpuidle driver and devices initialisation calls with a single generic cpuidle_register() call and also includes minor refactoring of the code around it. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 80 +-- 1

[PATCH V6 5/7] POWER/cpuidle: Generic POWER CPUIDLE driver supporting PSERIES.

2013-08-27 Thread Deepthi Dharwar
This patch includes cleanup and refactoring of the existing code to make the driver POWER generic. * Re-naming the functions from pseries to generic power. * Re-naming the backend driver from pseries_idle to ibm-power-idle. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm

[PATCH V6 4/7] pseries/cpuidle: Remove MAX_IDLE_STATE macro.

2013-08-27 Thread Deepthi Dharwar
This patch removes the usage of MAX_IDLE_STATE macro and dead code around it. The number of states are determined at run time based on the cpuidle state table selected on a given platform Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 26 +- 1

[PATCH V6 6/7] POWER/cpuidle: Enable powernv cpuidle support.

2013-08-27 Thread Deepthi Dharwar
The following patch extends the current power backend idle driver to the powernv platform. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 39 --- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/drivers/cpuidle/cpuidle

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

2013-08-27 Thread Deepthi Dharwar
This patch enables idle cpu on the powernv platform 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 | 14 +- 1 file changed, 13 insertions(+), 1 deletion

[PATCH V7 0/7] POWER/cpuidle: Generic IBM-POWER cpuidle driver enabled for PSERIES and POWERNV platforms

2013-10-29 Thread Deepthi Dharwar
PPC64. Changes in V2: = * Merged the backend driver posted out for powernv in V1 with pSeries to create a single powerpc driver but this had compile time flags. Deepthi Dharwar (7): pseries/cpuidle: Move processor_idle.c to drivers/cpuidle. pseries/cpuidle: Use cpui

[PATCH V7 2/7] pseries/cpuidle: Use cpuidle_register() for initialisation.

2013-10-29 Thread Deepthi Dharwar
This patch replaces the cpuidle driver and devices initialisation calls with a single generic cpuidle_register() call and also includes minor refactoring of the code around it. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 80 +-- 1

[PATCH V7 1/7] pseries/cpuidle: Move processor_idle.c to drivers/cpuidle.

2013-10-29 Thread Deepthi Dharwar
Move the file from arch specific pseries/processor_idle.c to drivers/cpuidle/cpuidle-ibm-power.c Make the relevant Makefile and Kconfig changes. This will enable having a common backend cpuidle driver for POWER platform going forward. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm

[PATCH V7 3/7] pseries/cpuidle: Make pseries_idle backend driver a non-module.

2013-10-29 Thread Deepthi Dharwar
. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/cpuidle/cpuidle-ibm-power.c b/drivers/cpuidle/cpuidle-ibm-power.c index faf8cc1..8c9e42c 100644 --- a/drivers/cpuidle/cpuidle-ibm-power.c

[PATCH V7 4/7] pseries/cpuidle: Remove MAX_IDLE_STATE macro.

2013-10-29 Thread Deepthi Dharwar
This patch removes the usage of MAX_IDLE_STATE macro and dead code around it. The number of states are determined at run time based on the cpuidle state table selected on a given platform Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 26 +- 1

[PATCH V7 5/7] POWER/cpuidle: Generic POWER CPUIDLE driver supporting PSERIES.

2013-10-29 Thread Deepthi Dharwar
This patch includes cleanup and refactoring of the existing code to make the driver POWER generic. * Re-naming the functions from pseries to generic power. * Re-naming the backend driver from pseries_idle to ibm-power-idle. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm

[PATCH V7 6/7] POWER/cpuidle: Enable powernv cpuidle support.

2013-10-29 Thread Deepthi Dharwar
The following patch extends the current power backend idle driver to the powernv platform. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 39 --- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/drivers/cpuidle/cpuidle

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

2013-10-29 Thread Deepthi Dharwar
This patch enables idle cpu on the powernv platform 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 | 13 - 1 file changed, 12 insertions(+), 1 deletion

Re: [PATCH V7 5/7] POWER/cpuidle: Generic POWER CPUIDLE driver supporting PSERIES.

2013-11-06 Thread Deepthi Dharwar
On 11/07/2013 02:35 AM, Daniel Lezcano wrote: > On 10/29/2013 12:01 PM, Deepthi Dharwar wrote: >> This patch includes cleanup and refactoring of the >> existing code to make the driver POWER generic. >> * Re-naming the functions from pseries to generic power. >> * Re-nam

Re: [PATCH V7 5/7] POWER/cpuidle: Generic POWER CPUIDLE driver supporting PSERIES.

2013-11-06 Thread Deepthi Dharwar
On 11/07/2013 10:31 AM, Benjamin Herrenschmidt wrote: > On Thu, 2013-11-07 at 09:45 +0530, Deepthi Dharwar wrote: >> 'powerpc' would be very generic arch and would comprise of all platforms >> including embedded 32/64 bit to server 64 bit (similar to that of ARM). >>

[PATCH v8 0/7] POWER/cpuidle: Generic POWERPC-BOOK3S cpuidle driver enabled for PSERIES and POWERNV platforms

2013-11-10 Thread Deepthi Dharwar
driver posted out for powernv in V1 with pSeries to create a single powerpc driver but this had compile time flags. Deepthi Dharwar (7): pseries/cpuidle: Move processor_idle.c to drivers/cpuidle. pseries/cpuidle: Use cpuidle_register() for initialisation. pseries/cpuidle: Make

[PATCH v8 1/7] pseries/cpuidle: Move processor_idle.c to drivers/cpuidle.

2013-11-10 Thread Deepthi Dharwar
Move the file from arch specific pseries/processor_idle.c to drivers/cpuidle/cpuidle-powerpc-book3s.c Make the relevant Makefile and Kconfig changes. This will enable having a common backend cpuidle driver for POWERPC-BOOK3S platform going forward. Signed-off-by: Deepthi Dharwar Acked-by: Daniel

[PATCH v8 2/7] pseries/cpuidle: Use cpuidle_register() for initialisation.

2013-11-10 Thread Deepthi Dharwar
This patch replaces the cpuidle driver and devices initialisation calls with a single generic cpuidle_register() call and also includes minor refactoring of the code around it. Signed-off-by: Deepthi Dharwar Acked-by: Daniel Lezcano --- drivers/cpuidle/cpuidle-powerpc-book3s.c | 80

[PATCH v8 3/7] pseries/cpuidle: Make pseries_idle backend driver a non-module.

2013-11-10 Thread Deepthi Dharwar
. Signed-off-by: Deepthi Dharwar Acked-by: Daniel Lezcano --- drivers/cpuidle/cpuidle-powerpc-book3s.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/cpuidle/cpuidle-powerpc-book3s.c b/drivers/cpuidle/cpuidle-powerpc-book3s.c index 51f6cda..82c9e15 100644

[PATCH v8 4/7] pseries/cpuidle: Remove MAX_IDLE_STATE macro.

2013-11-10 Thread Deepthi Dharwar
This patch removes the usage of MAX_IDLE_STATE macro and dead code around it. The number of states are determined at run time based on the cpuidle state table selected on a given platform Signed-off-by: Deepthi Dharwar Acked-by: Daniel Lezcano --- drivers/cpuidle/cpuidle-powerpc-book3s.c

[PATCH v8 5/7] POWER/cpuidle: Generic POWERPC-BOOK3S CPUIDLE driver supporting PSERIES.

2013-11-10 Thread Deepthi Dharwar
This patch includes cleanup and refactoring of the existing code to make the driver POWERPC-BOOK3S generic. * Re-naming the functions from pseries to generic powerpc-book3s. * Re-naming the backend driver from pseries_idle to powerpc_book3s_idle. Signed-off-by: Deepthi Dharwar Acked-by: Daniel

[PATCH v8 6/7] POWER/cpuidle: Enable powernv cpuidle support.

2013-11-10 Thread Deepthi Dharwar
The following patch extends the current powerpc-book3s backend idle driver to the powernv platform. Signed-off-by: Deepthi Dharwar Acked-by: Daniel Lezcano --- drivers/cpuidle/cpuidle-powerpc-book3s.c | 39 -- 1 file changed, 36 insertions(+), 3 deletions(-) diff

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

2013-11-10 Thread Deepthi Dharwar
This patch enables idle cpu on the powernv platform to hook on to the cpuidle framework, if available, else call on to default idle platform code. Signed-off-by: Deepthi Dharwar Acked-by: Daniel Lezcano --- arch/powerpc/platforms/powernv/setup.c | 13 - 1 file changed, 12

powerpc/powernv: Framework to log critical errors on powernv.

2013-12-12 Thread Deepthi Dharwar
powerpc/powernv: Framework to log critical errors on powernv. From: Deepthi Dharwar This patch provides error logging interfaces to report critical powernv error logs to FSP. All the required information to dump the error is collected at POWERNV level through error log interfaces and then

[PATCH v2] powerpc/powernv: Framework to log critical errors on powernv.

2013-12-16 Thread Deepthi Dharwar
OPAL_ERROR_PANIC as severity in elog_create() call. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm/opal.h| 125 arch/powerpc/platforms/powernv/opal-elog.c | 60 +++- arch/powerpc/platforms/powernv/opal-wrappers.S |1 3 files

Re: [PATCH v2] powerpc/powernv: Framework to log critical errors on powernv.

2013-12-17 Thread Deepthi Dharwar
Hi Micheal, Thanks for the review. On 12/18/2013 08:13 AM, Michael Ellerman wrote: > On Mon, 2013-12-16 at 18:00 +0530, Deepthi Dharwar wrote: >> This patch provides error logging interfaces to report critical >> powernv error to FSP. >> All the required information

Re: [PATCH v2] powerpc/powernv: Framework to log critical errors on powernv.

2013-12-17 Thread Deepthi Dharwar
On 12/18/2013 10:57 AM, Michael Ellerman wrote: > On Wed, 2013-12-18 at 10:48 +0530, Deepthi Dharwar wrote: >> Hi Micheal, >> >> Thanks for the review. > > No worries. > >> On 12/18/2013 08:13 AM, Michael Ellerman wrote: >>> On Mon, 2013-12-16 at 18:

Re: [PATCH v2 2/9] POWERPC: pseries: cpuidle: remove superfluous dev->state_count initialization

2014-01-01 Thread Deepthi Dharwar
igned-off-by: Bartlomiej Zolnierkiewicz > Signed-off-by: Kyungmin Park > Acked-by: Daniel Lezcano Acked-by: Deepthi Dharwar > Cc: Deepthi Dharwar > --- > arch/powerpc/platforms/pseries/processor_idle.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/powe

Re: [PATCH v2 3/9] POWERPC: pseries: cpuidle: use the common cpuidle_[un]register() routines

2014-01-01 Thread Deepthi Dharwar
Acked-by: Deepthi Dharwar > Cc: Deepthi Dharwar > --- > arch/powerpc/platforms/pseries/processor_idle.c | 57 > ++--- > 1 file changed, 3 insertions(+), 54 deletions(-) > > diff --git a/arch/powerpc/platforms/pseries/processor_idle.c > b/arch/powerpc/

Re: [PATCH] pseries/cpuidle: Remove redundant call to ppc64_runlatch_off() in cpu idle routines

2014-01-12 Thread Deepthi Dharwar
in > pseries and commit fbd7740fdfdf9475f missed to get rid of these redundant > calls. These calls were carried over subsequent enhancements to the pseries > cpuidle routines. This patch takes care of eliminating this redundancy. > > Signed-off-by: Preeti U Murthy > --- Acked-by: Dee

Re: [PATCH] cpuidle/menu: Fail cpuidle_idle_call() if no idle state is acceptable

2014-01-13 Thread Deepthi Dharwar
reports back to arch so that it can take some > default action. > > Signed-off-by: Preeti U Murthy > --- Acked-by: Deepthi Dharwar > > drivers/cpuidle/cpuidle.c|6 +- > drivers/cpuidle/governors/menu.c |7 --- > 2 files changed, 9 insertions(+), 4 delet

Re: [PATCH] cpuidle/menu: Fail cpuidle_idle_call() if no idle state is acceptable

2014-01-14 Thread Deepthi Dharwar
On 01/14/2014 12:30 PM, Srivatsa S. Bhat wrote: > On 01/14/2014 11:35 AM, Preeti U Murthy wrote: >> On PowerPC, in a particular test scenario, all the cpu idle states were >> disabled. >> Inspite of this it was observed that the idle state count of the shallowest >> idle state, snooze, was increas

[PATCH v1 0/6] pseries/cpuidle: pseries cpuidle backend driver clean-ups.

2014-01-14 Thread Deepthi Dharwar
lkml/2013/8/27/432 V7 -> https://lkml.org/lkml/2013/10/29/216 V8 -> https://lkml.org/lkml/2013/11/11/29 Deepthi Dharwar (5): pseries/cpuidle: Move processor_idle.c to drivers/cpuidle. pseries/cpuidle: Use cpuidle_register() for initialisation. pseries/cpuidle: Make cpuidle-

[PATCH v1 1/6] pseries/cpuidle: Remove redundant call to ppc64_runlatch_off() in cpu idle routines

2014-01-14 Thread Deepthi Dharwar
misunderstanding that it is *necessary* to call ppc64_runlatch_off() multiple times, when that is not the case. Hence this patch takes care of eliminating this redundancy. Signed-off-by: Preeti U Murthy Reviewed-by: Srivatsa S. Bhat Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/pseries

[PATCH v1 2/6] pseries/cpuidle: Move processor_idle.c to drivers/cpuidle.

2014-01-14 Thread Deepthi Dharwar
Move the file from arch specific pseries/processor_idle.c to drivers/cpuidle/cpuidle-pseries.c Make the relevant Makefile and Kconfig changes. Also, introduce Kconfig.powerpc in drivers/cpuidle for all powerpc cpuidle drivers. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm

[PATCH v1 3/6] pseries/cpuidle: Use cpuidle_register() for initialisation.

2014-01-14 Thread Deepthi Dharwar
, this check is not required. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-pseries.c | 78 + 1 file changed, 11 insertions(+), 67 deletions(-) diff --git a/drivers/cpuidle/cpuidle-pseries.c b/drivers/cpuidle/cpuidle-pseries.c index 2115478

[PATCH v1 4/6] pseries/cpuidle: Make cpuidle-pseries backend driver a non-module.

2014-01-14 Thread Deepthi Dharwar
Currently cpuidle-pseries backend driver cannot be built as a module due to dependencies wrt cpuidle framework. This patch removes all the module related code in the driver. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-pseries.c | 15 +-- 1 file changed, 1 insertion

[PATCH v1 5/6] pseries/cpuidle: Remove MAX_IDLE_STATE macro.

2014-01-14 Thread Deepthi Dharwar
This patch removes the usage of MAX_IDLE_STATE macro and dead code around it. The number of states are determined at run time based on the cpuidle state table selected on a given platform Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-pseries.c | 28 ++-- 1

[PATCH v1 6/6] pseries/cpuidle: smt-snooze-delay cleanup.

2014-01-14 Thread Deepthi Dharwar
_util, propose to clean up the kernel code. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm/processor.h |7 --- arch/powerpc/kernel/sysfs.c |2 -- drivers/cpuidle/cpuidle-pseries.c| 17 - 3 files changed, 26 deletions(-) diff --git a/arch/po

[PATCH v1] powernv/cpuidle: Back-end cpuidle driver for powernv platform for idle state management.

2014-01-14 Thread Deepthi Dharwar
CONFIG_POWERNV_IDLE. This patch series applies on pseries cpuidle backend driver fixes patchset posted earlier. pseries/cpuidle: pseries cpuidle backend driver clean-ups. Deepthi Dharwar (1): powernv/cpuidle: Back-end cpuidle driver for powernv platform. arch/powerpc/platforms/powernv

[PATCH v1] powernv/cpuidle: Back-end cpuidle driver for powernv platform.

2014-01-14 Thread Deepthi Dharwar
Following patch ports the cpuidle framework for powernv platform and also implements a cpuidle back-end powernv idle driver calling on to power7_nap and snooze idle states. Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/powernv/setup.c | 13 ++ drivers/cpuidle/Kconfig.powerpc

Re: Disable sleep states on P7+

2014-01-15 Thread Deepthi Dharwar
Hi Steven, On 01/14/2014 08:06 PM, Steven Pratt wrote: > I am looking for info on when and how we are able to disable power saving > features of current (P7, P7+) chips in order to reduce latency. This is often > done in latency sensitive applications when power consumption is not an issue. On

[PATCH V3 1/3] powernv: Push critical error logs to FSP

2014-01-17 Thread Deepthi Dharwar
This patch provides error logging interfaces to report critical powernv error logs to FSP. All the required information to dump the error is collected at POWERNV level through error log interfaces and then pushed on to FSP. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm/opal.h

[PATCH V3 0/3] powerpc/powernv: Error logging interfaces

2014-01-17 Thread Deepthi Dharwar
error handling of the buffers. * Minor typo fix and use of pr_err/pr_fmt to log errors. Deepthi Dharwar (3): powernv: Push critical error logs to FSP powernv: Correct spell error in opal-elog.c powernv: Have uniform logging of errors in opal-elog.c arch/powerpc/include/asm

[PATCH V3 2/3] powernv: Correct spell error in opal-elog.c

2014-01-17 Thread Deepthi Dharwar
Correct spell error in opal-elog.c Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/powernv/opal-elog.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powernv/opal-elog.c b/arch/powerpc/platforms/powernv/opal-elog.c index 5aa2d86..0f67faa

[PATCH V3 3/3] powernv: Have uniform logging of errors in opal-elog.c

2014-01-17 Thread Deepthi Dharwar
Currently some errors/info to be reported use printk and the rest pr_fmt(). This patch makes the complete error/event logging uniform. Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/powernv/opal-elog.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git

[PATCH V4 1/3] powerpc/powernv: Push critical error logs to FSP

2014-02-03 Thread Deepthi Dharwar
This patch provides error logging interfaces to report critical powernv error logs to FSP. All the required information to dump the error is collected at POWERNV level through error log interfaces and then pushed on to FSP. Signed-off-by: Deepthi Dharwar --- arch/powerpc/include/asm/opal.h

[PATCH V4 0/3] powerpc/powernv: Error logging interfaces

2014-02-03 Thread Deepthi Dharwar
. * Minor typo fix and use of pr_err/pr_fmt to log errors. Deepthi Dharwar (3): powernv: Push critical error logs to FSP powernv: Correct spell error in opal-elog.c powernv: Have uniform logging of errors in opal-elog.c arch/powerpc/include/asm/opal.h| 36

[PATCH V4 2/3] powerpc/powernv: Correct spell error in opal-elog.c

2014-02-03 Thread Deepthi Dharwar
Correct spell error in opal-elog.c Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/powernv/opal-elog.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powernv/opal-elog.c b/arch/powerpc/platforms/powernv/opal-elog.c index 0a03b60..13874b1

[PATCH V4 3/3] powerpc/powernv: Have uniform logging of errors in opal-elog.c

2014-02-03 Thread Deepthi Dharwar
Currently some errors/info to be reported use printk and the rest pr_fmt(). This patch makes the complete error logging uniform. Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/powernv/opal-elog.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a

[PATCH V5 0/3] powerpc/powernv: Error logging interfaces

2014-02-04 Thread Deepthi Dharwar
comments from V2 have been addressed includes comment formats, changing naming conventions and incorporated error handling of the buffers. * Minor typo fix and use of pr_err/pr_fmt to log errors. Deepthi Dharwar (3): powernv: Push critical error logs to FSP powernv: Correct spell

  1   2   >