All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: sdm670: Mark the ADSP FastRPC node as non-secure
@ 2026-12-05 12:39 Andrey Derkach
  2026-12-05 16:36 ` Richard Acayan
  0 siblings, 1 reply; 3+ messages in thread
From: Andrey Derkach @ 2026-12-05 12:39 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio
  Cc: Abel Vesa, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Richard Acayan, linux-arm-msm, devicetree

The ADSP FastRPC node lacks qcom,non-secure-domain, so the fastrpc
driver treats the ADSP as a secure domain and creates only
/dev/fastrpc-adsp-secure. Userspace expects /dev/fastrpc-adsp:
hexagonrpcd, which serves files to the ADSP's root and sensors PDs,
opens it, so on SDM670 it fails to start unless the device is linked by
hand. Without hexagonrpcd the sensors PD stalls and the ADSP restarts
about 40 seconds after every start.

Mark the domain as non-secure, as SDM845 and most other Qualcomm SoCs do
for the ADSP, so that /dev/fastrpc-adsp is created.

Tested on the Xiaomi Mi 9 SE (SDM712, which uses sdm670.dtsi):
/dev/fastrpc-adsp appears, hexagonrpcd attaches to the root and sensors
PDs, and the ADSP keeps running.

Fixes: 2334f8419168 ("arm64: dts: qcom: sdm670: add adsp")
Signed-off-by: Andrey Derkach <gabin278@gmail.com>
---
Commit 6b032524be16 ("arm64: dts: qcom: sm8750: mark the ADSP fastrpc
node as non-secure") in the qcom tree makes the same change for SM8750.

 arch/arm64/boot/dts/qcom/sdm670.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi
index 1df63c38cf87..a03f44c53871 100644
--- a/arch/arm64/boot/dts/qcom/sdm670.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi
@@ -2735,6 +2735,7 @@ q6routing: routing {
 				fastrpc {
 					compatible = "qcom,fastrpc";
 					qcom,glink-channels = "fastrpcglink-apps-dsp";
+					qcom,non-secure-domain;
 					label = "adsp";
 					#address-cells = <1>;
 					#size-cells = <0>;

base-commit: 29beb21c21ada7207692b2d69fc58dcd15dab6e9
-- 
2.53.0


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

end of thread, other threads:[~2026-12-05 17:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 12:39 [PATCH] arm64: dts: qcom: sdm670: Mark the ADSP FastRPC node as non-secure Andrey Derkach
2026-12-05 16:36 ` Richard Acayan
2026-12-05 17:06   ` Andrey Derkach

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.