From: Richard Acayan <mailingradian@gmail.com>
To: Andrey Derkach <gabin278@gmail.com>
Cc: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] arm64: dts: qcom: sdm670: Mark the ADSP FastRPC node as non-secure
Date: Sat, 5 Dec 2026 11:36:47 -0500 [thread overview]
Message-ID: <axQ9n4L2KX6UYaKh@rdacayan> (raw)
In-Reply-To: <20261205123947.1063981-1-gabin278@gmail.com>
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>
next prev parent reply other threads:[~2026-12-05 16:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
2026-12-05 17:06 ` Andrey Derkach
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=axQ9n4L2KX6UYaKh@rdacayan \
--to=mailingradian@gmail.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gabin278@gmail.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--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 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.