From: sashiko-bot@kernel.org
To: "Jianping Li" <jianping.li@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v1 2/4] arm64: dts: qcom: glymur: Make the ADSP remote heap no-map
Date: Thu, 15 Oct 2026 07:27:08 +0000 [thread overview]
Message-ID: <sashiko-outbox-172419@kernel.org> (raw)
In-Reply-To: <20261015071511.977-3-jianping.li@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] arm64/dma: Incomplete protection against speculative aborts for shared-dma-pool with no-map
--
commit 406984dd5e0c9e02f86eace82d9c1edf7af73157
Author: Jianping Li <jianping.li@oss.qualcomm.com>
arm64: dts: qcom: glymur: Make the ADSP remote heap no-map
This patch replaces the reusable property with no-map for the ADSP remote
heap to exclude it from the standard kernel memory mapping. This is intended
to prevent synchronous external aborts caused by kernel accesses after the
memory is handed over to the DSP.
Link: https://lore.kernel.org/all/20260701-glymur-audio-v1-1-2c3862d95a09@oss.qualcomm.com/
> diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
> index f04058d2e0891..ddbacc21f780e 100644
> --- a/arch/arm64/boot/dts/qcom/glymur.dtsi
> +++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
> @@ -691,7 +691,7 @@ smem_mem: smem@ffe00000 {
> adsp_rpc_remote_heap_mem: adsp-rpc-remote-heap {
> compatible = "shared-dma-pool";
> alloc-ranges = <0x0 0x80000000 0x0 0x80000000>;
> - reusable;
> + no-map;
[Severity: High]
Does this fully protect against speculative aborts when combined with
the compatible = "shared-dma-pool" property?
Because the reusable property is removed but shared-dma-pool remains, the
reserved memory framework handles this node via rmem_dma_setup() in
kernel/dma/coherent.c.
When the FastRPC driver probes and binds to this region via
of_reserved_mem_device_init(), it maps the entire 8MB physical region into
the kernel's vmalloc space:
kernel/dma/coherent.c:dma_init_coherent_memory() {
...
mem_base = memremap(phys_addr, size, MEMREMAP_WC);
...
}
On the ARM architecture, MEMREMAP_WC creates a Normal Non-Cacheable mapping.
The architecture permits the CPU to perform speculative data reads on any
Normal memory, including Normal Non-Cacheable.
When the FastRPC driver allocates memory from this pool and assigns it to the
DSP via qcom_scm_assign_mem() (which revokes host access), this persistent
Normal memory mapping in vmalloc space remains intact.
Could speculative CPU reads through this vmalloc mapping still trigger the
exact same synchronous external aborts this patch aims to prevent?
> alignment = <0x0 0x400000>;
> size = <0x0 0x800000>;
> };
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261015071511.977-1-jianping.li@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-10-15 7:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-15 7:15 [PATCH v1 0/4] arm64: dts: qcom: Make ADSP remote heaps no-map Jianping Li
2026-10-15 7:15 ` [PATCH v1 1/4] arm64: dts: qcom: kodiak: Make the ADSP remote heap no-map Jianping Li
2026-10-15 7:38 ` sashiko-bot
2026-10-15 7:15 ` [PATCH v1 2/4] arm64: dts: qcom: glymur: " Jianping Li
2026-10-15 7:27 ` sashiko-bot [this message]
2026-10-15 7:15 ` [PATCH v1 3/4] arm64: dts: qcom: sm8250: " Jianping Li
2026-10-15 7:15 ` [PATCH v1 4/4] arm64: dts: qcom: sm8750: " Jianping Li
2026-10-15 7:30 ` sashiko-bot
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-172419@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jianping.li@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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