* [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; 2+ 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] 2+ messages in thread
* Re: [PATCH] arm64: dts: qcom: sdm670: Mark the ADSP FastRPC node as non-secure
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
0 siblings, 0 replies; 2+ messages in thread
From: Richard Acayan @ 2026-12-05 16:36 UTC (permalink / raw)
To: Andrey Derkach
Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree
On Sat, Dec 05, 2026 at 02:39:47PM +0200, Andrey Derkach wrote:
> 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.
Yes, I knew it wouldn't create /dev/fastrpc-adsp. Inferencing from
CVE 2024-41024, the intention is so access to /dev/fastrpc-cdsp-secure
would be restricted so only system programs can access signed PDs
(provided by firmware and used to access the hardware), and
/dev/fastrpc-cdsp can be used for unsigned PDs (for compute shenanigans
like neural SHA-256).
ADSP is only intended for accessing the hardware, so it doesn't need to
support unsigned PDs. With that in mind...
> Mark the domain as non-secure, as SDM845 and most other Qualcomm SoCs do
> for the ADSP, so that /dev/fastrpc-adsp is created.
Is this the best solution?
> 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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-05 16:37 UTC | newest]
Thread overview: 2+ 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox