[PATCH] arm64: dts: qcom: sm8250: Make the ADSP fastrpc remote heap no-map
From: Stoicoci Mihaita via B4 Relay
Date: Mon Nov 23 2026 - 15:54:28 EST
From: Stoicoci Mihaita <stoicoci.mihaita@xxxxxxxxx>
The ADSP fastrpc node hands the whole adsp-rpc-remote-heap region to the
DSP when it probes: fastrpc_rpmsg_probe() calls qcom_scm_assign_mem()
with the qcom,vmids list (LPASS and ADSP_HEAP), which does not include
HLOS.
The region is declared reusable, so it is a CMA area and its pages are
still lent to movable allocations (page cache, anonymous memory). Under
memory pressure the kernel then touches pages that the hypervisor no
longer maps for HLOS. On a Lenovo Tab P12 Pro (TB-Q706F, SM8250) this
reset the device within a few minutes of heavy use (browser video,
Flatpak installs). Nothing reached the kernel log or pstore, the PMIC
reported a PS_HOLD reset, and the TZ diagnostic area showed a fatal SGI
on a different CPU each time just before the reset.
Mark the region no-map so it is never handed to the page allocator. With
this change the same workload ran with the CMA area fully used and no
reset.
Fixes: 531ce288b6dd ("arm64: dts: qcom: sm8250: Add memory-region for audio PD")
Signed-off-by: Stoicoci Mihaita <stoicoci.mihaita@xxxxxxxxx>
---
The same reusable remote heap without an HLOS VMID was added for other
SoCs as well (glymur, agatti, talos, kodiak, sm8750). I can only test
SM8250, so this patch changes sm8250.dtsi only.
---
arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi
index f975c2183..f415da478 100644
--- a/arch/arm64/boot/dts/qcom/sm8250.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi
@@ -867,7 +867,7 @@ cdsp_secure_heap: memory@8bf00000 {
adsp_rpc_remote_heap_mem: adsp-rpc-remote-heap {
compatible = "shared-dma-pool";
alloc-ranges = <0x0 0x80000000 0x0 0x80000000>;
- reusable;
+ no-map;
alignment = <0x0 0x400000>;
size = <0x0 0x800000>;
};
---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261123-sm8250-fastrpc-remote-heap-no-map-15609b849779
Best regards,
--
Stoicoci Mihaita <stoicoci.mihaita@xxxxxxxxx>