Devicetree
 help / color / mirror / Atom feed
From: Andrey Derkach <gabin278@gmail.com>
To: Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>
Cc: Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Richard Acayan <mailingradian@gmail.com>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org
Subject: [PATCH] arm64: dts: qcom: sdm670: Mark the ADSP FastRPC node as non-secure
Date: Sat,  5 Dec 2026 14:39:47 +0200	[thread overview]
Message-ID: <20261205123947.1063981-1-gabin278@gmail.com> (raw)

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


             reply	other threads:[~2026-12-05 12:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05 12:39 Andrey Derkach [this message]
2026-12-05 16:36 ` [PATCH] arm64: dts: qcom: sdm670: Mark the ADSP FastRPC node as non-secure Richard Acayan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261205123947.1063981-1-gabin278@gmail.com \
    --to=gabin278@gmail.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=mailingradian@gmail.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox