From: sashiko-bot@kernel.org
To: "Nickolay Goppen" <setotau@mainlining.org>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/2] arm64: dts: qcom: sdm630: fix ADSP FastRPC heap assignment
Date: Tue, 24 Nov 2026 17:07:02 +0000 [thread overview]
Message-ID: <sashiko-outbox-231655@kernel.org> (raw)
In-Reply-To: <20261124-qcom-adsp-shared-vmid-fixes-v1-2-f1a808dc41a5@mainlining.org>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] arm64: dts: qcom: sdm630: adsp_mem left reusable after revoking
HLOS VMID
--
commit 4c51ed0e779228db4d03e3924b592519e72060d8
Author: Gianluca Boiano <morf3089@gmail.com>
arm64: dts: qcom: sdm630: fix ADSP FastRPC heap assignment
This commit removes QCOM_SCM_VMID_HLOS from the ADSP FastRPC node's
qcom,vmids property in sdm630.dtsi so that qcom_scm_assign_mem() succeeds
when assigning the adsp_mem heap to QCOM_SCM_VMID_CP_ADSP_SHARED.
> diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi
> index 20225732e4a80..327a8049f7072 100644
> --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi
> @@ -2477,8 +2477,7 @@ fastrpc {
> qcom,glink-channels = "fastrpcglink-apps-dsp";
> label = "adsp";
> memory-region = <&adsp_mem>;
> - qcom,vmids = <QCOM_SCM_VMID_HLOS
> - QCOM_SCM_VMID_CP_ADSP_SHARED>;
> + qcom,vmids = <QCOM_SCM_VMID_CP_ADSP_SHARED>;
[Severity: High]
Should adsp_mem in sdm630.dtsi be changed from reusable to no-map now
that QCOM_SCM_VMID_HLOS is removed here?
arch/arm64/boot/dts/qcom/sdm630.dtsi:
...
adsp_mem: adsp-region {
compatible = "shared-dma-pool";
alloc-ranges = <0x0 0x80000000 0x0 0x80000000>;
alignment = <0x0 0x400000>;
size = <0x0 0x800000>;
reusable;
};
...
During fastrpc_rpmsg_probe(), fastrpc_init_reserved_mem() calls
qcom_scm_assign_mem() on the raw adsp_mem resource range without
allocating its pages from CMA, revoking HLOS stage-2 permissions across
the 8 MiB region. Because adsp_mem is marked reusable, it remains in the
kernel linear map and CMA continues lending its pages to the buddy
allocator for movable allocations, causing a stage-2 access fault or
memory corruption between Linux and the ADSP remote heap when those pages
are accessed.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-qcom-adsp-shared-vmid-fixes-v1-0-f1a808dc41a5@mainlining.org?part=2
prev parent reply other threads:[~2026-11-24 17:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 16:52 [PATCH 0/2] qcom: scm: fix cp_adsp_shared vmid and assignment on sdm660 Nickolay Goppen
2026-11-24 16:52 ` [PATCH 1/2] dt-bindings: firmware: qcom: scm: fix CP_ADSP_SHARED VMID value Nickolay Goppen
2026-11-24 16:52 ` [PATCH 2/2] arm64: dts: qcom: sdm630: fix ADSP FastRPC heap assignment Nickolay Goppen
2026-11-24 17:07 ` sashiko-bot [this message]
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=sashiko-outbox-231655@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=setotau@mainlining.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