arm64: dts: renesas: Upgrade to PSCI v1.0 to support Suspend-to-RAM
Subsystems (2)
Geert Uytterhoeven
maintainerv2 cover arm64: dts: renesas: Upgrade to PSCI v1.0 to support Suspend-to-RAM
Hi Simon, Magnus,
This patch series upgrades the version of the PSCI firmware, as advertised in DT on Renesas R-Car Gen3 systems, from v0.2 to v1.0.
Note that this series does not have any runtime effects: as of PSCI v0.2, PSCI provides a VERSION API. Hence Linux always detected the actual version, regardless of what was stated in DT, and enabled v1.0 features like system suspend:
PSCIv1.0 detected in firmware.
However, it is better to have the real hardware^H^H^H^H^H^H^H^Hfirmware description in DT.
Changes compared to v1:
- Keep "arm,psci-0.2".
Tested on Salvator-X (both H3 and M3-W) with firmware v2.16.0, but I do have old boot logs showing that PSCIv1.0 has been detected for a long time.
Thanks for applying!
Khiem Nguyen (2):
arm64: dts: r8a7795: Upgrade to PSCI v1.0 to support Suspend-to-RAM
arm64: dts: r8a7796: Upgrade to PSCI v1.0 to support Suspend-to-RAM
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 +- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 12 lines
2.7.4
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus TorvaldsGeert Uytterhoeven
maintainerPATCH v2 1/2 arm64: dts: r8a7795: Upgrade to PSCI v1.0 to support Suspend-to-RAM
From: Khiem Nguyen <[email protected]>
Quoted 1 line
From PSCI v1.0, Suspend-to-RAM is supported via
SYSTEM_SUSPENDPSCI
function call. Hence, upgrade PSCI version for R-Car H3 to support Suspend-to-RAM.
The Suspend-to-RAM is highly dependent on ARM Trusted Firwmare support since necessary callback functions will be registered after a query to ARM Trusted Firmware about SYSTEM_SUSPEND support.
Since PSCI v1.0 is backward compatible with PSCI v0.2, CPU Hotplug and CPUIdle should be able to work normally with this change.
---
Khiem: I've updated your email address.
v2:
- Keep "arm,psci-0.2".
--- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +1 -1
@@ -29,7 +29,7 @@ }; psci { - compatible = "arm,psci-0.2"; + compatible = "arm,psci-1.0", "arm,psci-0.2"; method = "smc"; };
Signature · 1 line
2.7.4
Geert Uytterhoeven
maintainerPATCH v2 2/2 arm64: dts: r8a7796: Upgrade to PSCI v1.0 to support Suspend-to-RAM
In reply to Geert UytterhoevenFrom: Khiem Nguyen <[email protected]>
Quoted 1 line
From PSCI v1.0, Suspend-to-RAM is supported via
SYSTEM_SUSPENDPSCI
function call. Hence, upgrade PSCI version for R-Car M3-W to support Suspend-to-RAM.
The Suspend-to-RAM is highly dependent on ARM Trusted Firwmare support since necessary callback functions will be registered after a query to ARM Trusted Firmware about SYSTEM_SUSPEND support.
Since PSCI v1.0 is backward compatible with PSCI v0.2, CPU Hotplug and CPUIdle should be able to work normally with this change.
---
Khiem: I've updated your email address.
v2:
- Keep "arm,psci-0.2".
--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +1 -1
@@ -29,7 +29,7 @@ }; psci { - compatible = "arm,psci-0.2"; + compatible = "arm,psci-1.0", "arm,psci-0.2"; method = "smc"; };
Signature · 1 line
2.7.4
v2 cover arm64: dts: renesas: Upgrade to PSCI v1.0 to support Suspend-to-RAM
In reply to Geert UytterhoevenQuoted 15 lines · Geert Uytterhoeven
Hi Simon, Magnus,
This patch series upgrades the version of the PSCI firmware, as advertised in DT on Renesas R-Car Gen3 systems, from v0.2 to v1.0.
Note that this series does not have any runtime effects: as of PSCI v0.2, PSCI provides a VERSION API. Hence Linux always detected the actual version, regardless of what was stated in DT, and enabled v1.0 features like system suspend:
PSCIv1.0 detected in firmware.
However, it is better to have the real hardware^H^H^H^H^H^H^H^Hfirmware description in DT.
Quoted 8 lines
Changes compared to v1:
- Keep "arm,psci-0.2".Tested on Salvator-X (both H3 and M3-W) with firmware v2.16.0, but I do have old boot logs showing that PSCIv1.0 has been detected for a long time.
Thanks for applying!
Thanks, I have queued these up for v4.12.