From: Abel Vesa <abelvesa@gmail.com> To: Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <marc.zyngier@arm.com>, Lucas Stach <l.stach@pengutronix.de>, Bai Ping <ping.bai@nxp.com>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Leonard Crestez <leonard.crestez@nxp.com> Cc: NXP Linux Team <linux-imx@nxp.com>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Carlo Caione <ccaione@baylibre.com> Subject: [RFC 2/2] arm64: dts: imx8mq: Add idle states and gpcv2 wake_request broken property Date: Mon, 10 Jun 2019 15:13:46 +0300 [thread overview] Message-ID: <20190610121346.15779-3-abel.vesa@nxp.com> (raw) In-Reply-To: <20190610121346.15779-1-abel.vesa@nxp.com> Add the cpu-sleep idle state with all the necessary parameters and also add the cpu-idle-states to the cpu nodes. The 'broken-wake-request-signals' property is used to let the irq-imx-gpcv2 driver know that the wake request signals from GIC are not linked to the GPC at all and, therefore, the driver should make use of the dedicated workaround to explicitly wake up the target core on every IPI. Signed-off-by: Abel Vesa <abel.vesa@nxp.com> --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index d09b808..7217138 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -103,6 +103,7 @@ #cooling-cells = <2>; nvmem-cells = <&cpu_speed_grade>; nvmem-cell-names = "speed_grade"; + cpu-idle-states = <&CPU_SLEEP>; }; A53_1: cpu@1 { @@ -115,6 +116,7 @@ next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; #cooling-cells = <2>; + cpu-idle-states = <&CPU_SLEEP>; }; A53_2: cpu@2 { @@ -127,6 +129,7 @@ next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; #cooling-cells = <2>; + cpu-idle-states = <&CPU_SLEEP>; }; A53_3: cpu@3 { @@ -139,11 +142,27 @@ next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; #cooling-cells = <2>; + cpu-idle-states = <&CPU_SLEEP>; }; A53_L2: l2-cache0 { compatible = "cache"; }; + + idle-states { + entry-method = "psci"; + + CPU_SLEEP: cpu-sleep { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x0010033>; + local-timer-stop; + entry-latency-us = <1000>; + exit-latency-us = <700>; + min-residency-us = <2700>; + wakeup-latency-us = <1500>; + }; + }; + }; a53_opp_table: opp-table { @@ -502,6 +521,7 @@ reg = <0x303a0000 0x10000>; interrupt-parent = <&gic>; interrupt-controller; + broken-wake-request-signals; #interrupt-cells = <3>; pgc { -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: Abel Vesa <abelvesa@gmail.com> To: Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <marc.zyngier@arm.com>, Lucas Stach <l.stach@pengutronix.de>, Bai Ping <ping.bai@nxp.com>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Leonard Crestez <leonard.crestez@nxp.com> Cc: devicetree@vger.kernel.org, Carlo Caione <ccaione@baylibre.com>, NXP Linux Team <linux-imx@nxp.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFC 2/2] arm64: dts: imx8mq: Add idle states and gpcv2 wake_request broken property Date: Mon, 10 Jun 2019 15:13:46 +0300 [thread overview] Message-ID: <20190610121346.15779-3-abel.vesa@nxp.com> (raw) In-Reply-To: <20190610121346.15779-1-abel.vesa@nxp.com> Add the cpu-sleep idle state with all the necessary parameters and also add the cpu-idle-states to the cpu nodes. The 'broken-wake-request-signals' property is used to let the irq-imx-gpcv2 driver know that the wake request signals from GIC are not linked to the GPC at all and, therefore, the driver should make use of the dedicated workaround to explicitly wake up the target core on every IPI. Signed-off-by: Abel Vesa <abel.vesa@nxp.com> --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index d09b808..7217138 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -103,6 +103,7 @@ #cooling-cells = <2>; nvmem-cells = <&cpu_speed_grade>; nvmem-cell-names = "speed_grade"; + cpu-idle-states = <&CPU_SLEEP>; }; A53_1: cpu@1 { @@ -115,6 +116,7 @@ next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; #cooling-cells = <2>; + cpu-idle-states = <&CPU_SLEEP>; }; A53_2: cpu@2 { @@ -127,6 +129,7 @@ next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; #cooling-cells = <2>; + cpu-idle-states = <&CPU_SLEEP>; }; A53_3: cpu@3 { @@ -139,11 +142,27 @@ next-level-cache = <&A53_L2>; operating-points-v2 = <&a53_opp_table>; #cooling-cells = <2>; + cpu-idle-states = <&CPU_SLEEP>; }; A53_L2: l2-cache0 { compatible = "cache"; }; + + idle-states { + entry-method = "psci"; + + CPU_SLEEP: cpu-sleep { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x0010033>; + local-timer-stop; + entry-latency-us = <1000>; + exit-latency-us = <700>; + min-residency-us = <2700>; + wakeup-latency-us = <1500>; + }; + }; + }; a53_opp_table: opp-table { @@ -502,6 +521,7 @@ reg = <0x303a0000 0x10000>; interrupt-parent = <&gic>; interrupt-controller; + broken-wake-request-signals; #interrupt-cells = <3>; pgc { -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-06-10 12:16 UTC|newest] Thread overview: 96+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-06-10 12:13 [RFC 0/2] Add workaround for core wake-up on IPI for i.MX8MQ Abel Vesa 2019-06-10 12:13 ` Abel Vesa 2019-06-10 12:13 ` Abel Vesa 2019-06-10 12:13 ` [RFC 1/2] irqchip: irq-imx-gpcv2: Add workaround for i.MX8MQ ERR11171 Abel Vesa 2019-06-10 12:13 ` Abel Vesa 2019-06-10 12:38 ` Leonard Crestez 2019-06-10 12:38 ` Leonard Crestez 2019-06-10 12:38 ` Leonard Crestez 2019-06-10 13:24 ` Marc Zyngier 2019-06-10 13:24 ` Marc Zyngier 2019-06-10 13:38 ` Abel Vesa 2019-06-10 13:38 ` Abel Vesa 2019-06-10 13:38 ` Abel Vesa 2019-06-10 13:51 ` Marc Zyngier 2019-06-10 13:51 ` Marc Zyngier 2019-06-10 13:51 ` Marc Zyngier 2019-06-10 14:12 ` Abel Vesa 2019-06-10 14:12 ` Abel Vesa 2019-06-10 14:12 ` Abel Vesa 2019-06-10 14:28 ` Marc Zyngier 2019-06-10 14:28 ` Marc Zyngier 2019-06-10 14:28 ` Marc Zyngier 2019-06-10 12:13 ` Abel Vesa [this message] 2019-06-10 12:13 ` [RFC 2/2] arm64: dts: imx8mq: Add idle states and gpcv2 wake_request broken property Abel Vesa 2019-06-10 13:19 ` [RFC 0/2] Add workaround for core wake-up on IPI for i.MX8MQ Mark Rutland 2019-06-10 13:19 ` Mark Rutland 2019-06-10 13:29 ` Abel Vesa 2019-06-10 13:29 ` Abel Vesa 2019-06-10 13:29 ` Abel Vesa 2019-06-10 13:39 ` Marc Zyngier 2019-06-10 13:39 ` Marc Zyngier 2019-06-10 13:39 ` Marc Zyngier 2019-06-10 13:55 ` Abel Vesa 2019-06-10 13:55 ` Abel Vesa 2019-06-10 13:55 ` Abel Vesa 2019-06-10 14:07 ` Marc Zyngier 2019-06-10 14:07 ` Marc Zyngier 2019-06-10 14:07 ` Marc Zyngier 2019-06-10 14:32 ` Leonard Crestez 2019-06-10 14:32 ` Leonard Crestez 2019-06-10 14:32 ` Leonard Crestez 2019-06-10 14:52 ` Marc Zyngier 2019-06-10 14:52 ` Marc Zyngier 2019-06-10 14:52 ` Marc Zyngier 2019-06-12 7:14 ` Thomas Gleixner 2019-06-12 7:14 ` Thomas Gleixner 2019-06-12 7:14 ` Thomas Gleixner 2019-06-12 7:35 ` Marc Zyngier 2019-06-12 7:35 ` Marc Zyngier 2019-06-12 7:35 ` Marc Zyngier 2019-06-12 7:37 ` Thomas Gleixner 2019-06-12 7:37 ` Thomas Gleixner 2019-06-12 7:37 ` Thomas Gleixner 2019-06-23 11:47 ` Martin Kepplinger 2019-06-23 11:47 ` Martin Kepplinger 2019-06-28 8:54 ` Abel Vesa 2019-06-28 8:54 ` Abel Vesa 2019-06-28 8:54 ` Abel Vesa 2019-07-02 6:47 ` Martin Kepplinger 2019-07-02 6:47 ` Martin Kepplinger 2019-07-02 6:47 ` Martin Kepplinger 2019-07-02 11:33 ` Abel Vesa 2019-07-02 11:33 ` Abel Vesa 2019-07-02 11:33 ` Abel Vesa 2019-07-08 7:54 ` Martin Kepplinger 2019-07-08 7:54 ` Martin Kepplinger 2019-07-08 7:54 ` Martin Kepplinger 2019-07-08 12:20 ` Martin Kepplinger 2019-07-08 12:20 ` Martin Kepplinger 2019-07-08 12:20 ` Martin Kepplinger 2019-10-30 6:11 ` Martin Kepplinger 2019-10-30 6:11 ` Martin Kepplinger 2019-10-30 7:33 ` Martin Kepplinger 2019-10-30 7:33 ` Martin Kepplinger 2019-10-30 8:08 ` Abel Vesa 2019-10-30 8:08 ` Abel Vesa 2019-10-30 8:14 ` Martin Kepplinger 2019-10-30 8:14 ` Martin Kepplinger 2019-11-04 8:49 ` Martin Kepplinger 2019-11-04 8:49 ` Martin Kepplinger 2019-11-04 10:35 ` Abel Vesa 2019-11-04 10:35 ` Abel Vesa 2019-11-06 11:59 ` Martin Kepplinger 2019-11-06 11:59 ` Martin Kepplinger 2019-11-06 22:36 ` Leonard Crestez 2019-11-06 22:36 ` Leonard Crestez 2019-11-08 11:21 ` Martin Kepplinger 2019-11-08 11:21 ` Martin Kepplinger 2019-11-08 11:50 ` Abel Vesa 2019-11-08 11:50 ` Abel Vesa 2019-11-08 14:17 ` Martin Kepplinger 2019-11-08 14:17 ` Martin Kepplinger 2019-11-11 7:54 ` Abel Vesa 2019-11-11 7:54 ` Abel Vesa 2019-11-25 17:23 ` Martin Kepplinger 2019-11-25 17:23 ` Martin Kepplinger
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=20190610121346.15779-3-abel.vesa@nxp.com \ --to=abelvesa@gmail.com \ --cc=ccaione@baylibre.com \ --cc=devicetree@vger.kernel.org \ --cc=festevam@gmail.com \ --cc=kernel@pengutronix.de \ --cc=l.stach@pengutronix.de \ --cc=leonard.crestez@nxp.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-imx@nxp.com \ --cc=linux-kernel@vger.kernel.org \ --cc=lorenzo.pieralisi@arm.com \ --cc=marc.zyngier@arm.com \ --cc=mark.rutland@arm.com \ --cc=ping.bai@nxp.com \ --cc=robh+dt@kernel.org \ --cc=s.hauer@pengutronix.de \ --cc=shawnguo@kernel.org \ --cc=tglx@linutronix.de \ /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: linkBe 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.