From: neil.armstrong@linaro.org
To: christian.koever-draxl@student.uibk.ac.at, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, khilman@baylibre.com,
jbrunet@baylibre.com, martin.blumenstingl@googlemail.com
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-amlogic@lists.infradead.org,
"Christian Stefan Kövér-Draxl" <ckoever@outlook.de>
Subject: Re: [PATCH 03/10] arm64: dts: amlogic: meson-s4: add the PSCI CPU idle state
Date: Fri, 6 Nov 2026 11:54:03 +0100 [thread overview]
Message-ID: <608dd5f2-4136-4f3e-8546-2242f43cfbaf@linaro.org> (raw)
In-Reply-To: <20261106104659.54656-4-christian.koever-draxl@student.uibk.ac.at>
On 11/6/26 11:46, christian.koever-draxl@student.uibk.ac.at wrote:
> From: Christian Stefan Kövér-Draxl <ckoever@outlook.de>
>
> The firmware implements PSCI 1.0 without OS-initiated mode. Add the
> core power-down state the vendor kernel uses (power state 0x10000).
>
> Signed-off-by: Christian Stefan Kövér-Draxl <ckoever@outlook.de>
> ---
> arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 24 +++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi
> index 675db02a8d5e..57270fbfb4a7 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi
> @@ -22,6 +22,7 @@ cpu0: cpu@0 {
> compatible = "arm,cortex-a35";
> reg = <0x0 0x0>;
> enable-method = "psci";
> + cpu-idle-states = <&cpu_sleep>;
> d-cache-line-size = <64>;
> d-cache-size = <0x8000>;
> d-cache-sets = <128>;
> @@ -36,6 +37,7 @@ cpu1: cpu@1 {
> compatible = "arm,cortex-a35";
> reg = <0x0 0x1>;
> enable-method = "psci";
> + cpu-idle-states = <&cpu_sleep>;
> d-cache-line-size = <64>;
> d-cache-size = <0x8000>;
> d-cache-sets = <128>;
> @@ -50,6 +52,7 @@ cpu2: cpu@2 {
> compatible = "arm,cortex-a35";
> reg = <0x0 0x2>;
> enable-method = "psci";
> + cpu-idle-states = <&cpu_sleep>;
> d-cache-line-size = <64>;
> d-cache-size = <0x8000>;
> d-cache-sets = <128>;
> @@ -64,6 +67,7 @@ cpu3: cpu@3 {
> compatible = "arm,cortex-a35";
> reg = <0x0 0x3>;
> enable-method = "psci";
> + cpu-idle-states = <&cpu_sleep>;
> d-cache-line-size = <64>;
> d-cache-size = <0x8000>;
> d-cache-sets = <128>;
> @@ -82,6 +86,26 @@ l2: l2-cache0 {
> cache-line-size = <64>;
> cache-sets = <1024>;
> };
> +
> + /*
> + * The firmware reports PSCI 1.0 without OSI, so the platform
> + * itself decides how deep to go and the kernel only has this
> + * one core state to offer. The suspend parameter is in the
> + * original format - bit 16 asks for a power down at affinity
> + * level 0 - and matches what the vendor kernel passes.
> + */
Drop this comment and move it to the commit message
> + idle-states {
> + entry-method = "psci";
> +
> + cpu_sleep: cpu-sleep {
> + compatible = "arm,idle-state";
> + arm,psci-suspend-param = <0x00010000>;
> + local-timer-stop;
> + entry-latency-us = <4000>;
> + exit-latency-us = <5000>;
> + min-residency-us = <10000>;
> + };
> + };
> };
>
> timer {
With that:
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Thanks,
Neil
next prev parent reply other threads:[~2026-11-06 10:54 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 10:46 [PATCH 00/10] arm64: dts: amlogic: S4 SoC additions and the Amediatech X98Q christian.koever-draxl
2026-11-06 10:46 ` [PATCH 01/10] dt-bindings: arm: amlogic: add " christian.koever-draxl
2026-11-06 17:17 ` Conor Dooley
2026-11-06 10:46 ` [PATCH 02/10] arm64: dts: amlogic: meson-s4: describe the CPU caches christian.koever-draxl
2026-11-06 10:52 ` neil.armstrong
2026-11-06 10:46 ` [PATCH 03/10] arm64: dts: amlogic: meson-s4: add the PSCI CPU idle state christian.koever-draxl
2026-11-06 10:54 ` neil.armstrong [this message]
2026-11-06 10:46 ` [PATCH 04/10] arm64: dts: amlogic: meson-s4: use the S4 secure monitor compatible christian.koever-draxl
2026-11-06 10:46 ` [PATCH 05/10] arm64: dts: amlogic: meson-s4: add the Mali GPU christian.koever-draxl
2026-11-06 17:18 ` Conor Dooley
2026-11-06 10:46 ` [PATCH 06/10] arm64: dts: amlogic: meson-s4: add the CPU thermal sensor and zone christian.koever-draxl
2026-11-06 10:46 ` [PATCH 07/10] arm64: dts: amlogic: meson-s4: add the GE2D christian.koever-draxl
2026-11-06 10:46 ` [PATCH 08/10] arm64: dts: amlogic: meson-s4: add the USB host christian.koever-draxl
2026-11-06 10:55 ` neil.armstrong
2026-11-06 10:46 ` [PATCH 09/10] arm64: dts: amlogic: meson-s4: add the AO CEC controller christian.koever-draxl
2026-11-06 10:55 ` neil.armstrong
2026-11-06 17:19 ` Conor Dooley
2026-11-06 10:46 ` [PATCH 10/10] arm64: dts: amlogic: add the Amediatech X98Q christian.koever-draxl
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=608dd5f2-4136-4f3e-8546-2242f43cfbaf@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=christian.koever-draxl@student.uibk.ac.at \
--cc=ckoever@outlook.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=robh@kernel.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
all inboxes | Powered by JetHome®