* [PATCH 2/3] arm64: dts: imx8mq: Add opp-suspend property to OPP table
2019-07-09 7:10 [PATCH 1/3] opp: of: Support multiple suspend OPPs defined in DT Anson.Huang
@ 2019-07-09 7:10 ` Anson.Huang
2019-07-09 7:10 ` [PATCH 3/3] arm64: dts: imx8mm: " Anson.Huang
2019-07-09 7:51 ` [PATCH 1/3] opp: of: Support multiple suspend OPPs defined in DT Viresh Kumar
2 siblings, 0 replies; 5+ messages in thread
From: Anson.Huang @ 2019-07-09 7:10 UTC (permalink / raw)
To: robh+dt, mark.rutland, shawnguo, s.hauer, kernel, festevam,
vireshk, nm, sboyd, leonard.crestez, aisheng.dong, daniel.baluta,
ping.bai, l.stach, abel.vesa, ccaione, angus, andrew.smirnov, agx,
devicetree, linux-arm-kernel, linux-kernel, linux-pm
Cc: Linux-imx
From: Anson Huang <Anson.Huang@nxp.com>
Add opp-suspend property to each OPP, the of opp core will
select the OPP HW supported and with highest rate to be
suspend opp, it will speed up the suspend/resume process.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
index 58f66cb..4ba6a25f 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
@@ -156,6 +156,7 @@
/* Industrial only */
opp-supported-hw = <0xf>, <0x4>;
clock-latency-ns = <150000>;
+ opp-suspend;
};
opp-1000000000 {
@@ -164,6 +165,7 @@
/* Consumer only */
opp-supported-hw = <0xe>, <0x3>;
clock-latency-ns = <150000>;
+ opp-suspend;
};
opp-1300000000 {
@@ -171,6 +173,7 @@
opp-microvolt = <1000000>;
opp-supported-hw = <0xc>, <0x4>;
clock-latency-ns = <150000>;
+ opp-suspend;
};
opp-1500000000 {
@@ -178,6 +181,7 @@
opp-microvolt = <1000000>;
opp-supported-hw = <0x8>, <0x3>;
clock-latency-ns = <150000>;
+ opp-suspend;
};
};
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 3/3] arm64: dts: imx8mm: Add opp-suspend property to OPP table
2019-07-09 7:10 [PATCH 1/3] opp: of: Support multiple suspend OPPs defined in DT Anson.Huang
2019-07-09 7:10 ` [PATCH 2/3] arm64: dts: imx8mq: Add opp-suspend property to OPP table Anson.Huang
@ 2019-07-09 7:10 ` Anson.Huang
2019-07-09 7:51 ` [PATCH 1/3] opp: of: Support multiple suspend OPPs defined in DT Viresh Kumar
2 siblings, 0 replies; 5+ messages in thread
From: Anson.Huang @ 2019-07-09 7:10 UTC (permalink / raw)
To: robh+dt, mark.rutland, shawnguo, s.hauer, kernel, festevam,
vireshk, nm, sboyd, leonard.crestez, aisheng.dong, daniel.baluta,
ping.bai, l.stach, abel.vesa, ccaione, angus, andrew.smirnov, agx,
devicetree, linux-arm-kernel, linux-kernel, linux-pm
Cc: Linux-imx
From: Anson Huang <Anson.Huang@nxp.com>
Add opp-suspend property to each OPP, the of opp core will
select the OPP HW supported and with highest rate to be
suspend opp, it will speed up the suspend/resume process.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8mm.dtsi | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
index 398318b..973f457 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
@@ -108,6 +108,7 @@
opp-microvolt = <850000>;
opp-supported-hw = <0xe>, <0x7>;
clock-latency-ns = <150000>;
+ opp-suspend;
};
opp-1600000000 {
@@ -115,6 +116,7 @@
opp-microvolt = <900000>;
opp-supported-hw = <0xc>, <0x7>;
clock-latency-ns = <150000>;
+ opp-suspend;
};
opp-1800000000 {
@@ -122,6 +124,7 @@
opp-microvolt = <1000000>;
opp-supported-hw = <0x8>, <0x3>;
clock-latency-ns = <150000>;
+ opp-suspend;
};
};
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH 1/3] opp: of: Support multiple suspend OPPs defined in DT
2019-07-09 7:10 [PATCH 1/3] opp: of: Support multiple suspend OPPs defined in DT Anson.Huang
2019-07-09 7:10 ` [PATCH 2/3] arm64: dts: imx8mq: Add opp-suspend property to OPP table Anson.Huang
2019-07-09 7:10 ` [PATCH 3/3] arm64: dts: imx8mm: " Anson.Huang
@ 2019-07-09 7:51 ` Viresh Kumar
2019-07-09 7:54 ` Anson Huang
2 siblings, 1 reply; 5+ messages in thread
From: Viresh Kumar @ 2019-07-09 7:51 UTC (permalink / raw)
To: Anson.Huang
Cc: robh+dt, mark.rutland, shawnguo, s.hauer, kernel, festevam,
vireshk, nm, sboyd, leonard.crestez, aisheng.dong, daniel.baluta,
ping.bai, l.stach, abel.vesa, ccaione, angus, andrew.smirnov, agx,
devicetree, linux-arm-kernel, linux-kernel, linux-pm, Linux-imx
On 09-07-19, 15:10, Anson.Huang@nxp.com wrote:
> From: Anson Huang <Anson.Huang@nxp.com>
>
> With property "opp-supported-hw" introduced, the OPP table
> in DT could be a large OPP table and ONLY a subset of OPPs
> are available, based on the version of the hardware running
> on. That introduces restriction of using "opp-suspend"
> property to define the suspend OPP, as we are NOT sure if the
> OPP containing "opp-suspend" property is available for the
> hardware running on, and the of opp core does NOT allow multiple
> suspend OPPs defined in DT OPP table.
>
> To eliminate this restrition, make of opp core allow multiple
> suspend OPPs defined in DT, and pick the OPP with highest rate
> and with "opp-suspend" property present to be suspend OPP, it
> can speed up the suspend/resume process.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> drivers/opp/of.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
Please update the DT bindings first.
FWIW, all three patches look fine otherwise.
--
viresh
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 1/3] opp: of: Support multiple suspend OPPs defined in DT
2019-07-09 7:51 ` [PATCH 1/3] opp: of: Support multiple suspend OPPs defined in DT Viresh Kumar
@ 2019-07-09 7:54 ` Anson Huang
0 siblings, 0 replies; 5+ messages in thread
From: Anson Huang @ 2019-07-09 7:54 UTC (permalink / raw)
To: Viresh Kumar
Cc: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org,
s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com,
vireshk@kernel.org, nm@ti.com, sboyd@kernel.org, Leonard Crestez,
Aisheng Dong, Daniel Baluta, Jacky Bai, l.stach@pengutronix.de,
Abel Vesa, ccaione@baylibre.com, angus@akkea.ca,
andrew.smirnov@gmail.com, agx
Hi, Viresh
> On 09-07-19, 15:10, Anson.Huang@nxp.com wrote:
> > From: Anson Huang <Anson.Huang@nxp.com>
> >
> > With property "opp-supported-hw" introduced, the OPP table in DT could
> > be a large OPP table and ONLY a subset of OPPs are available, based on
> > the version of the hardware running on. That introduces restriction of
> > using "opp-suspend"
> > property to define the suspend OPP, as we are NOT sure if the OPP
> > containing "opp-suspend" property is available for the hardware
> > running on, and the of opp core does NOT allow multiple suspend OPPs
> > defined in DT OPP table.
> >
> > To eliminate this restrition, make of opp core allow multiple suspend
> > OPPs defined in DT, and pick the OPP with highest rate and with
> > "opp-suspend" property present to be suspend OPP, it can speed up the
> > suspend/resume process.
> >
> > Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> > ---
> > drivers/opp/of.c | 9 ++++++---
> > 1 file changed, 6 insertions(+), 3 deletions(-)
>
> Please update the DT bindings first.
OK, will send a V2 containing DT binding changes.
>
> FWIW, all three patches look fine otherwise.
Thank you!
Anson.
^ permalink raw reply [flat|nested] 5+ messages in thread