All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: qcm6490: Update PSCI suspend param for cluster sleep
@ 2024-01-05  7:02 Maulik Shah
  2024-01-05 10:05 ` Konrad Dybcio
  0 siblings, 1 reply; 3+ messages in thread
From: Maulik Shah @ 2024-01-05  7:02 UTC (permalink / raw)
  To: agross, andersson, konrad.dybcio, robh+dt,
	krzysztof.kozlowski+dt, conor+dt, luca.weiss,
	cros-qcom-dts-watchers
  Cc: linux-arm-msm, linux-kernel, devicetree, quic_lsrao, Maulik Shah

QCM6490 uses Trustzone as firmware whereas SC7280 uses arm trusted
firmware. The PSCI suspend param is different in Trustzone for cluster
sleep. Update the same for qcm6490 based idp and fairphone fp5 boards.

Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
---
 arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 4 ++++
 arch/arm64/boot/dts/qcom/qcm6490-idp.dts           | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
index 176898c9dbbd..b56f6f26d96f 100644
--- a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
+++ b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
@@ -446,6 +446,10 @@
 	};
 };
 
+&CLUSTER_SLEEP_0 {
+	arm,psci-suspend-param = <0x4100b344>;
+};
+
 &dispcc {
 	/* Disable for now so simple-framebuffer continues working */
 	status = "disabled";
diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
index 03e97e27d16d..afac0ea0d297 100644
--- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
+++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
@@ -415,6 +415,10 @@
 	};
 };
 
+&CLUSTER_SLEEP_0 {
+	arm,psci-suspend-param = <0x4100b344>;
+};
+
 &qupv3_id_0 {
 	status = "okay";
 };
-- 
2.17.1


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

* Re: [PATCH] arm64: dts: qcom: qcm6490: Update PSCI suspend param for cluster sleep
  2024-01-05  7:02 [PATCH] arm64: dts: qcom: qcm6490: Update PSCI suspend param for cluster sleep Maulik Shah
@ 2024-01-05 10:05 ` Konrad Dybcio
  2024-01-09 15:52   ` Maulik Shah (mkshah)
  0 siblings, 1 reply; 3+ messages in thread
From: Konrad Dybcio @ 2024-01-05 10:05 UTC (permalink / raw)
  To: Maulik Shah, agross, andersson, robh+dt, krzysztof.kozlowski+dt,
	conor+dt, luca.weiss, cros-qcom-dts-watchers
  Cc: linux-arm-msm, linux-kernel, devicetree, quic_lsrao

On 5.01.2024 08:02, Maulik Shah wrote:
> QCM6490 uses Trustzone as firmware whereas SC7280 uses arm trusted
> firmware. The PSCI suspend param is different in Trustzone for cluster
> sleep. Update the same for qcm6490 based idp and fairphone fp5 boards.
> 
> Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
> ---

Nice spot!

For things that are chrome-specific, I'd prefer them to be moved to
-chrome.dtsi and then the "normal" (LA+LE+WP+friends) values to
stay as default.

>  arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 4 ++++
>  arch/arm64/boot/dts/qcom/qcm6490-idp.dts           | 4 ++++
>  2 files changed, 8 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
> index 176898c9dbbd..b56f6f26d96f 100644
> --- a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
> +++ b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
> @@ -446,6 +446,10 @@
>  	};
>  };
>  
> +&CLUSTER_SLEEP_0 {
> +	arm,psci-suspend-param = <0x4100b344>;
>

I think the residency times should also be updated here.

Moreover, I'm seeing additional sleep states here (APSS PC, CX RET
and this one being AOSS SLEEP), with values 0x4<<4, 0x134<<4,
0xb34<<4 (the one you added here) respectively.

Could you please add them as well, similar to [1]?

Konrad

[1] https://lore.kernel.org/linux-arm-msm/20230619-topic-sc8280xp-idle-v2-1-cde50bf02f3c@linaro.org/

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

* Re: [PATCH] arm64: dts: qcom: qcm6490: Update PSCI suspend param for cluster sleep
  2024-01-05 10:05 ` Konrad Dybcio
@ 2024-01-09 15:52   ` Maulik Shah (mkshah)
  0 siblings, 0 replies; 3+ messages in thread
From: Maulik Shah (mkshah) @ 2024-01-09 15:52 UTC (permalink / raw)
  To: Konrad Dybcio, agross, andersson, robh+dt,
	krzysztof.kozlowski+dt, conor+dt, luca.weiss,
	cros-qcom-dts-watchers
  Cc: linux-arm-msm, linux-kernel, devicetree, quic_lsrao

On 1/5/2024 3:35 PM, Konrad Dybcio wrote:
> On 5.01.2024 08:02, Maulik Shah wrote:
>> QCM6490 uses Trustzone as firmware whereas SC7280 uses arm trusted
>> firmware. The PSCI suspend param is different in Trustzone for cluster
>> sleep. Update the same for qcm6490 based idp and fairphone fp5 boards.
>>
>> Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
>> ---
> 
> Nice spot!
> 
> For things that are chrome-specific, I'd prefer them to be moved to
> -chrome.dtsi and then the "normal" (LA+LE+WP+friends) values to
> stay as default.

Thanks for the review.
Moved the chrome specific changes to sc7280-chrome-common.dtsi in v2.

> 
>>   arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 4 ++++
>>   arch/arm64/boot/dts/qcom/qcm6490-idp.dts           | 4 ++++
>>   2 files changed, 8 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
>> index 176898c9dbbd..b56f6f26d96f 100644
>> --- a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
>> @@ -446,6 +446,10 @@
>>   	};
>>   };
>>   
>> +&CLUSTER_SLEEP_0 {
>> +	arm,psci-suspend-param = <0x4100b344>;
>>
> 
> I think the residency times should also be updated here.
> 
> Moreover, I'm seeing additional sleep states here (APSS PC, CX RET
> and this one being AOSS SLEEP), with values 0x4<<4, 0x134<<4,
> 0xb34<<4 (the one you added here) respectively.
> 
> Could you please add them as well, similar to [1]?
> 
> Konrad
> 
> [1] https://lore.kernel.org/linux-arm-msm/20230619-topic-sc8280xp-idle-v2-1-cde50bf02f3c@linaro.org/

Sure, added additional sleep stats with updated residency time in v2.

Thanks,
Maulik

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

end of thread, other threads:[~2024-01-09 15:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-05  7:02 [PATCH] arm64: dts: qcom: qcm6490: Update PSCI suspend param for cluster sleep Maulik Shah
2024-01-05 10:05 ` Konrad Dybcio
2024-01-09 15:52   ` Maulik Shah (mkshah)

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.