All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@kernel.org>
To: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Lina Iyer <lina.iyer@linaro.org>,
	"daniel.lezcano@linaro.org" <daniel.lezcano@linaro.org>,
	"sboyd@codeaurora.org" <sboyd@codeaurora.org>,
	"galak@codeaurora.org" <galak@codeaurora.org>,
	"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
	"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"msivasub@codeaurora.org" <msivasub@codeaurora.org>
Subject: Re: [PATCH v7 5/7] qcom: cpuidle: Add cpuidle driver for QCOM cpus
Date: Tue, 30 Sep 2014 10:41:14 -0700	[thread overview]
Message-ID: <7hmw9hypj9.fsf@deeprootsystems.com> (raw)
In-Reply-To: <20140929153154.GF2165@e102568-lin.cambridge.arm.com> (Lorenzo Pieralisi's message of "Mon, 29 Sep 2014 16:31:55 +0100")

Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> writes:

> Hi Lina,
>
> On Sat, Sep 27, 2014 at 01:58:13AM +0100, Lina Iyer wrote:
>> Add cpuidle driver interface to allow cpus to go into C-States. Use the
>> cpuidle DT interface common across ARM architectures to provide the
>> C-State information to the cpuidle framework.
>> 
>> Supported modes at this time are clock gating (wfi) and cpu power down
>> (Standalone PC or spc).
>> 
>> Signed-off-by: Lina Iyer <lina.iyer@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 ++++++++++++++++++++++
>>  4 files changed, 169 insertions(+)
>>  create mode 100644 Documentation/devicetree/bindings/arm/msm/qcom,idle-state.txt
>>  create mode 100644 drivers/cpuidle/cpuidle-qcom.c
>> 
>> diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,idle-state.txt b/Documentation/devicetree/bindings/arm/msm/qcom,idle-state.txt
>> new file mode 100644
>> index 0000000..47095b9
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/arm/msm/qcom,idle-state.txt
>> @@ -0,0 +1,72 @@
>> +QCOM Idle States for cpuidle driver
>> +
>> +ARM provides idle-state node to define the cpuidle states, as defined in [1].
>> +cpuidle-qcom is the cpuidle driver for Qualcomm SoCs and uses these idle
>> +states. Idle states have different enter/exit latency and residency values.
>> +The idle states supported by the QCOM SoC are defined as -
>> +
>> +    * WFI
>> +    * Retention
>> +    * Standalone Power Collapse (Standalone PC or SPC)
>> +    * Power Collapse (PC)
>> +
>> +WFI: WFI does a little more in addition to architectural clock gating.  ARM
>
> This may be misleading. Call it PlatformWFI or something like that, not WFI if
> that's not what it is.

This gets at a little pet peeve of mine: 

IMO, naming any state with "WFI" is a bit confusing, because typically
*every* idle state is entered by one (or more) CPU executing WFI, no?

Kevin

WARNING: multiple messages have this Message-ID (diff)
From: khilman@kernel.org (Kevin Hilman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v7 5/7] qcom: cpuidle: Add cpuidle driver for QCOM cpus
Date: Tue, 30 Sep 2014 10:41:14 -0700	[thread overview]
Message-ID: <7hmw9hypj9.fsf@deeprootsystems.com> (raw)
In-Reply-To: <20140929153154.GF2165@e102568-lin.cambridge.arm.com> (Lorenzo Pieralisi's message of "Mon, 29 Sep 2014 16:31:55 +0100")

Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> writes:

> Hi Lina,
>
> On Sat, Sep 27, 2014 at 01:58:13AM +0100, Lina Iyer wrote:
>> Add cpuidle driver interface to allow cpus to go into C-States. Use the
>> cpuidle DT interface common across ARM architectures to provide the
>> C-State information to the cpuidle framework.
>> 
>> Supported modes at this time are clock gating (wfi) and cpu power down
>> (Standalone PC or spc).
>> 
>> Signed-off-by: Lina Iyer <lina.iyer@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 ++++++++++++++++++++++
>>  4 files changed, 169 insertions(+)
>>  create mode 100644 Documentation/devicetree/bindings/arm/msm/qcom,idle-state.txt
>>  create mode 100644 drivers/cpuidle/cpuidle-qcom.c
>> 
>> diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,idle-state.txt b/Documentation/devicetree/bindings/arm/msm/qcom,idle-state.txt
>> new file mode 100644
>> index 0000000..47095b9
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/arm/msm/qcom,idle-state.txt
>> @@ -0,0 +1,72 @@
>> +QCOM Idle States for cpuidle driver
>> +
>> +ARM provides idle-state node to define the cpuidle states, as defined in [1].
>> +cpuidle-qcom is the cpuidle driver for Qualcomm SoCs and uses these idle
>> +states. Idle states have different enter/exit latency and residency values.
>> +The idle states supported by the QCOM SoC are defined as -
>> +
>> +    * WFI
>> +    * Retention
>> +    * Standalone Power Collapse (Standalone PC or SPC)
>> +    * Power Collapse (PC)
>> +
>> +WFI: WFI does a little more in addition to architectural clock gating.  ARM
>
> This may be misleading. Call it PlatformWFI or something like that, not WFI if
> that's not what it is.

This gets at a little pet peeve of mine: 

IMO, naming any state with "WFI" is a bit confusing, because typically
*every* idle state is entered by one (or more) CPU executing WFI, no?

Kevin

  parent reply	other threads:[~2014-09-30 17:41 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-27  0:58 [PATCH v7 0/7] QCOM 8974 and 8084 cpuidle driver Lina Iyer
2014-09-27  0:58 ` Lina Iyer
2014-09-27  0:58 ` [PATCH v7 1/7] qcom: spm: Add Subsystem Power Manager driver Lina Iyer
2014-09-27  0:58   ` Lina Iyer
2014-09-27  8:07   ` Pramod Gurav
2014-09-27  8:07     ` Pramod Gurav
2014-09-29 10:29   ` Pramod Gurav
2014-09-29 10:29     ` Pramod Gurav
2014-09-29 23:19   ` Stephen Boyd
2014-09-29 23:19     ` Stephen Boyd
2014-09-30 16:27     ` Lina Iyer
2014-09-30 16:27       ` Lina Iyer
2014-09-30 17:26   ` Kevin Hilman
2014-09-30 17:26     ` Kevin Hilman
2014-09-30 21:18     ` Lina Iyer
2014-09-30 21:18       ` Lina Iyer
2014-09-27  0:58 ` [PATCH v7 2/7] arm: dts: qcom: Add SPM device bindings for 8974 Lina Iyer
2014-09-27  0:58   ` Lina Iyer
2014-09-29 23:02   ` Stephen Boyd
2014-09-29 23:02     ` Stephen Boyd
2014-09-27  0:58 ` [PATCH v7 3/7] arm: dts: qcom: Add SPM device bindings for 8084 Lina Iyer
2014-09-27  0:58   ` Lina Iyer
2014-09-30 17:31   ` Kevin Hilman
2014-09-30 17:31     ` Kevin Hilman
2014-09-27  0:58 ` [PATCH v7 4/7] qcom: pm: Add cpu low power mode functions Lina Iyer
2014-09-27  0:58   ` Lina Iyer
2014-09-27  8:22   ` Pramod Gurav
2014-09-27  8:22     ` Pramod Gurav
2014-09-29 23:37   ` Stephen Boyd
2014-09-29 23:37     ` Stephen Boyd
2014-09-30 16:03     ` Lina Iyer
2014-09-30 16:03       ` Lina Iyer
2014-09-30 17:35       ` Kevin Hilman
2014-09-30 17:35         ` Kevin Hilman
2014-10-02  0:10       ` Stephen Boyd
2014-10-02  0:10         ` Stephen Boyd
2014-10-02  9:50   ` Lorenzo Pieralisi
2014-10-02  9:50     ` Lorenzo Pieralisi
2014-10-06 17:10     ` Lina Iyer
2014-10-06 17:10       ` Lina Iyer
2014-09-27  0:58 ` [PATCH v7 5/7] qcom: cpuidle: Add cpuidle driver for QCOM cpus Lina Iyer
2014-09-27  0:58   ` Lina Iyer
2014-09-27  8:18   ` Pramod Gurav
2014-09-27  8:18     ` Pramod Gurav
2014-09-29 10:31   ` Pramod Gurav
2014-09-29 10:31     ` Pramod Gurav
2014-09-29 15:04     ` Lina Iyer
2014-09-29 15:04       ` Lina Iyer
2014-09-29 15:31   ` Lorenzo Pieralisi
2014-09-29 15:31     ` Lorenzo Pieralisi
2014-09-29 16:16     ` Lina Iyer
2014-09-29 16:16       ` Lina Iyer
2014-09-29 17:22       ` Lorenzo Pieralisi
2014-09-29 17:22         ` Lorenzo Pieralisi
2014-09-30 17:41     ` Kevin Hilman [this message]
2014-09-30 17:41       ` Kevin Hilman
2014-09-30 17:51       ` Nicolas Pitre
2014-09-30 17:51         ` Nicolas Pitre
2014-09-30 18:06         ` Kevin Hilman
2014-09-30 18:06           ` Kevin Hilman
2014-09-30 18:30           ` Nicolas Pitre
2014-09-30 18:30             ` Nicolas Pitre
2014-09-30 18:41             ` Kevin Hilman
2014-09-30 18:41               ` Kevin Hilman
2014-09-30 20:36               ` Lina Iyer
2014-09-30 20:36                 ` Lina Iyer
2014-09-29 23:18   ` Stephen Boyd
2014-09-29 23:18     ` Stephen Boyd
2014-09-30  8:58     ` Lorenzo Pieralisi
2014-09-30  8:58       ` Lorenzo Pieralisi
2014-09-30 15:46       ` Lina Iyer
2014-09-30 15:46         ` Lina Iyer
2014-09-30 15:41     ` Lina Iyer
2014-09-30 15:41       ` Lina Iyer
2014-09-27  0:58 ` [PATCH v7 6/7] arm: dts: qcom: Add idle states device nodes for 8974 Lina Iyer
2014-09-27  0:58   ` Lina Iyer
2014-09-27  0:58 ` [PATCH v7 7/7] arm: dts: qcom: Add idle states device nodes for 8084 Lina Iyer
2014-09-27  0:58   ` Lina Iyer
2014-09-29 12:21 ` [PATCH v7 0/7] QCOM 8974 and 8084 cpuidle driver Pramod Gurav
2014-09-29 12:21   ` Pramod Gurav
2014-09-29 15:05   ` Lina Iyer
2014-09-29 15:05     ` Lina Iyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7hmw9hypj9.fsf@deeprootsystems.com \
    --to=khilman@kernel.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=galak@codeaurora.org \
    --cc=lina.iyer@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=msivasub@codeaurora.org \
    --cc=sboyd@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.