* [PATCH 2/4] dt-bindings: add domain-idle-state compatible to arm,idle-state [not found] <1477409199-52182-1-git-send-email-lina.iyer@linaro.org> @ 2016-10-25 15:26 ` Lina Iyer [not found] ` <1477409199-52182-1-git-send-email-lina.iyer-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> 1 sibling, 0 replies; 8+ messages in thread From: Lina Iyer @ 2016-10-25 15:26 UTC (permalink / raw) To: ulf.hansson, khilman, rjw, linux-pm, linux-arm-kernel Cc: andy.gross, sboyd, linux-arm-msm, brendan.jackman, lorenzo.pieralisi, sudeep.holla, Juri.Lelli, Lina Iyer, devicetree, Rob Herring CPU's idle states are defined by the arm,idle-state compatible flag. PM domains that can contains devices and other domains also has similar definition for its idle state. Reuse the definition of arm,idle-state for PM domains by allowing an addition compatible string ("domain-idle-state") to denote idle states that are specific to PM Domains. Cc: <devicetree@vger.kernel.org> Cc: Rob Herring <robh@kernel.org> Suggested-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Lina Iyer <lina.iyer@linaro.org> --- Documentation/devicetree/bindings/arm/idle-states.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/idle-states.txt b/Documentation/devicetree/bindings/arm/idle-states.txt index b8e41c1..4b0ff59 100644 --- a/Documentation/devicetree/bindings/arm/idle-states.txt +++ b/Documentation/devicetree/bindings/arm/idle-states.txt @@ -271,6 +271,9 @@ follows: Usage: Required Value type: <stringlist> Definition: Must be "arm,idle-state". + Additionally, nodes that are used to describe a + idle-state of PM domain must also define + "domain-idle-state" as compatible string. - local-timer-stop Usage: See definition -- 2.7.4 ^ permalink raw reply related [flat|nested] 8+ messages in thread
[parent not found: <1477409199-52182-1-git-send-email-lina.iyer-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
* [PATCH 3/4] dt-bindings: Update domain-idle-state binding to use correct compatibles [not found] ` <1477409199-52182-1-git-send-email-lina.iyer-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> @ 2016-10-25 15:26 ` Lina Iyer 2016-10-25 15:59 ` Sudeep Holla 2016-10-25 20:49 ` Kevin Hilman 0 siblings, 2 replies; 8+ messages in thread From: Lina Iyer @ 2016-10-25 15:26 UTC (permalink / raw) To: ulf.hansson-QSEj5FYQhm4dnm+yROfE0A, khilman-DgEjT+Ai2ygdnm+yROfE0A, rjw-LthD3rsA81gm4RdzfppkhA, linux-pm-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Cc: andy.gross-QSEj5FYQhm4dnm+yROfE0A, sboyd-sgV2jX0FEOL9JmXXK+q4OQ, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA, brendan.jackman-5wv7dgnIgG8, lorenzo.pieralisi-5wv7dgnIgG8, sudeep.holla-5wv7dgnIgG8, Juri.Lelli-5wv7dgnIgG8, Lina Iyer, devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring Update domain-idle-state binding to use "domain-idle-state" compatible from Documentation/devicetree/bindings/arm/idle-states.txt. Cc: <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org> Cc: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Suggested-by: Sudeep Holla <sudeep.holla-5wv7dgnIgG8@public.gmane.org> Signed-off-by: Lina Iyer <lina.iyer-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> --- Documentation/devicetree/bindings/power/power_domain.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/power/power_domain.txt b/Documentation/devicetree/bindings/power/power_domain.txt index e165036..6fb53a3 100644 --- a/Documentation/devicetree/bindings/power/power_domain.txt +++ b/Documentation/devicetree/bindings/power/power_domain.txt @@ -30,8 +30,9 @@ Optional properties: available in the next section. - domain-idle-states : A phandle of an idle-state that shall be soaked into a - generic domain power state. The idle state definitions are - compatible with arm,idle-state specified in [1]. + generic domain power state. The idle state definitions must be + compatible with "domain-idle-state" as well as + "arm,idle-state" as defined in [1]. The domain-idle-state property reflects the idle state of this PM domain and not the idle states of the devices or sub-domains in the PM domain. Devices and sub-domains have their own idle-states independent of the parent @@ -85,7 +86,7 @@ Example 3: }; DOMAIN_RET: state@0 { - compatible = "arm,idle-state"; + compatible = "domain-idle-state", "arm,idle-state"; reg = <0x0>; entry-latency-us = <1000>; exit-latency-us = <2000>; @@ -93,7 +94,7 @@ Example 3: }; DOMAIN_PWR_DN: state@1 { - compatible = "arm,idle-state"; + compatible = "domain-idle-state", "arm,idle-state"; reg = <0x1>; entry-latency-us = <5000>; exit-latency-us = <8000>; -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] dt-bindings: Update domain-idle-state binding to use correct compatibles 2016-10-25 15:26 ` [PATCH 3/4] dt-bindings: Update domain-idle-state binding to use correct compatibles Lina Iyer @ 2016-10-25 15:59 ` Sudeep Holla 2016-10-25 16:24 ` Lina Iyer 2016-10-25 20:49 ` Kevin Hilman 1 sibling, 1 reply; 8+ messages in thread From: Sudeep Holla @ 2016-10-25 15:59 UTC (permalink / raw) To: Lina Iyer, ulf.hansson, khilman, rjw, linux-pm, linux-arm-kernel Cc: Sudeep Holla, andy.gross, sboyd, linux-arm-msm, brendan.jackman, lorenzo.pieralisi, Juri.Lelli, devicetree, Rob Herring On 25/10/16 16:26, Lina Iyer wrote: > Update domain-idle-state binding to use "domain-idle-state" compatible > from Documentation/devicetree/bindings/arm/idle-states.txt. > > Cc: <devicetree@vger.kernel.org> > Cc: Rob Herring <robh@kernel.org> > Suggested-by: Sudeep Holla <sudeep.holla@arm.com> > Signed-off-by: Lina Iyer <lina.iyer@linaro.org> > --- > Documentation/devicetree/bindings/power/power_domain.txt | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/power/power_domain.txt b/Documentation/devicetree/bindings/power/power_domain.txt > index e165036..6fb53a3 100644 > --- a/Documentation/devicetree/bindings/power/power_domain.txt > +++ b/Documentation/devicetree/bindings/power/power_domain.txt > @@ -30,8 +30,9 @@ Optional properties: > available in the next section. > > - domain-idle-states : A phandle of an idle-state that shall be soaked into a > - generic domain power state. The idle state definitions are > - compatible with arm,idle-state specified in [1]. > + generic domain power state. The idle state definitions must be > + compatible with "domain-idle-state" I would reword the below a bit different so that it's flexible to be reused without "arm,idle-state". > as well as > + "arm,idle-state" as defined in [1]. 'Idle states that are "arm,idle-state" compatible are generally "domain-idle-state" compatible as well if it's a PM domain.' or something like that in line with what's in patch 2/4. That would give us the scope of reuse of "domain-idle-state" in device for future. Also it aligns with your patch 4/4. Otherwise, it looks good. -- Regards, Sudeep ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] dt-bindings: Update domain-idle-state binding to use correct compatibles 2016-10-25 15:59 ` Sudeep Holla @ 2016-10-25 16:24 ` Lina Iyer [not found] ` <20161025162440.GA48977-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> 0 siblings, 1 reply; 8+ messages in thread From: Lina Iyer @ 2016-10-25 16:24 UTC (permalink / raw) To: Sudeep Holla Cc: ulf.hansson, khilman, rjw, linux-pm, linux-arm-kernel, andy.gross, sboyd, linux-arm-msm, brendan.jackman, lorenzo.pieralisi, Juri.Lelli, devicetree, Rob Herring On Tue, Oct 25 2016 at 09:59 -0600, Sudeep Holla wrote: > > >On 25/10/16 16:26, Lina Iyer wrote: >>Update domain-idle-state binding to use "domain-idle-state" compatible >>from Documentation/devicetree/bindings/arm/idle-states.txt. >> >>Cc: <devicetree@vger.kernel.org> >>Cc: Rob Herring <robh@kernel.org> >>Suggested-by: Sudeep Holla <sudeep.holla@arm.com> >>Signed-off-by: Lina Iyer <lina.iyer@linaro.org> >>--- >> Documentation/devicetree/bindings/power/power_domain.txt | 9 +++++---- >> 1 file changed, 5 insertions(+), 4 deletions(-) >> >>diff --git a/Documentation/devicetree/bindings/power/power_domain.txt b/Documentation/devicetree/bindings/power/power_domain.txt >>index e165036..6fb53a3 100644 >>--- a/Documentation/devicetree/bindings/power/power_domain.txt >>+++ b/Documentation/devicetree/bindings/power/power_domain.txt >>@@ -30,8 +30,9 @@ Optional properties: >> available in the next section. >> >> - domain-idle-states : A phandle of an idle-state that shall be soaked into a >>- generic domain power state. The idle state definitions are >>- compatible with arm,idle-state specified in [1]. >>+ generic domain power state. The idle state definitions must be >>+ compatible with "domain-idle-state" > >I would reword the below a bit different so that it's flexible to be >reused without "arm,idle-state". > >>as well as >>+ "arm,idle-state" as defined in [1]. > >'Idle states that are "arm,idle-state" compatible are generally >"domain-idle-state" compatible as well if it's a PM domain.' > I believe we should have both compatible strings. Per [1], any CPU that follows the idle state compatible *must* have "arm,idle-state" as a compatible. Since we are re-using the same compatible, its only correct that we retain what is already spec'd up in [1] and in addition provide this new compatible. Thanks, Lina >or something like that in line with what's in patch 2/4. > >That would give us the scope of reuse of "domain-idle-state" in device >for future. Also it aligns with your patch 4/4. > >Otherwise, it looks good. > >-- >Regards, >Sudeep ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <20161025162440.GA48977-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
* Re: [PATCH 3/4] dt-bindings: Update domain-idle-state binding to use correct compatibles [not found] ` <20161025162440.GA48977-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> @ 2016-10-25 16:52 ` Sudeep Holla 0 siblings, 0 replies; 8+ messages in thread From: Sudeep Holla @ 2016-10-25 16:52 UTC (permalink / raw) To: Lina Iyer Cc: Sudeep Holla, ulf.hansson-QSEj5FYQhm4dnm+yROfE0A, khilman-DgEjT+Ai2ygdnm+yROfE0A, rjw-LthD3rsA81gm4RdzfppkhA, linux-pm-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, andy.gross-QSEj5FYQhm4dnm+yROfE0A, sboyd-sgV2jX0FEOL9JmXXK+q4OQ, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA, brendan.jackman-5wv7dgnIgG8, lorenzo.pieralisi-5wv7dgnIgG8, Juri.Lelli-5wv7dgnIgG8, devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring On 25/10/16 17:24, Lina Iyer wrote: > On Tue, Oct 25 2016 at 09:59 -0600, Sudeep Holla wrote: >> >> >> On 25/10/16 16:26, Lina Iyer wrote: >>> Update domain-idle-state binding to use "domain-idle-state" compatible >>> from Documentation/devicetree/bindings/arm/idle-states.txt. >>> >>> Cc: <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org> >>> Cc: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> >>> Suggested-by: Sudeep Holla <sudeep.holla-5wv7dgnIgG8@public.gmane.org> >>> Signed-off-by: Lina Iyer <lina.iyer-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> >>> --- >>> Documentation/devicetree/bindings/power/power_domain.txt | 9 +++++---- >>> 1 file changed, 5 insertions(+), 4 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/power/power_domain.txt >>> b/Documentation/devicetree/bindings/power/power_domain.txt >>> index e165036..6fb53a3 100644 >>> --- a/Documentation/devicetree/bindings/power/power_domain.txt >>> +++ b/Documentation/devicetree/bindings/power/power_domain.txt >>> @@ -30,8 +30,9 @@ Optional properties: >>> available in the next section. >>> >>> - domain-idle-states : A phandle of an idle-state that shall be >>> soaked into a >>> - generic domain power state. The idle state >>> definitions are >>> - compatible with arm,idle-state specified in [1]. >>> + generic domain power state. The idle state >>> definitions must be >>> + compatible with "domain-idle-state" >> >> I would reword the below a bit different so that it's flexible to be >> reused without "arm,idle-state". >> >>> as well as >>> + "arm,idle-state" as defined in [1]. >> >> 'Idle states that are "arm,idle-state" compatible are generally >> "domain-idle-state" compatible as well if it's a PM domain.' >> > I believe we should have both compatible strings. Per [1], any CPU that > follows the idle state compatible *must* have "arm,idle-state" as a > compatible. Yes that's implicit for a CPU device. But generic power domain bindings should not have that explicitly as it *can be* used for non CPU device. > Since we are re-using the same compatible, its only correct > that we retain what is already spec'd up in [1] and in addition provide > this new compatible. > Yes [1] applies for *CPUs only* while this applies for *any device* and *any power domain*, so I would drop *must have* "arm,idle-state" here to keep this generic based on my understanding on how compatibles work. -- Regards, Sudeep -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] dt-bindings: Update domain-idle-state binding to use correct compatibles 2016-10-25 15:26 ` [PATCH 3/4] dt-bindings: Update domain-idle-state binding to use correct compatibles Lina Iyer 2016-10-25 15:59 ` Sudeep Holla @ 2016-10-25 20:49 ` Kevin Hilman 2016-10-26 8:57 ` Sudeep Holla 1 sibling, 1 reply; 8+ messages in thread From: Kevin Hilman @ 2016-10-25 20:49 UTC (permalink / raw) To: Lina Iyer Cc: ulf.hansson, rjw, linux-pm, linux-arm-kernel, andy.gross, sboyd, linux-arm-msm, brendan.jackman, lorenzo.pieralisi, sudeep.holla, Juri.Lelli, devicetree, Rob Herring Lina Iyer <lina.iyer@linaro.org> writes: > Update domain-idle-state binding to use "domain-idle-state" compatible > from Documentation/devicetree/bindings/arm/idle-states.txt. > > Cc: <devicetree@vger.kernel.org> > Cc: Rob Herring <robh@kernel.org> > Suggested-by: Sudeep Holla <sudeep.holla@arm.com> > Signed-off-by: Lina Iyer <lina.iyer@linaro.org> > --- > Documentation/devicetree/bindings/power/power_domain.txt | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) With no current users for this, I don't see the point of adding a compatible now. IMO, this should wait and be added with the identified user we can discuss it then. Kevin ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] dt-bindings: Update domain-idle-state binding to use correct compatibles 2016-10-25 20:49 ` Kevin Hilman @ 2016-10-26 8:57 ` Sudeep Holla 2016-10-31 2:50 ` Rob Herring 0 siblings, 1 reply; 8+ messages in thread From: Sudeep Holla @ 2016-10-26 8:57 UTC (permalink / raw) To: Kevin Hilman, Lina Iyer Cc: devicetree, ulf.hansson, lorenzo.pieralisi, Juri.Lelli, linux-pm, sboyd, linux-arm-msm, rjw, brendan.jackman, Sudeep Holla, andy.gross, linux-arm-kernel On 25/10/16 21:49, Kevin Hilman wrote: > Lina Iyer <lina.iyer@linaro.org> writes: > >> Update domain-idle-state binding to use "domain-idle-state" compatible >> from Documentation/devicetree/bindings/arm/idle-states.txt. >> >> Cc: <devicetree@vger.kernel.org> >> Cc: Rob Herring <robh@kernel.org> >> Suggested-by: Sudeep Holla <sudeep.holla@arm.com> >> Signed-off-by: Lina Iyer <lina.iyer@linaro.org> >> --- >> Documentation/devicetree/bindings/power/power_domain.txt | 9 +++++---- >> 1 file changed, 5 insertions(+), 4 deletions(-) > > With no current users for this, I don't see the point of adding a > compatible now. > > IMO, this should wait and be added with the identified user we can > discuss it then. > No, IMO it needs to be used for the proposed SoC idle/genpd solution. I understand the nodes that are "arm,idle-state" compatible can be used for this new SoC hierarchical idle management, but it was never defined for that use originally. So this new feature must be advertised by the firmware with the presence of "domain-idle-state". Yes we might have other ways to detect that but I have already seen that broken on the reference platform, so we need alternate/DT way to specify that. Not all existing "arm,idle-state" compatible nodes will be capable of supporting this new SoC idle feature. It's just better and safer for a new feature getting added that relies on DT to have a new compatible. -- Regards, Sudeep ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/4] dt-bindings: Update domain-idle-state binding to use correct compatibles 2016-10-26 8:57 ` Sudeep Holla @ 2016-10-31 2:50 ` Rob Herring 0 siblings, 0 replies; 8+ messages in thread From: Rob Herring @ 2016-10-31 2:50 UTC (permalink / raw) To: Sudeep Holla Cc: Kevin Hilman, Lina Iyer, ulf.hansson, rjw, linux-pm, linux-arm-kernel, andy.gross, sboyd, linux-arm-msm, brendan.jackman, lorenzo.pieralisi, Juri.Lelli, devicetree On Wed, Oct 26, 2016 at 09:57:35AM +0100, Sudeep Holla wrote: > > > On 25/10/16 21:49, Kevin Hilman wrote: > > Lina Iyer <lina.iyer@linaro.org> writes: > > > > > Update domain-idle-state binding to use "domain-idle-state" compatible > > > from Documentation/devicetree/bindings/arm/idle-states.txt. > > > > > > Cc: <devicetree@vger.kernel.org> > > > Cc: Rob Herring <robh@kernel.org> > > > Suggested-by: Sudeep Holla <sudeep.holla@arm.com> > > > Signed-off-by: Lina Iyer <lina.iyer@linaro.org> > > > --- > > > Documentation/devicetree/bindings/power/power_domain.txt | 9 +++++---- > > > 1 file changed, 5 insertions(+), 4 deletions(-) > > > > With no current users for this, I don't see the point of adding a > > compatible now. > > > > IMO, this should wait and be added with the identified user we can > > discuss it then. > > > > No, IMO it needs to be used for the proposed SoC idle/genpd solution. > > I understand the nodes that are "arm,idle-state" compatible can be used > for this new SoC hierarchical idle management, but it was never defined > for that use originally. So this new feature must be advertised by the > firmware with the presence of "domain-idle-state". > > Yes we might have other ways to detect that but I have already seen that > broken on the reference platform, so we need alternate/DT way to specify > that. > > Not all existing "arm,idle-state" compatible nodes will be capable of > supporting this new SoC idle feature. It's just better and safer for a > new feature getting added that relies on DT to have a new compatible. Or perhaps you should describe something new rather than trying to graft in what's there. This combination of compatible strings looks a bit odd to me. Though, I've not really spent much time thinking about this. Rob ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-10-31 2:50 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1477409199-52182-1-git-send-email-lina.iyer@linaro.org>
2016-10-25 15:26 ` [PATCH 2/4] dt-bindings: add domain-idle-state compatible to arm,idle-state Lina Iyer
[not found] ` <1477409199-52182-1-git-send-email-lina.iyer-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-10-25 15:26 ` [PATCH 3/4] dt-bindings: Update domain-idle-state binding to use correct compatibles Lina Iyer
2016-10-25 15:59 ` Sudeep Holla
2016-10-25 16:24 ` Lina Iyer
[not found] ` <20161025162440.GA48977-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-10-25 16:52 ` Sudeep Holla
2016-10-25 20:49 ` Kevin Hilman
2016-10-26 8:57 ` Sudeep Holla
2016-10-31 2:50 ` Rob Herring
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).