devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: dts: qcom: sdm845: Fix PSCI power domain names
@ 2023-08-23 22:27 David Heidelberg
  2023-08-23 22:27 ` [PATCH 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node David Heidelberg
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: David Heidelberg @ 2023-08-23 22:27 UTC (permalink / raw)
  To: cros-qcom-dts-watchers, Andy Gross, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Abel Vesa
  Cc: David Heidelberg, Dmitry Baryshkov, Krzysztof Kozlowski,
	linux-arm-msm, devicetree, linux-kernel

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")
Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: David Heidelberg <david@ixit.cz>
---
 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
index 7b8a359d88c0..d86b0d112110 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
@@ -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 {
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node
  2023-08-23 22:27 [PATCH 1/2] arm64: dts: qcom: sdm845: Fix PSCI power domain names David Heidelberg
@ 2023-08-23 22:27 ` David Heidelberg
  2023-08-24 18:24   ` Doug Anderson
  2023-08-24 18:25 ` [PATCH 1/2] arm64: dts: qcom: sdm845: Fix PSCI power domain names Doug Anderson
  2023-08-25 18:34 ` Konrad Dybcio
  2 siblings, 1 reply; 7+ messages in thread
From: David Heidelberg @ 2023-08-23 22:27 UTC (permalink / raw)
  To: cros-qcom-dts-watchers, Andy Gross, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Thara Gopinath
  Cc: David Heidelberg, Dmitry Baryshkov, linux-arm-msm, devicetree,
	linux-kernel

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

Fixes: 36c6581214c4 ("arm64: dts: qcom: sdm845: Add support for LMh node")
Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: David Heidelberg <david@ixit.cz>
---
 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
index d86b0d112110..8cc8fc290fd3 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
@@ -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";
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node
  2023-08-23 22:27 ` [PATCH 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node David Heidelberg
@ 2023-08-24 18:24   ` Doug Anderson
  2023-08-24 21:07     ` Dmitry Baryshkov
  2023-08-25 18:36     ` Konrad Dybcio
  0 siblings, 2 replies; 7+ messages in thread
From: Doug Anderson @ 2023-08-24 18:24 UTC (permalink / raw)
  To: David Heidelberg
  Cc: cros-qcom-dts-watchers, Andy Gross, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Thara Gopinath, Dmitry Baryshkov, linux-arm-msm, devicetree,
	linux-kernel

Hi,

On Wed, Aug 23, 2023 at 3:28 PM David Heidelberg <david@ixit.cz> wrote:
>
> Cheza firmware doesn't allow controlling LMh from the operating system.
>
> Fixes: 36c6581214c4 ("arm64: dts: qcom: sdm845: Add support for LMh node")
> Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
>  arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
> index d86b0d112110..8cc8fc290fd3 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
> @@ -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";
> +};

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".


>  /*
>   * 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] arm64: dts: qcom: sdm845: Fix PSCI power domain names
  2023-08-23 22:27 [PATCH 1/2] arm64: dts: qcom: sdm845: Fix PSCI power domain names David Heidelberg
  2023-08-23 22:27 ` [PATCH 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node David Heidelberg
@ 2023-08-24 18:25 ` Doug Anderson
  2023-08-25 18:34 ` Konrad Dybcio
  2 siblings, 0 replies; 7+ messages in thread
From: Doug Anderson @ 2023-08-24 18:25 UTC (permalink / raw)
  To: David Heidelberg
  Cc: cros-qcom-dts-watchers, Andy Gross, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Abel Vesa, Dmitry Baryshkov, Krzysztof Kozlowski, linux-arm-msm,
	devicetree, linux-kernel

Hi,

On Wed, Aug 23, 2023 at 3:28 PM David Heidelberg <david@ixit.cz> wrote:
>
> 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")
> Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
>  arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)

Reviewed-by: Douglas Anderson <dianders@chromium.org>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node
  2023-08-24 18:24   ` Doug Anderson
@ 2023-08-24 21:07     ` Dmitry Baryshkov
  2023-08-25 18:36     ` Konrad Dybcio
  1 sibling, 0 replies; 7+ messages in thread
From: Dmitry Baryshkov @ 2023-08-24 21:07 UTC (permalink / raw)
  To: Doug Anderson
  Cc: David Heidelberg, cros-qcom-dts-watchers, Andy Gross,
	Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Thara Gopinath, linux-arm-msm, devicetree,
	linux-kernel

On Thu, 24 Aug 2023 at 21:25, Doug Anderson <dianders@chromium.org> wrote:
>
> Hi,
>
> On Wed, Aug 23, 2023 at 3:28 PM David Heidelberg <david@ixit.cz> wrote:
> >
> > Cheza firmware doesn't allow controlling LMh from the operating system.
> >
> > Fixes: 36c6581214c4 ("arm64: dts: qcom: sdm845: Add support for LMh node")
> > Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> > Signed-off-by: David Heidelberg <david@ixit.cz>
> > ---
> >  arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
> >  1 file changed, 14 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
> > index d86b0d112110..8cc8fc290fd3 100644
> > --- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
> > +++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
> > @@ -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";
> > +};
>
> 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).

> >  /*
> >   * 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...

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

-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] arm64: dts: qcom: sdm845: Fix PSCI power domain names
  2023-08-23 22:27 [PATCH 1/2] arm64: dts: qcom: sdm845: Fix PSCI power domain names David Heidelberg
  2023-08-23 22:27 ` [PATCH 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node David Heidelberg
  2023-08-24 18:25 ` [PATCH 1/2] arm64: dts: qcom: sdm845: Fix PSCI power domain names Doug Anderson
@ 2023-08-25 18:34 ` Konrad Dybcio
  2 siblings, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2023-08-25 18:34 UTC (permalink / raw)
  To: David Heidelberg, cros-qcom-dts-watchers, Andy Gross,
	Bjorn Andersson, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Abel Vesa
  Cc: Dmitry Baryshkov, Krzysztof Kozlowski, linux-arm-msm, devicetree,
	linux-kernel

On 24.08.2023 00:27, David Heidelberg wrote:
> 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")
> Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
It's much less error-prone to do:

/delete-node/ &label

Konrad

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node
  2023-08-24 18:24   ` Doug Anderson
  2023-08-24 21:07     ` Dmitry Baryshkov
@ 2023-08-25 18:36     ` Konrad Dybcio
  1 sibling, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2023-08-25 18:36 UTC (permalink / raw)
  To: Doug Anderson, David Heidelberg
  Cc: cros-qcom-dts-watchers, Andy Gross, Bjorn Andersson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Thara Gopinath,
	Dmitry Baryshkov, linux-arm-msm, devicetree, linux-kernel

On 24.08.2023 20:24, Doug Anderson wrote:
> Hi,
> 
> On Wed, Aug 23, 2023 at 3:28 PM David Heidelberg <david@ixit.cz> wrote:
>>
>> Cheza firmware doesn't allow controlling LMh from the operating system.
>>
>> Fixes: 36c6581214c4 ("arm64: dts: qcom: sdm845: Add support for LMh node")
>> Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>> Signed-off-by: David Heidelberg <david@ixit.cz>
>> ---
>>  arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 14 ++++++++++++++
>>  1 file changed, 14 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
>> index d86b0d112110..8cc8fc290fd3 100644
>> --- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
>> @@ -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";
>> +};
> 
> 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" :/

> 
> 
>>  /*
>>   * 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...
psci


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-25 18:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-23 22:27 [PATCH 1/2] arm64: dts: qcom: sdm845: Fix PSCI power domain names David Heidelberg
2023-08-23 22:27 ` [PATCH 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node David Heidelberg
2023-08-24 18:24   ` Doug Anderson
2023-08-24 21:07     ` Dmitry Baryshkov
2023-08-25 18:36     ` Konrad Dybcio
2023-08-24 18:25 ` [PATCH 1/2] arm64: dts: qcom: sdm845: Fix PSCI power domain names Doug Anderson
2023-08-25 18:34 ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).