From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
To: Sebastian Capella <sebastian.capella@linaro.org>
Cc: Mark Rutland <Mark.Rutland@arm.com>,
Mike Turquette <mturquette@linaro.org>,
Tomasz Figa <t.figa@samsung.com>,
Mark Hambleton <mark.hambleton@broadcom.com>,
Russell King <linux@arm.linux.org.uk>,
Nicolas Pitre <nico@linaro.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"grant.likely@linaro.org" <grant.likely@linaro.org>,
Dave P Martin <Dave.Martin@arm.com>,
Charles Garcia-Tobin <Charles.Garcia-Tobin@arm.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Kevin Hilman <khilman@linaro.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
Kumar Gala <galak@codeaurora.org>,
Rob Herring <robh+dt@kernel.org>,
Vincent Guittot <vincent.guittot@linaro.org>,
Antti Miettinen <ananaza@iki.fi>,
"pveerapa@broadcom.com" <pveerapa@broadcom.com>,
Peter De Schrijver <pdeschrijver@nvidia.>
Subject: Re: [PATCH RFC v3 3/3] Documentation: arm: define DT idle states bindings
Date: Mon, 17 Feb 2014 10:11:05 +0000 [thread overview]
Message-ID: <20140217101104.GA20125@e102568-lin.cambridge.arm.com> (raw)
In-Reply-To: <20140215012215.11460.5931@capellas-linux>
On Sat, Feb 15, 2014 at 01:22:15AM +0000, Sebastian Capella wrote:
> Quoting Lorenzo Pieralisi (2014-02-14 03:27:56)
> > On Fri, Feb 14, 2014 at 12:29:26AM +0000, Sebastian Capella wrote:
> > > Quoting Lorenzo Pieralisi (2014-02-13 04:47:32)
> > >
> > > > Such as ? "idle-states" ?
> > >
> > > That sounds good to me. Our preference is for idle-states to be used
> > > for name of the idle-states.txt node.
> >
> > Ok, so s/cpu-idle-state/idle-state everywhere, inclusive of state nodes
> > compatible properties ("arm,cpu-idle-state" becomes "arm,idle-state") ?
>
> No, we were looking to make sure that the cpu-idle-states defined in
> cpus.txt:
>
> - cpu node
> - cpu-idle-states
>
> And the cpu-idle-states defined in idle-states.txt:
>
> - cpu-idle-states node
>
> Did not use the same name, and instead had different, unique names.
>
> Our preference was to change only the idle-states.txt name.
Ok, done.
> > I do not like that, but I can remove the naming scheme and let people
> > find a naming scheme that complies with DT rules (nodes within a parent
> > must have a unique name). Not sure this would make dts more readable, but
> > I do not think it is a problem either.
>
> In the current implementation for cpuidle, we have a descriptive c-state
> name. As long as we can get this kind of functionality using the node
> name this seems fine to me.
Ok, now the naming scheme follows standard device tree naming, so it is
up to platforms to find descriptive names.
[...]
> > What I will do: move the entry-method to top-level cpu-idle-states node
> > (soon to be idle-states node) and add a property there:
> >
> > "arm,has-idlewfi"
> >
> > which allows me to prevent people from adding an explicit state that just
> > executes the wfi instruction on entry.
> >
> > This way we can have a *global* entry-method, and we can also detect if the
> > platform supports wfi in its bare form.
> >
> > Yes, index can start from 0, disallowing 0 and 1 was a (odd) way to prevent
> > people from adding wfi to DT. If the platform supports simple idlestandby
> > (ie wfi) it has to add the boolean property above.
> >
> > How does that sound ?
>
> In general I'm ok with indexing as you have it, even if only to specify
> an ordering of states by power. I even thought maybe you could call it
> order or sort-order or something, to help people understand you won't
> use it as an array index or name, but I don't think it's a big deal
> either way.
>
> Do platforms remove support for WFI? If they do, is this detectible
> somehow directly from the ARM without relying on DTS? It seems like
> a comment is enough to discourage people from defining a wfi state.
> Then eventually implement a common code path for idle. I'm fine not
> specifying this flag, but if you feel it can be useful I don't object.
Yeah, wfi flag won't be there. If we ever need it we will add it later.
index seems fine to me, it is well defined and as long as we know what
it means it is all sorted, unless someone has strong opinion against it.
Thanks !!
Lorenzo
next prev parent reply other threads:[~2014-02-17 10:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-11 14:17 [PATCH RFC v3 0/3] ARM: defining idle states DT bindings Lorenzo Pieralisi
2014-02-11 14:17 ` [PATCH RFC v3 1/3] Documentation: devicetree: psci: define CPU suspend parameter Lorenzo Pieralisi
2014-02-11 14:17 ` [PATCH RFC v3 2/3] Documentation: arm: add cache DT bindings Lorenzo Pieralisi
2014-02-11 14:17 ` [PATCH RFC v3 3/3] Documentation: arm: define DT idle states bindings Lorenzo Pieralisi
2014-02-12 11:39 ` Amit Kachhap
2014-02-12 14:34 ` Lorenzo Pieralisi
2014-02-13 1:31 ` Sebastian Capella
2014-02-13 12:47 ` Lorenzo Pieralisi
2014-02-14 0:29 ` Sebastian Capella
2014-02-14 11:27 ` Lorenzo Pieralisi
2014-02-15 1:22 ` Sebastian Capella
2014-02-17 10:11 ` Lorenzo Pieralisi [this message]
[not found] ` <1392128273-8614-4-git-send-email-lorenzo.pieralisi-5wv7dgnIgG8@public.gmane.org>
2014-02-16 1:39 ` Mark Brown
2014-02-17 10:40 ` Lorenzo Pieralisi
2014-02-17 16:34 ` Lorenzo Pieralisi
2014-02-17 23:48 ` Mark Brown
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=20140217101104.GA20125@e102568-lin.cambridge.arm.com \
--to=lorenzo.pieralisi@arm.com \
--cc=Charles.Garcia-Tobin@arm.com \
--cc=Dave.Martin@arm.com \
--cc=Mark.Rutland@arm.com \
--cc=ananaza@iki.fi \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=grant.likely@linaro.org \
--cc=khilman@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.hambleton@broadcom.com \
--cc=mturquette@linaro.org \
--cc=nico@linaro.org \
--cc=pdeschrijver@nvidia. \
--cc=pveerapa@broadcom.com \
--cc=robh+dt@kernel.org \
--cc=sebastian.capella@linaro.org \
--cc=t.figa@samsung.com \
--cc=vincent.guittot@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).