mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] SDM660 ADSP: vote the DSP's rail while it boots
@ 2026-11-26  2:20 Fabricio Akio via B4 Relay
  2026-11-26  2:20 ` [PATCH 1/2] remoteproc: qcom: pas: Vote the SDM660 ADSP's power domain " Fabricio Akio via B4 Relay
  2026-11-26  2:20 ` [PATCH 2/2] arm64: dts: qcom: sdm630: Power the ADSP from the SSC CX rail Fabricio Akio via B4 Relay
  0 siblings, 2 replies; 3+ messages in thread
From: Fabricio Akio via B4 Relay @ 2026-11-26  2:20 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Konrad Dybcio, Abel Vesa,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, linux-remoteproc, devicetree, linux-kernel,
	Dmitry Baryshkov, Martin Botka, Alexey Minnekhanov,
	Fabricio Akio

On SDM630 the ADSP starts once per boot. After a stop or a crash, the
next start times out waiting for the DSP:

  qcom_q6v5_pas 15700000.remoteproc: start timed out
  remoteproc remoteproc0: can't start rproc adsp: -110

The driver votes no power domain for this compatible while the DSP
boots, and sdm630.dtsi gives the node the SoC's CX. Downstream votes the
RPM's "rwlc" resource, PM660L LDO9, as the ADSP's supply while it boots,
on SDM630 and SDM660:
https://github.com/LineageOS/android_kernel_motorola_msm8998/blob/ce9ea8f125c7302ae9b2fec84f23a69271e957c3/arch/arm/boot/dts/qcom/sdm630.dtsi#L1737
https://github.com/LineageOS/android_kernel_motorola_msm8998/blob/ce9ea8f125c7302ae9b2fec84f23a69271e957c3/arch/arm/boot/dts/qcom/sdm660.dtsi#L2008
https://github.com/LineageOS/android_kernel_motorola_msm8998/blob/ce9ea8f125c7302ae9b2fec84f23a69271e957c3/arch/arm/boot/dts/qcom/msm-pm660l-rpm-regulator.dtsi#L194

Patch 1 makes the driver vote the node's "cx" power domain until
handover, as it does for MSM8998. Patch 2 points that domain at
RPMPD_SSCCX, which is "rwlc". With either patch alone the start after a
stop still times out.

With patch 1 the driver does not probe a node without the power domain,
as for the other users of msm8996_adsp_resource. The binding does not
require the property; sdm630.dtsi has had it since the node was added.

Tested on a Motorola Moto X4 (SDM630), whose board file is not in
mainline yet, on sdm660-mainline's 7.2 kernel: the ADSP stopped and
started five times, and a fatal error and a watchdog timeout injected
into the DSP both recovered. The SDM636, SDM660 and SDA660 boards are
not tested.

Signed-off-by: Fabricio Akio <fabricioakio@gmail.com>
---
Fabricio Akio (2):
      remoteproc: qcom: pas: Vote the SDM660 ADSP's power domain while it boots
      arm64: dts: qcom: sdm630: Power the ADSP from the SSC CX rail

 arch/arm64/boot/dts/qcom/sdm630.dtsi | 2 +-
 drivers/remoteproc/qcom_q6v5_pas.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726
change-id: 20261125-sdm660-adsp-proxy-rail-5e757998f66a

Best regards,
--  
Fabricio Akio <fabricioakio@gmail.com>



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

* [PATCH 1/2] remoteproc: qcom: pas: Vote the SDM660 ADSP's power domain while it boots
  2026-11-26  2:20 [PATCH 0/2] SDM660 ADSP: vote the DSP's rail while it boots Fabricio Akio via B4 Relay
@ 2026-11-26  2:20 ` Fabricio Akio via B4 Relay
  2026-11-26  2:20 ` [PATCH 2/2] arm64: dts: qcom: sdm630: Power the ADSP from the SSC CX rail Fabricio Akio via B4 Relay
  1 sibling, 0 replies; 3+ messages in thread
From: Fabricio Akio via B4 Relay @ 2026-11-26  2:20 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Konrad Dybcio, Abel Vesa,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, linux-remoteproc, devicetree, linux-kernel,
	Dmitry Baryshkov, Martin Botka, Alexey Minnekhanov,
	Fabricio Akio

From: Fabricio Akio <fabricioakio@gmail.com>

The SDM660 ADSP uses adsp_resource_init, which names no proxy power
domain, so the driver votes no rail for the DSP while it boots. On an
SDM630 phone the first start after boot succeeds without one; after a
stop, every later start times out waiting for the DSP.

Use msm8996_adsp_resource, which differs only in voting the "cx" power
domain until the DSP signals handover.

Fixes: a0a77028c85a ("remoteproc: q6v5_pas: Add sdm660 ADSP PIL compatible")
Signed-off-by: Fabricio Akio <fabricioakio@gmail.com>
---
 drivers/remoteproc/qcom_q6v5_pas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c
index ff2483529d73..d5b03a433a6d 100644
--- a/drivers/remoteproc/qcom_q6v5_pas.c
+++ b/drivers/remoteproc/qcom_q6v5_pas.c
@@ -2050,7 +2050,7 @@ static const struct of_device_id qcom_pas_of_match[] = {
 	{ .compatible = "qcom,sc8280xp-adsp-pas", .data = &sm8250_adsp_resource },
 	{ .compatible = "qcom,sc8280xp-nsp0-pas", .data = &sc8280xp_nsp0_resource },
 	{ .compatible = "qcom,sc8280xp-nsp1-pas", .data = &sc8280xp_nsp1_resource },
-	{ .compatible = "qcom,sdm660-adsp-pas", .data = &adsp_resource_init },
+	{ .compatible = "qcom,sdm660-adsp-pas", .data = &msm8996_adsp_resource },
 	{ .compatible = "qcom,sdm660-cdsp-pas", .data = &cdsp_resource_init },
 	{ .compatible = "qcom,sdm670-adsp-pas", .data = &sdm670_adsp_resource_init },
 	{ .compatible = "qcom,sdm845-adsp-pas", .data = &sdm845_adsp_resource_init },

-- 
2.56.1



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

* [PATCH 2/2] arm64: dts: qcom: sdm630: Power the ADSP from the SSC CX rail
  2026-11-26  2:20 [PATCH 0/2] SDM660 ADSP: vote the DSP's rail while it boots Fabricio Akio via B4 Relay
  2026-11-26  2:20 ` [PATCH 1/2] remoteproc: qcom: pas: Vote the SDM660 ADSP's power domain " Fabricio Akio via B4 Relay
@ 2026-11-26  2:20 ` Fabricio Akio via B4 Relay
  1 sibling, 0 replies; 3+ messages in thread
From: Fabricio Akio via B4 Relay @ 2026-11-26  2:20 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Konrad Dybcio, Abel Vesa,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, linux-remoteproc, devicetree, linux-kernel,
	Dmitry Baryshkov, Martin Botka, Alexey Minnekhanov,
	Fabricio Akio

From: Fabricio Akio <fabricioakio@gmail.com>

The ADSP node names RPMPD_VDDCX as its power domain. The rail the ADSP
needs to boot is the RPM's "rwlc" resource, PM660L LDO9, which is
RPMPD_SSCCX: with it voted the DSP starts again after a stop, and with
VDDCX voted it does not.

Fixes: 7ca2ebc90a46 ("arm64: dts: qcom: sdm630: Add ADSP remoteproc configuration")
Signed-off-by: Fabricio Akio <fabricioakio@gmail.com>
---
 arch/arm64/boot/dts/qcom/sdm630.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi
index 20225732e4a8..90990dc36b01 100644
--- a/arch/arm64/boot/dts/qcom/sdm630.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi
@@ -2414,7 +2414,7 @@ adsp_pil: remoteproc@15700000 {
 			clock-names = "xo";
 
 			memory-region = <&adsp_region>;
-			power-domains = <&rpmpd RPMPD_VDDCX>;
+			power-domains = <&rpmpd RPMPD_SSCCX>;
 			power-domain-names = "cx";
 
 			qcom,smem-states = <&adsp_smp2p_out 0>;

-- 
2.56.1



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

end of thread, other threads:[~2026-11-26  2:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26  2:20 [PATCH 0/2] SDM660 ADSP: vote the DSP's rail while it boots Fabricio Akio via B4 Relay
2026-11-26  2:20 ` [PATCH 1/2] remoteproc: qcom: pas: Vote the SDM660 ADSP's power domain " Fabricio Akio via B4 Relay
2026-11-26  2:20 ` [PATCH 2/2] arm64: dts: qcom: sdm630: Power the ADSP from the SSC CX rail Fabricio Akio via B4 Relay

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®