Re: [PATCH 8/8] msm: scm: Move the scm driver to drivers/soc/qcom

2014-08-04 Thread Lina Iyer
On Mon, 4 Aug 2014, Stephen Boyd wrote: Architectural changes in the ARM Linux kernel tree mandate the eventual removal of the mach-* directories. Move the scm driver to drivers/soc/qcom and the scm header to include/soc/qcom to support that removal. Signed-off-by: Stephen Boyd

Re: [PATCH 8/8] msm: scm: Move the scm driver to drivers/soc/qcom

2014-08-05 Thread Lina Iyer
On Tue, 5 Aug 2014, Bjorn Andersson wrote: On Mon, Aug 4, 2014 at 9:07 PM, Lina Iyer lina.i...@linaro.org wrote: On Mon, 4 Aug 2014, Stephen Boyd wrote: [...] Could we move scm-boot.c as well to drivers/soc/qcom and scm-boot.h to include/soc/qcom ? Yes, we can do

[RFC] [PATCH 00/13] QCOM: 8087 CPUIDLE driver

2014-08-07 Thread Lina Iyer
. The drivers should be fairly extensible to 8084. Thanks Lina Lina Iyer (13): msm: scm: Move scm-boot files to drivers/soc and include/soc msm: scm: Add SCM warmboot flags for quad core targets. qcom: spm: Add Subsystem Power Manager driver for QCOM chipsets arm: dts: qcom: Add SPM device

[RFC] [PATCH 05/13] qcom: msm-pm: Add cpu low power mode functions

2014-08-07 Thread Lina Iyer
Add interface layer to abstract and handle hardware specific functionality for executing various cpu low power modes in QCOM chipsets. Signed-off-by: Venkat Devarasetty vdeva...@codeaurora.org Signed-off-by: Mahesh Sivasubramanian msiva...@codeaurora.org Signed-off-by: Lina Iyer lina.i

[RFC] [PATCH 06/13] qcom: msm-pm: Add support for hotplug and secondary startup

2014-08-07 Thread Lina Iyer
Add hotplug and secondary startup entry point to cold or warm boot secondary cpus. Signed-off-by: Mahesh Sivasubramanian msiva...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- drivers/soc/qcom/msm-pm.c | 36 include/soc/qcom/pm.h | 4

[RFC] [PATCH 13/13] qcom: cpuidle: Config option to enable QCOM cpuidle driver

2014-08-07 Thread Lina Iyer
Allow cpuidle framework to determine the C-State of the QCOM cpus. Signed-off-by: Lina Iyer lina.i...@linaro.org --- drivers/cpuidle/Kconfig.arm | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm index 38cff69..ad52605 100644

[RFC] [PATCH 09/13] soc: qcom: Add QCOM Power management config

2014-08-07 Thread Lina Iyer
Allow power management drivers for QCOM chipsets. Signed-off-by: Lina Iyer lina.i...@linaro.org --- drivers/soc/qcom/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 7dcd554..1569410 100644 --- a/drivers/soc/qcom

[RFC] [PATCH 04/13] arm: dts: qcom: Add SPM device bindings for 8974

2014-08-07 Thread Lina Iyer
retention (clock-gating). Signed-off-by: Praveen Chidambaram pchid...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 118 + arch/arm/boot/dts/qcom-msm8974.dtsi| 2 + 2 files changed, 120 insertions

[RFC] [PATCH 10/13] qcom: platsmp: Enable deeper idle states for hotplug

2014-08-07 Thread Lina Iyer
a sub-system power manager to control the logic around the core. Pass the hotplug call over to SoC idle interface driver to allow for the core and the peripheral logic to enter low power when hotplugged. Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/mach-qcom/platsmp.c | 22

[RFC] [PATCH 08/13] arm: dts: qcom: Add device binding for sleep status

2014-08-07 Thread Lina Iyer
Sivasubramanian msiva...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-pm.dtsi b/arch/arm/boot/dts/qcom-msm8974-pm.dtsi index 8eb934e..8fe00f1 100644

[RFC] [PATCH 07/13] qcom: sleep-status: Add ability to recognize cpu power down state

2014-08-07 Thread Lina Iyer
msiva...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- .../bindings/arm/msm/qcom,cpu-sleep-status.txt | 41 + drivers/soc/qcom/Makefile | 2 +- drivers/soc/qcom/sleep-status.c| 178 + include/soc/qcom

[RFC] [PATCH 11/13] qcom: cpuidle: Add cpuidle driver for QCOM cpus

2014-08-07 Thread Lina Iyer
Add cpuidle driver interface to allow cpus to go into C-States. Signed-off-by: Lina Iyer lina.i...@linaro.org --- .../devicetree/bindings/arm/msm/qcom,cpuidle.txt | 73 +++ drivers/cpuidle/Makefile | 1 + drivers/cpuidle/cpuidle-qcom.c

[RFC] [PATCH 12/13] qcom: cpuidle: Add cpuidle device nodes for 8974 chipset

2014-08-07 Thread Lina Iyer
Add C-States and the respective residencies supported by the QCOM 8974 chipset. Current support is for WFI (clock gating) and Standlone-PC (power down of the core). Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 21 + 1 file changed

[RFC] [PATCH 02/13] msm: scm: Add SCM warmboot flags for quad core targets.

2014-08-07 Thread Lina Iyer
Quad core targets like APQ8074, 78064, 8084 need SCM support set up warm boot addresses in the Secure Monitor. Extend the SCM flags to support warmboot addresses for seconday cores. Signed-off-by: Lina Iyer lina.i...@linaro.org --- include/soc/qcom/scm-boot.h | 3 +++ 1 file changed, 3

[RFC] [PATCH 03/13] qcom: spm: Add Subsystem Power Manager driver for QCOM chipsets

2014-08-07 Thread Lina Iyer
...@codeaurora.org Signed-off-by: Murali Nalajala mnala...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- .../devicetree/bindings/arm/msm/spm-v2.txt | 104 +++ drivers/soc/qcom/Makefile | 2 + drivers/soc/qcom/spm.c | 559

[RFC] [PATCH 01/13] msm: scm: Move scm-boot files to drivers/soc and include/soc

2014-08-07 Thread Lina Iyer
Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/mach-qcom/Makefile | 1 - drivers/soc/qcom/Makefile | 2 +- {arch/arm/mach-qcom = drivers/soc/qcom}/scm-boot.c | 4 ++-- {arch/arm/mach-qcom = include/soc/qcom}/scm-boot.h | 0 4 files

[RFC] [PATCH 05/13] qcom: msm-pm: Add cpu low power mode functions

2014-08-07 Thread Lina Iyer
Add interface layer to abstract and handle hardware specific functionality for executing various cpu low power modes in QCOM chipsets. Signed-off-by: Venkat Devarasetty vdeva...@codeaurora.org Signed-off-by: Mahesh Sivasubramanian msiva...@codeaurora.org Signed-off-by: Lina Iyer lina.i

[RFC] [PATCH 03/13] qcom: spm: Add Subsystem Power Manager driver for QCOM chipsets

2014-08-07 Thread Lina Iyer
...@codeaurora.org Signed-off-by: Murali Nalajala mnala...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- .../devicetree/bindings/arm/msm/spm-v2.txt | 104 +++ drivers/soc/qcom/Makefile | 2 + drivers/soc/qcom/spm.c | 559

[RFC] [PATCH 10/13] qcom: platsmp: Enable deeper idle states for hotplug

2014-08-07 Thread Lina Iyer
a sub-system power manager to control the logic around the core. Pass the hotplug call over to SoC idle interface driver to allow for the core and the peripheral logic to enter low power when hotplugged. Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/mach-qcom/platsmp.c | 22

[RFC] [PATCH 02/13] msm: scm: Add SCM warmboot flags for quad core targets.

2014-08-07 Thread Lina Iyer
Quad core targets like APQ8074, 78064, 8084 need SCM support set up warm boot addresses in the Secure Monitor. Extend the SCM flags to support warmboot addresses for seconday cores. Signed-off-by: Lina Iyer lina.i...@linaro.org --- include/soc/qcom/scm-boot.h | 3 +++ 1 file changed, 3

[RFC] [PATCH 07/13] qcom: sleep-status: Add ability to recognize cpu power down state

2014-08-07 Thread Lina Iyer
msiva...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- .../bindings/arm/msm/qcom,cpu-sleep-status.txt | 41 + drivers/soc/qcom/Makefile | 2 +- drivers/soc/qcom/sleep-status.c| 178 + include/soc/qcom

[RFC] [PATCH 06/13] qcom: msm-pm: Add support for hotplug and secondary startup

2014-08-07 Thread Lina Iyer
Add hotplug and secondary startup entry point to cold or warm boot secondary cpus. Signed-off-by: Mahesh Sivasubramanian msiva...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- drivers/soc/qcom/msm-pm.c | 36 include/soc/qcom/pm.h | 4

[RFC] [PATCH 12/13] qcom: cpuidle: Add cpuidle device nodes for 8974 chipset

2014-08-07 Thread Lina Iyer
Add C-States and the respective residencies supported by the QCOM 8974 chipset. Current support is for WFI (clock gating) and Standlone-PC (power down of the core). Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 21 + 1 file changed

[RFC] [PATCH 01/13] msm: scm: Move scm-boot files to drivers/soc and include/soc

2014-08-07 Thread Lina Iyer
Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/mach-qcom/Makefile | 1 - drivers/soc/qcom/Makefile | 2 +- {arch/arm/mach-qcom = drivers/soc/qcom}/scm-boot.c | 4 ++-- {arch/arm/mach-qcom = include/soc/qcom}/scm-boot.h | 0 4 files

[RFC] [PATCH 04/13] arm: dts: qcom: Add SPM device bindings for 8974

2014-08-07 Thread Lina Iyer
retention (clock-gating). Signed-off-by: Praveen Chidambaram pchid...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 118 + arch/arm/boot/dts/qcom-msm8974.dtsi| 2 + 2 files changed, 120 insertions

[RFC] [PATCH 09/13] soc: qcom: Add QCOM Power management config

2014-08-07 Thread Lina Iyer
Allow power management drivers for QCOM chipsets. Signed-off-by: Lina Iyer lina.i...@linaro.org --- drivers/soc/qcom/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 7dcd554..1569410 100644 --- a/drivers/soc/qcom

[RFC] [PATCH 08/13] arm: dts: qcom: Add device binding for sleep status

2014-08-07 Thread Lina Iyer
Sivasubramanian msiva...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-pm.dtsi b/arch/arm/boot/dts/qcom-msm8974-pm.dtsi index 8eb934e..8fe00f1 100644

[RFC] [PATCH 00/13] QCOM: 8074 CPUIDLE driver

2014-08-07 Thread Lina Iyer
. The drivers should be fairly extensible to 8084. Thanks Lina Lina Iyer (13): msm: scm: Move scm-boot files to drivers/soc and include/soc msm: scm: Add SCM warmboot flags for quad core targets. qcom: spm: Add Subsystem Power Manager driver for QCOM chipsets arm: dts: qcom: Add SPM device

[RFC] [PATCH 11/13] qcom: cpuidle: Add cpuidle driver for QCOM cpus

2014-08-07 Thread Lina Iyer
Add cpuidle driver interface to allow cpus to go into C-States. Signed-off-by: Lina Iyer lina.i...@linaro.org --- .../devicetree/bindings/arm/msm/qcom,cpuidle.txt | 73 +++ drivers/cpuidle/Makefile | 1 + drivers/cpuidle/cpuidle-qcom.c

Re: [RFC] [PATCH 03/13] qcom: spm: Add Subsystem Power Manager driver for QCOM chipsets

2014-08-08 Thread Lina Iyer
On Fri, 8 Aug 2014, Pramod Gurav wrote: Hello Lina, Sorry for spaming, Should have applied all of them. Glad it worked out. Lina -- To unsubscribe from this list: send the line unsubscribe linux-arm-msm in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [RFC] [PATCH 00/13] QCOM: 8087 CPUIDLE driver

2014-08-08 Thread Lina Iyer
Sorry for spamming, please ignore this series. The email address I used was incorrect and also the subject. I apologize. Lina On Thu, 7 Aug 2014, Lina Iyer wrote: Hello everybody, Here are the set of patches for enabling cpuidle driver for 8074 based targets. 8074 like any ARM SoC

Re: [RFC] [PATCH 01/13] msm: scm: Move scm-boot files to drivers/soc and include/soc

2014-08-08 Thread Lina Iyer
On Fri, 8 Aug 2014, Pramod Gurav wrote: Hi Lina, There remain references to scm-boot.h in platsmp.c. Can we replace them with soc/qcom/scm-boot.h in this same patch so that build does not break with only applying this patch. I see these changes in qcom: platsmp: Enable deeper idle

Re: [RFC] [PATCH 03/13] qcom: spm: Add Subsystem Power Manager driver for QCOM chipsets

2014-08-08 Thread Lina Iyer
On Fri, Aug 08, 2014 at 11:16:04AM -0500, Kumar Gala wrote: On Aug 7, 2014, at 11:05 PM, Lina Iyer lina.i...@linaro.org wrote: +Required properties + +- compatible: qcom,spm-v2 +- reg: The physical address and the size of the SPM's memory mapped registers +- qcom,cpu: phandle

Re: [RFC] [PATCH 02/13] msm: scm: Add SCM warmboot flags for quad core targets.

2014-08-08 Thread Lina Iyer
On Fri, Aug 08, 2014 at 11:19:07AM -0500, Kumar Gala wrote: On Aug 7, 2014, at 11:00 PM, Lina Iyer lina.i...@linaro.org wrote: Quad core targets like APQ8074, 78064, 8084 need SCM support set up warm boot addresses in the Secure Monitor. Extend the SCM flags to support warmboot addresses

Re: [RFC] [PATCH 03/13] qcom: spm: Add Subsystem Power Manager driver for QCOM chipsets

2014-08-11 Thread Lina Iyer
On Mon, Aug 11, 2014 at 02:54:35PM -0500, Kumar Gala wrote: On Aug 8, 2014, at 4:53 PM, Lina Iyer lina.i...@linaro.org wrote: On Fri, Aug 08, 2014 at 11:16:04AM -0500, Kumar Gala wrote: On Aug 7, 2014, at 11:05 PM, Lina Iyer lina.i...@linaro.org wrote: Why aren’t we just using cpu phandles

[PATCH v2 01/10] msm: scm: Move scm-boot files to drivers/soc and include/soc

2014-08-12 Thread Lina Iyer
Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/mach-qcom/Makefile | 1 - arch/arm/mach-qcom/platsmp.c| 2 +- drivers/soc/qcom/Makefile | 2 +- {arch/arm/mach-qcom = drivers/soc/qcom}/scm-boot.c | 4 ++-- {arch

[PATCH v2 08/10] qcom: cpuidle: Add cpuidle driver for QCOM cpus

2014-08-12 Thread Lina Iyer
Add cpuidle driver interface to allow cpus to go into C-States. Signed-off-by: Lina Iyer lina.i...@linaro.org --- .../devicetree/bindings/arm/msm/qcom,cpuidle.txt | 73 +++ drivers/cpuidle/Makefile | 1 + drivers/cpuidle/cpuidle-qcom.c

[PATCH v2 10/10] qcom: cpuidle: Add cpuidle device nodes for 8974 chipset

2014-08-12 Thread Lina Iyer
Add C-States and the respective residencies supported by the QCOM 8974 chipset. Current support is for WFI (clock gating) and Standlone-PC (power down of the core). Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 21 + 1 file changed

[PATCH v2 07/10] qcom: msm-pm: Add cpu low power mode functions

2014-08-12 Thread Lina Iyer
Add interface layer to abstract and handle hardware specific functionality for executing various cpu low power modes in QCOM chipsets. Signed-off-by: Venkat Devarasetty vdeva...@codeaurora.org Signed-off-by: Mahesh Sivasubramanian msiva...@codeaurora.org Signed-off-by: Lina Iyer lina.i

[PATCH v2 09/10] qcom: cpuidle: Config option to enable QCOM cpuidle driver

2014-08-12 Thread Lina Iyer
Allow cpuidle framework to determine the C-State of the QCOM cpus. Signed-off-by: Lina Iyer lina.i...@linaro.org --- drivers/cpuidle/Kconfig.arm | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm index 38cff69..ad52605 100644

[PATCH v2 00/10] QCOM 8074 cpuidle driver

2014-08-12 Thread Lina Iyer
only the core independent of the other cores and caches. Thanks Lina Lina Iyer (10): msm: scm: Move scm-boot files to drivers/soc and include/soc msm: scm: Add SCM warmboot flags for quad core targets. qcom: spm: Add Subsystem Power Manager (SPM) driver for QCOM chipsets soc: qcom: Add QCOM

[PATCH v2 04/10] soc: qcom: Add QCOM Power management config

2014-08-12 Thread Lina Iyer
Allow power management drivers for QCOM chipsets. Signed-off-by: Lina Iyer lina.i...@linaro.org --- drivers/soc/qcom/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 7dcd554..1569410 100644 --- a/drivers/soc/qcom

[PATCH v2 06/10] arm: dts: qcom: Add SPM device bindings for 8974

2014-08-12 Thread Lina Iyer
retention (clock-gating). Signed-off-by: Praveen Chidambaram pchid...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 91 ++ arch/arm/boot/dts/qcom-msm8974.dtsi| 2 + 2 files changed, 93 insertions

[PATCH v2 03/10] qcom: spm: Add Subsystem Power Manager (SPM) driver for QCOM chipsets

2014-08-12 Thread Lina Iyer
...@codeaurora.org Signed-off-by: Murali Nalajala mnala...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- .../devicetree/bindings/arm/msm/spm-v2.txt | 62 ++ drivers/soc/qcom/Makefile | 2 + drivers/soc/qcom/spm-devices.c | 703

[PATCH v2 05/10] arm: qcom-msm8974: Add CPU phandles to CPU definitions

2014-08-12 Thread Lina Iyer
Add CPU phandle labels for all Krait CPUS. Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom-msm8974.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 69dca2a

[PATCH v2 02/10] msm: scm: Add SCM warmboot flags for quad core targets.

2014-08-12 Thread Lina Iyer
Quad core targets like APQ8074, APQ8064, APQ8084 need SCM support set up warm boot addresses in the Secure Monitor. Extend the SCM flags to support warmboot addresses for seconday cores. Signed-off-by: Lina Iyer lina.i...@linaro.org --- include/soc/qcom/scm-boot.h | 3 +++ 1 file changed, 3

Re: [PATCH v2 00/10] QCOM 8074 cpuidle driver

2014-08-12 Thread Lina Iyer
On Tue, Aug 12, 2014 at 06:52:02PM -0700, Stephen Boyd wrote: On 08/12/14 12:43, Lina Iyer wrote: This is version #2 of the patches for cpuidle driver and its dependencies. Changes from version #1/RFC: - Remove hotplug from the patch series. Will submit it seprately. - Fix SPM drivers per

Re: [PATCH v2 03/10] qcom: spm: Add Subsystem Power Manager (SPM) driver for QCOM chipsets

2014-08-13 Thread Lina Iyer
On Wed, Aug 13, 2014 at 12:49:23PM +0200, Daniel Lezcano wrote: On 08/12/2014 09:43 PM, Lina Iyer wrote: Qualcomm chipsets use an separate h/w block to control the logic around the processor cores (cpu and L2). The SPM h/w block regulates power to the cores and controls the power when the core

Re: [PATCH v2 08/10] qcom: cpuidle: Add cpuidle driver for QCOM cpus

2014-08-13 Thread Lina Iyer
On Wed, Aug 13, 2014 at 01:22:09PM +0200, Daniel Lezcano wrote: On 08/12/2014 09:43 PM, Lina Iyer wrote: Add cpuidle driver interface to allow cpus to go into C-States. Signed-off-by: Lina Iyer lina.i...@linaro.org Hi Lina, I think you should based this driver on top of Lorenzo's work. Cc

Re: [PATCH v2 07/10] qcom: msm-pm: Add cpu low power mode functions

2014-08-13 Thread Lina Iyer
On Wed, Aug 13, 2014 at 01:18:01PM +0200, Daniel Lezcano wrote: On 08/12/2014 09:43 PM, Lina Iyer wrote: Add interface layer to abstract and handle hardware specific functionality for executing various cpu low power modes in QCOM chipsets. Signed-off-by: Venkat Devarasetty vdeva

Re: [PATCH v2 07/10] qcom: msm-pm: Add cpu low power mode functions

2014-08-14 Thread Lina Iyer
On Thu, Aug 14, 2014 at 04:24:10PM +0200, Daniel Lezcano wrote: On 08/13/2014 04:16 PM, Lina Iyer wrote: On Wed, Aug 13, 2014 at 01:18:01PM +0200, Daniel Lezcano wrote: On 08/12/2014 09:43 PM, Lina Iyer wrote: +static bool msm_pm_retention(bool from_idle) +{ +int ret = 0; + +ret

Re: [PATCH v2 03/10] qcom: spm: Add Subsystem Power Manager (SPM) driver for QCOM chipsets

2014-08-14 Thread Lina Iyer
On Thu, Aug 14, 2014 at 06:31:09PM +0530, Pramod Gurav wrote: On Wednesday 13 August 2014 01:13 AM, Lina Iyer wrote: Qualcomm chipsets use an separate h/w block to control the logic around the processor cores (cpu and L2). The SPM h/w block regulates power to the cores and controls the power

Re: [PATCH v2 03/10] qcom: spm: Add Subsystem Power Manager (SPM) driver for QCOM chipsets

2014-08-14 Thread Lina Iyer
On Thu, Aug 14, 2014 at 10:16:15AM -0500, Kumar Gala wrote: On Aug 12, 2014, at 2:43 PM, Lina Iyer lina.i...@linaro.org wrote: Qualcomm chipsets use an separate h/w block to control the logic around the processor cores (cpu and L2). The SPM h/w block regulates power to the cores and controls

Re: [PATCH v2 03/10] qcom: spm: Add Subsystem Power Manager (SPM) driver for QCOM chipsets

2014-08-14 Thread Lina Iyer
On Thu, Aug 14, 2014 at 11:09:48AM -0500, Kumar Gala wrote: On Aug 12, 2014, at 2:43 PM, Lina Iyer lina.i...@linaro.org wrote: diff --git a/Documentation/devicetree/bindings/arm/msm/spm-v2.txt b/Documentation/devicetree/bindings/arm/msm/spm-v2.txt new file mode 100644 index 000..3130f4b

Re: [PATCH v2 07/10] qcom: msm-pm: Add cpu low power mode functions

2014-08-14 Thread Lina Iyer
On Thu, Aug 14, 2014 at 06:11:43PM +0200, Daniel Lezcano wrote: On 08/13/2014 04:16 PM, Lina Iyer wrote: On Wed, Aug 13, 2014 at 01:18:01PM +0200, Daniel Lezcano wrote: On 08/12/2014 09:43 PM, Lina Iyer wrote: Add interface layer to abstract and handle hardware specific functionality

Re: [PATCH v2 07/10] qcom: msm-pm: Add cpu low power mode functions

2014-08-14 Thread Lina Iyer
On Fri, Aug 15, 2014 at 02:01:47AM +0200, Daniel Lezcano wrote: On 08/14/2014 09:22 PM, Lina Iyer wrote: On Thu, Aug 14, 2014 at 06:11:43PM +0200, Daniel Lezcano wrote: On 08/13/2014 04:16 PM, Lina Iyer wrote: On Wed, Aug 13, 2014 at 01:18:01PM +0200, Daniel Lezcano wrote: On 08/12/2014 09

Re: [PATCH v2 03/10] qcom: spm: Add Subsystem Power Manager (SPM) driver for QCOM chipsets

2014-08-14 Thread Lina Iyer
On Thu, Aug 14, 2014 at 11:41:39AM -0500, Kumar Gala wrote: On Aug 14, 2014, at 11:18 AM, Lina Iyer lina.i...@linaro.org wrote: On Thu, Aug 14, 2014 at 11:09:48AM -0500, Kumar Gala wrote: On Aug 12, 2014, at 2:43 PM, Lina Iyer lina.i...@linaro.org wrote: diff --git a/Documentation

Re: [PATCH v2 03/10] qcom: spm: Add Subsystem Power Manager (SPM) driver for QCOM chipsets

2014-08-15 Thread Lina Iyer
On Fri, Aug 15, 2014 at 08:42:17AM -0500, Kumar Gala wrote: On Aug 14, 2014, at 11:18 PM, Lina Iyer lina.i...@linaro.org wrote: On Thu, Aug 14, 2014 at 11:41:39AM -0500, Kumar Gala wrote: On Aug 14, 2014, at 11:18 AM, Lina Iyer lina.i...@linaro.org wrote: On Thu, Aug 14, 2014 at 11:09

[PATCH v3 1/8] msm: scm: Move scm-boot files to drivers/soc and include/soc

2014-08-18 Thread Lina Iyer
Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/mach-qcom/Makefile | 1 - arch/arm/mach-qcom/platsmp.c| 2 +- drivers/soc/qcom/Makefile | 2 +- {arch/arm/mach-qcom = drivers/soc/qcom}/scm-boot.c | 4 ++-- {arch

[PATCH v3 3/8] qcom: spm: Add Subsystem Power Manager driver (SAW2)

2014-08-18 Thread Lina Iyer
of low power mode sequence and brings the core out of low power mode. Allow drivers to configure the idle mode for the cores in the SPM start address register. Signed-off-by: Praveen Chidambaram pchid...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- drivers/soc/qcom/Makefile

[PATCH v3 4/8] qcom: spm-devices: Add SPM device manager for the SoC

2014-08-18 Thread Lina Iyer
is picked up from the DTS. The hardware configuration of each of the SPM is handled by the spm.c driver. Signed-off-by: Praveen Chidamabram pchid...@codeaurora.org Signed-off-by: Murali Nalajala mnala...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- Documentation/devicetree/bindings

[PATCH v3 6/8] qcom: msm-pm: Add cpu low power mode functions

2014-08-18 Thread Lina Iyer
Add interface layer to abstract and handle hardware specific functionality for executing various cpu low power modes in QCOM chipsets. Signed-off-by: Venkat Devarasetty vdeva...@codeaurora.org Signed-off-by: Mahesh Sivasubramanian msiva...@codeaurora.org Signed-off-by: Lina Iyer lina.i

Re: [PATCH v3 4/8] qcom: spm-devices: Add SPM device manager for the SoC

2014-08-19 Thread Lina Iyer
On Tue, Aug 19, 2014 at 02:59:56PM +0530, Pramod Gurav wrote: Hi Lina, On Tuesday 19 August 2014 03:53 AM, Lina Iyer wrote: + +config QCOM_PM + tristate Qualcomm Power Management This does not compile as a module. making CONFIG_QCOM_PM=m causing redefinition of function

Re: [PATCH v3 7/8] qcom: cpuidle: Add cpuidle driver for QCOM cpus

2014-08-19 Thread Lina Iyer
On Tue, Aug 19, 2014 at 01:11:43PM +0530, Pramod Gurav wrote: Hi Lina, Compilation breaks while I try to compile these driver. Find below the comments. On Tuesday 19 August 2014 03:53 AM, Lina Iyer wrote: Add cpuidle driver interface to allow cpus to go into C-States. Use the cpuidle DT

Re: [PATCH v3 3/8] qcom: spm: Add Subsystem Power Manager driver (SAW2)

2014-08-19 Thread Lina Iyer
On Tue, Aug 19, 2014 at 09:07:51AM -0500, Kumar Gala wrote: On Aug 18, 2014, at 5:23 PM, Lina Iyer lina.i...@linaro.org wrote: SPM is a hardware block that controls the peripheral logic surrounding the application cores (cpu/l$). When the core executes WFI instruction, the SPM takes over

Re: [PATCH v3 0/8] QCOM 8074 cpuidle driver

2014-08-19 Thread Lina Iyer
On Mon, Aug 18, 2014 at 04:23:26PM -0600, Lina Iyer wrote: Changes since v2: [ https://www.mail-archive.com/linux-arm-msm@vger.kernel.org/msg10148.html ] - Prune all the drivers to support basic WFI and power down cpuidle functionality. Remove debug code. - Integrate KConfig changes

[PATCH v4 0/8] QCOM 8074 cpuidle driver

2014-08-19 Thread Lina Iyer
framework for cpuidle drivers. - Provide device configuration for 8074 SoC. Current support is for WFI and standalone power collapse, which powers only the core independent of the other cores and caches. Thanks, Lina Lina Iyer (8): msm: scm: Move scm-boot files to drivers/soc and include/soc

[PATCH v4 8/8] arm: dts: qcom: Add idle states device nodes for 8974

2014-08-19 Thread Lina Iyer
Add allowable C-States for each cpu using the cpu-idle-states node. ARM spec dictates WFI as the default idle state at 0. Support standalone power collapse (power down that does not affect any SoC idle states) for each cpu. Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom

[PATCH v4 5/8] arm: dts: qcom: Add SPM device bindings for 8974

2014-08-19 Thread Lina Iyer
retention (clock-gating). Signed-off-by: Praveen Chidambaram pchid...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 69 ++ arch/arm/boot/dts/qcom-msm8974.dtsi| 10 +++-- 2 files changed, 75 insertions

[PATCH v4 4/8] qcom: spm-devices: Add SPM device manager for the SoC

2014-08-19 Thread Lina Iyer
is picked up from the DTS. The hardware configuration of each of the SPM is handled by the spm.c driver. Signed-off-by: Praveen Chidamabram pchid...@codeaurora.org Signed-off-by: Murali Nalajala mnala...@codeaurora.org Signed-off-by: Lina Iyer lina.i...@linaro.org --- Documentation/devicetree/bindings

[PATCH v4 2/8] msm: scm: Add SCM warmboot flags for quad core targets.

2014-08-19 Thread Lina Iyer
Quad core targets like APQ8074, APQ8064, APQ8084 need SCM support set up warm boot addresses in the Secure Monitor. Extend the SCM flags to support warmboot addresses for seconday cores. Signed-off-by: Lina Iyer lina.i...@linaro.org --- include/soc/qcom/scm-boot.h | 2 ++ 1 file changed, 2

[PATCH v4 6/8] qcom: msm-pm: Add cpu low power mode functions

2014-08-19 Thread Lina Iyer
Add interface layer to abstract and handle hardware specific functionality for executing various cpu low power modes in QCOM chipsets. Signed-off-by: Venkat Devarasetty vdeva...@codeaurora.org Signed-off-by: Mahesh Sivasubramanian msiva...@codeaurora.org Signed-off-by: Lina Iyer lina.i

[PATCH v4 7/8] qcom: cpuidle: Add cpuidle driver for QCOM cpus

2014-08-19 Thread Lina Iyer
Add cpuidle driver interface to allow cpus to go into C-States. Use the cpuidle DT interfacecommon across ARM architectures to provide the C-State information to the cpuidle framework. Signed-off-by: Lina Iyer lina.i...@linaro.org --- drivers/cpuidle/Kconfig.arm| 7 +++ drivers/cpuidle

Re: [PATCH v4 7/8] qcom: cpuidle: Add cpuidle driver for QCOM cpus

2014-08-21 Thread Lina Iyer
On Thu, Aug 21, 2014 at 03:24:44AM +0200, Daniel Lezcano wrote: On 08/20/2014 12:15 AM, Lina Iyer wrote: Add cpuidle driver interface to allow cpus to go into C-States. Use the cpuidle DT interfacecommon across ARM architectures to provide Thanks, will fix

Re: [PATCH v4 3/8] qcom: spm: Add Subsystem Power Manager driver (SAW2)

2014-08-21 Thread Lina Iyer
On Wed, Aug 20, 2014 at 05:25:49PM -0700, Stephen Boyd wrote: On 08/19/14 20:24, Lina Iyer wrote: On Tue, Aug 19, 2014 at 07:01:53PM -0700, Stephen Boyd wrote: On 08/19/14 15:15, Lina Iyer wrote: SPM is a hardware block that controls the peripheral logic surrounding the application cores (cpu

Re: [PATCH v4 7/8] qcom: cpuidle: Add cpuidle driver for QCOM cpus

2014-08-22 Thread Lina Iyer
On Thu, Aug 21, 2014 at 03:24:44AM +0200, Daniel Lezcano wrote: On 08/20/2014 12:15 AM, Lina Iyer wrote: Add cpuidle driver interface to allow cpus to go into C-States. Use the cpuidle DT interfacecommon across ARM architectures to provide the C-State

Re: [PATCH v4 4/8] qcom: spm-devices: Add SPM device manager for the SoC

2014-08-25 Thread Lina Iyer
On Mon, Aug 25, 2014 at 04:40:33PM -0700, Stephen Boyd wrote: On 08/19/14 15:15, Lina Iyer wrote: diff --git a/Documentation/devicetree/bindings/arm/msm/spm.txt b/Documentation/devicetree/bindings/arm/msm/spm.txt new file mode 100644 index 000..318e024 --- /dev/null +++ b/Documentation

Re: [PATCH v4 4/8] qcom: spm-devices: Add SPM device manager for the SoC

2014-08-26 Thread Lina Iyer
On Mon, Aug 25, 2014 at 07:17:15PM -0700, Stephen Boyd wrote: On 08/25/14 17:31, Lina Iyer wrote: On Mon, Aug 25, 2014 at 04:40:33PM -0700, Stephen Boyd wrote: On 08/19/14 15:15, Lina Iyer wrote: diff --git a/Documentation/devicetree/bindings/arm/msm/spm.txt b/Documentation/devicetree

Re: [PATCH v4 4/8] qcom: spm-devices: Add SPM device manager for the SoC

2014-08-27 Thread Lina Iyer
On Wed, Aug 27, 2014 at 09:00:40AM -0500, Kumar Gala wrote: On Aug 19, 2014, at 5:15 PM, Lina Iyer lina.i...@linaro.org wrote: Each cpu or an L2$ has an SPM device. They are identical instances of the same SPM block. This allows for multiple instances be grouped and managed collectively. spm

Re: [PATCH v3 1/8] msm: scm: Move scm-boot files to drivers/soc and include/soc

2014-08-27 Thread Lina Iyer
On Wed, Aug 27, 2014 at 10:18:24AM -0700, Kevin Hilman wrote: Lina Iyer lina.i...@linaro.org writes: Signed-off-by: Lina Iyer lina.i...@linaro.org Why the move? It looks like scm-boot.c still calls into the main scm_call() stuff that still lives under arch/arm/mach-qcom, and not in arm64

Re: [PATCH v3 1/8] msm: scm: Move scm-boot files to drivers/soc and include/soc

2014-08-27 Thread Lina Iyer
On Wed, Aug 27, 2014 at 01:24:44PM -0700, Kevin Hilman wrote: Lina Iyer lina.i...@linaro.org writes: On Wed, Aug 27, 2014 at 10:18:24AM -0700, Kevin Hilman wrote: Lina Iyer lina.i...@linaro.org writes: Signed-off-by: Lina Iyer lina.i...@linaro.org Why the move? It looks like scm-boot.c

Re: [PATCH v4 7/8] qcom: cpuidle: Add cpuidle driver for QCOM cpus

2014-08-27 Thread Lina Iyer
On Wed, Aug 27, 2014 at 10:31:26AM -0700, Kevin Hilman wrote: Lina Iyer lina.i...@linaro.org writes: On Thu, Aug 21, 2014 at 03:24:44AM +0200, Daniel Lezcano wrote: On 08/20/2014 12:15 AM, Lina Iyer wrote: [...] So IIUC, if you specify the index 1, that means the state[0

[PATCH] msm: scm: Move scm-boot files to drivers/soc and include/soc

2014-09-02 Thread Lina Iyer
Follow the scm.c and move scm-boot files to drivers/soc/qcom. The guidance is to clean files out from mach-qcom and move to drivers/soc area. Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/mach-qcom/Makefile | 1 - arch/arm/mach-qcom/platsmp.c

[PATCH v5 0/7] QCOM 8074 cpuidle driver

2014-09-04 Thread Lina Iyer
for cpuidle drivers. - Provide device configuration for 8074 SoC. Current support is for WFI and standalone power collapse, which powers only the core independent of the other cores and caches. Thanks, Lina Lina Iyer (7): msm: scm: Add SCM warmboot flags for quad core targets. qcom: spm: Add

[PATCH v5 1/7] msm: scm: Add SCM warmboot flags for quad core targets.

2014-09-04 Thread Lina Iyer
Quad core targets like APQ8074, APQ8064, APQ8084 need SCM support set up warm boot addresses in the Secure Monitor. Extend the SCM flags to support warmboot addresses for secondary cores. Signed-off-by: Lina Iyer lina.i...@linaro.org --- include/soc/qcom/scm-boot.h | 2 ++ 1 file changed, 2

[PATCH v5 2/7] qcom: spm: Add Subsystem Power Manager driver (SAW2)

2014-09-04 Thread Lina Iyer
of the sequence jumps the core out of its low power mode. Signed-off-by: Lina Iyer lina.i...@linaro.org [lina: simplify the driver for initial submission, clean up and update commit text] --- drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/spm-drv.h | 69 drivers/soc/qcom/spm.c

[PATCH v5 3/7] qcom: spm-devices: Add SPM device manager for the SoC

2014-09-04 Thread Lina Iyer
of the driver layer. Device configuration of each SPM is picked up from the DTS. The hardware configuration of each of the SPM is handled by the driver (spm.c). Signed-off-by: Lina Iyer lina.i...@linaro.org [lina: simplify the driver for initial submission, clean up and update commit text

[PATCH v5 5/7] qcom: msm-pm: Add cpu low power mode functions

2014-09-04 Thread Lina Iyer
-by: Lina Iyer lina.i...@linaro.org [lina: simplify the driver for an initial submission, add commit text description of idle states] --- drivers/soc/qcom/Makefile | 2 +- drivers/soc/qcom/msm-pm.c | 106 ++ include/soc/qcom/pm.h | 31 ++ 3

[PATCH v5 7/7] arm: dts: qcom: Add idle states device nodes for 8974

2014-09-04 Thread Lina Iyer
Add allowable C-States for each cpu using the cpu-idle-states node. ARM spec dictates WFI as the default idle state at 0. Support standalone power collapse (power down that does not affect any SoC idle states) for each cpu. Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom

[PATCH v5 6/7] qcom: cpuidle: Add cpuidle driver for QCOM cpus

2014-09-04 Thread Lina Iyer
-by: Lina Iyer lina.i...@linaro.org --- .../bindings/arm/msm/qcom,idle-state.txt | 72 ++ drivers/cpuidle/Kconfig.arm| 7 ++ drivers/cpuidle/Makefile | 1 + drivers/cpuidle/cpuidle-qcom.c | 87

[PATCH v5 4/7] arm: dts: qcom: Add SPM device bindings for 8974

2014-09-04 Thread Lina Iyer
-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom-msm8974-pm.dtsi | 69 ++ arch/arm/boot/dts/qcom-msm8974.dtsi| 10 +++-- 2 files changed, 75 insertions(+), 4 deletions(-) create mode 100644 arch/arm/boot/dts/qcom-msm8974-pm.dtsi diff --git a/arch/arm

Re: [PATCH v5 7/7] arm: dts: qcom: Add idle states device nodes for 8974

2014-09-05 Thread Lina Iyer
On Thu, Sep 04 2014 at 16:36 -0600, Lina Iyer wrote: Add allowable C-States for each cpu using the cpu-idle-states node. ARM spec dictates WFI as the default idle state at 0. Support standalone power collapse (power down that does not affect any SoC idle states) for each cpu. Signed-off

Re: [PATCH v5 0/7] QCOM 8074 cpuidle driver

2014-09-11 Thread Lina Iyer
. Yes, Kevin pointed that out. I will address them in the next revision. Thanks Pramod. On Friday 05 September 2014 04:05 AM, Lina Iyer wrote: Changes since v4: [ https://www.mail-archive.com/linux-arm-msm@vger.kernel.org/msg10327.html ] - Update to the v8 of ARM generic idle states patches - Use

[PATCH v6 3/5] qcom: msm-pm: Add cpu low power mode functions

2014-09-23 Thread Lina Iyer
-by: Lina Iyer lina.i...@linaro.org [lina: simplify the driver for an initial submission, add commit text description of idle states] --- drivers/soc/qcom/Makefile | 2 +- drivers/soc/qcom/msm-pm.c | 106 ++ include/soc/qcom/pm.h | 31 ++ 3

[PATCH v6 0/5] QCOM 8074 cpuidle driver

2014-09-23 Thread Lina Iyer
independent of the other cores and caches. Thanks, Lina Lina Iyer (5): qcom: spm: Add Subsystem Power Manager driver arm: dts: qcom: Add SPM device bindings for 8974 qcom: msm-pm: Add cpu low power mode functions qcom: cpuidle: Add cpuidle driver for QCOM cpus arm: dts: qcom: Add idle

[PATCH v6 1/5] qcom: spm: Add Subsystem Power Manager driver

2014-09-23 Thread Lina Iyer
of the sequence jumps the core out of its low power mode. Signed-off-by: Lina Iyer lina.i...@linaro.org [lina: simplify the driver for initial submission, clean up and update commit text] --- Documentation/devicetree/bindings/arm/msm/spm.txt | 43 +++ drivers/soc/qcom/Kconfig

[PATCH v6 4/5] qcom: cpuidle: Add cpuidle driver for QCOM cpus

2014-09-23 Thread Lina Iyer
-by: Lina Iyer lina.i...@linaro.org --- .../bindings/arm/msm/qcom,idle-state.txt | 72 + drivers/cpuidle/Kconfig.arm| 7 ++ drivers/cpuidle/Makefile | 1 + drivers/cpuidle/cpuidle-qcom.c | 89

[PATCH v6 5/5] arm: dts: qcom: Add idle states device nodes for 8974

2014-09-23 Thread Lina Iyer
Add allowable C-States for each cpu using the cpu-idle-states node. ARM spec dictates WFI as the default idle state at 0. Support standalone power collapse (power down that does not affect any SoC idle states) for each cpu. Signed-off-by: Lina Iyer lina.i...@linaro.org --- arch/arm/boot/dts/qcom

Re: [PATCH v6 1/5] qcom: spm: Add Subsystem Power Manager driver

2014-09-23 Thread Lina Iyer
On Tue, Sep 23 2014 at 17:51 -0600, Lina Iyer wrote: Based on work by many authors, available at codeaurora.org SPM is a hardware block that controls the peripheral logic surrounding the application cores (cpu/l$). When the core executes WFI instruction, the SPM takes over the putting the core

Re: [PATCH v6 2/5] arm: dts: qcom: Add SPM device bindings for 8974

2014-09-24 Thread Lina Iyer
On Wed, Sep 24 2014 at 00:14 -0600, Pramod Gurav wrote: Hi Lina, On Wednesday 24 September 2014 05:21 AM, Lina Iyer wrote: Add SPM device bindings for QCOM 8974 based cpus. SPM is the sub-system power manager and controls the logic around the cores (cpu and L2). Each core has an instance

  1   2   3   4   5   >