Skip to contentSkip to conversation

arm64: dts: qcom: sdm845: Fix PSCI power domain names

PATCH Superseded David Heidelberg 4 participants 7 messages Aug 23, 2023 – Aug 25, 2023

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 arm64: dts: qcom: sdm845: Fix PSCI power domain names

The original commit hasn't been updated according to refactoring done in sdm845.dtsi.

Fixes a1ade6cac5a2 ("arm64: dts: qcom: sdm845: Switch PSCI cpu idle states from PC to OSI")
---
 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +9 -9
index 7b8a359d88c0..d86b0d112110 100644
@@ -144,15 +144,15 @@ panel_in_edp: endpoint {
 };
 
 &psci {
-	/delete-node/ cpu0;
-	/delete-node/ cpu1;
-	/delete-node/ cpu2;
-	/delete-node/ cpu3;
-	/delete-node/ cpu4;
-	/delete-node/ cpu5;
-	/delete-node/ cpu6;
-	/delete-node/ cpu7;
-	/delete-node/ cpu-cluster0;
+	/delete-node/ power-domain-cpu0;
+	/delete-node/ power-domain-cpu1;
+	/delete-node/ power-domain-cpu2;
+	/delete-node/ power-domain-cpu3;
+	/delete-node/ power-domain-cpu4;
+	/delete-node/ power-domain-cpu5;
+	/delete-node/ power-domain-cpu6;
+	/delete-node/ power-domain-cpu7;
+	/delete-node/ power-domain-cluster;
 };
 
 &cpus {
Signature · 1 line
2.40.1
#1 lore raw

PATCH 2/2 arm64: dts: qcom: sdm845: cheza doesn't support LMh node

Cheza firmware doesn't allow controlling LMh from the operating system.

Fixes 36c6581214c4 ("arm64: dts: qcom: sdm845: Add support for LMh node")
---
 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +14 -0
index d86b0d112110..8cc8fc290fd3 100644
@@ -143,6 +143,10 @@ panel_in_edp: endpoint {
 	};
 };
 
+&cpufreq_hw {
+	/delete-property/ interrupts-extended; /* reference to lmh_cluster[01] */
+};
+
 &psci {
 	/delete-node/ power-domain-cpu0;
 	/delete-node/ power-domain-cpu1;
@@ -275,6 +279,14 @@ &BIG_CPU_SLEEP_1
 			   &CLUSTER_SLEEP_0>;
 };
 
+&lmh_cluster0 {
+	status = "disabled";
+};
+
+&lmh_cluster1 {
+	status = "disabled";
+};
+
 /*
  * Reserved memory changes
  *
@@ -338,6 +350,8 @@ flash@0 {
 
 
 &apps_rsc {
+	/delete-property/ power-domains;
+
 	regulators-0 {
 		compatible = "qcom,pm8998-rpmh-regulators";
 		qcom,pmic-id = "a";
Signature · 1 line
2.40.1
#2 lore raw

Re: [PATCH 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node

Hi,

Quoted 26 lines · David Heidelberg

Cheza firmware doesn't allow controlling LMh from the operating system.

Fixes 36c6581214c4 ("arm64: dts: qcom: sdm845: Add support for LMh node")
---
 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +4 -0
index d86b0d112110..8cc8fc290fd3 100644
@@ -143,6 +143,10 @@ panel_in_edp: endpoint {
        };
 };
 
+&cpufreq_hw {
+       /delete-property/ interrupts-extended; /* reference to lmh_cluster[01] */
+};
+
 &psci {
        /delete-node/ power-domain-cpu0;
        /delete-node/ power-domain-cpu1;

arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi &BIG_CPU_SLEEP_1 · line 288

Quoted 10 lines
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +7 -0
@@ -275,6 +279,14 @@ &BIG_CPU_SLEEP_1
                           &CLUSTER_SLEEP_0>;
 };
 
+&lmh_cluster0 {
+       status = "disabled";
+};
+
+&lmh_cluster1 {
+       status = "disabled";
+};

It's not a huge deal to me, but as I understand it usually you'd put the "disabled" in sdm845.dtsi and then it would be up to all the other sdm845 boards to mark this as "okay".

arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi flash@0 { · line 354

Quoted 9 lines
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +2 -0
 /*
  * Reserved memory changes
  *
@@ -338,6 +350,8 @@ flash@0 {
 
 
 &apps_rsc {
+       /delete-property/ power-domains;
+

Is the deletion of the "power-domains" here related to LMh? That seems like it was added to sdm845.dtsi in a separate commit that doesn't talk about LMh at all...

-Doug

#3 lore raw

Re: [PATCH 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node

Quoted 33 lines · Doug Anderson

Hi,

Quoted 29 lines · David Heidelberg

Cheza firmware doesn't allow controlling LMh from the operating system.

Fixes 36c6581214c4 ("arm64: dts: qcom: sdm845: Add support for LMh node")
---
 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +4 -0
index d86b0d112110..8cc8fc290fd3 100644
@@ -143,6 +143,10 @@ panel_in_edp: endpoint {
        };
 };
 
+&cpufreq_hw {
+       /delete-property/ interrupts-extended; /* reference to lmh_cluster[01] */
+};
+
 &psci {
        /delete-node/ power-domain-cpu0;
        /delete-node/ power-domain-cpu1;
@@ -275,6 +279,14 @@ &BIG_CPU_SLEEP_1
                           &CLUSTER_SLEEP_0>;
 };
 
Quoted 11 lines

arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi &BIG_CPU_SLEEP_1 · line 288

Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +7 -0
+&lmh_cluster0 {
+       status = "disabled";
+};
+
+&lmh_cluster1 {
+       status = "disabled";
+};

It's not a huge deal to me, but as I understand it usually you'd put the "disabled" in sdm845.dtsi and then it would be up to all the other sdm845 boards to mark this as "okay".

That depends. If a device is usually available (like LMH) and only disabled in some obscure cases, it is better to disable it only in this obscure case (in my opinion).

Quoted 6 lines
Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +0 -0
 /*
  * Reserved memory changes
  *
@@ -338,6 +350,8 @@ flash@0 {
 
 
Quoted 7 lines

arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi flash@0 { · line 354

Quoted 3 lines
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +2 -0
 &apps_rsc {
+       /delete-property/ power-domains;
+

Is the deletion of the "power-domains" here related to LMh? That seems like it was added to sdm845.dtsi in a separate commit that doesn't talk about LMh at all...

CLUSTER_PD becomes unavailable after the previous patch. So maybe you are right and this chunk should be moved to the previous patch.

Signature · 2 lines
With best wishes
Dmitry
#4 lore raw

Re: [PATCH 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node

In reply to Doug Anderson
Quoted 32 lines · Doug Anderson

Hi,

Quoted 29 lines · David Heidelberg

Cheza firmware doesn't allow controlling LMh from the operating system.

Fixes 36c6581214c4 ("arm64: dts: qcom: sdm845: Add support for LMh node")
---
 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +4 -0
index d86b0d112110..8cc8fc290fd3 100644
@@ -143,6 +143,10 @@ panel_in_edp: endpoint {
        };
 };
 
+&cpufreq_hw {
+       /delete-property/ interrupts-extended; /* reference to lmh_cluster[01] */
+};
+
 &psci {
        /delete-node/ power-domain-cpu0;
        /delete-node/ power-domain-cpu1;
@@ -275,6 +279,14 @@ &BIG_CPU_SLEEP_1
                           &CLUSTER_SLEEP_0>;
 };
 
Quoted 11 lines

arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi &BIG_CPU_SLEEP_1 · line 288

Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +7 -0
+&lmh_cluster0 {
+       status = "disabled";
+};
+
+&lmh_cluster1 {
+       status = "disabled";
+};

It's not a huge deal to me, but as I understand it usually you'd put the "disabled" in sdm845.dtsi and then it would be up to all the other sdm845 boards to mark this as "okay".

it's more of a status = "nonstandardfirmware" :/

Quoted 8 lines
Quoted 8 lines
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +0 -0
 /*
  * Reserved memory changes
  *
@@ -338,6 +350,8 @@ flash@0 {
 
 
Quoted 7 lines

arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi flash@0 { · line 354

Quoted 3 lines
arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +2 -0
 &apps_rsc {
+       /delete-property/ power-domains;
+

Is the deletion of the "power-domains" here related to LMh? That seems like it was added to sdm845.dtsi in a separate commit that doesn't talk about LMh at all...

psci

Reviewed-by on v1 1/2
#5 lore raw
In reply to David Heidelberg

Hi,

Quoted 10 lines · David Heidelberg

The original commit hasn't been updated according to refactoring done in sdm845.dtsi.

Fixes a1ade6cac5a2 ("arm64: dts: qcom: sdm845: Switch PSCI cpu idle states from PC to OSI")
---
 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)