* [PATCH] arm64: dts: qcom: sm8250: Make the ADSP fastrpc remote heap no-map
@ 2026-11-23 20:54 Stoicoci Mihaita via B4 Relay
2026-11-26 14:32 ` Konrad Dybcio
0 siblings, 1 reply; 2+ messages in thread
From: Stoicoci Mihaita via B4 Relay @ 2026-11-23 20:54 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Abel Vesa, linux-arm-msm, devicetree, linux-kernel, Stoicoci Mihaita
From: Stoicoci Mihaita <stoicoci.mihaita@gmail.com>
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@gmail.com>
---
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@gmail.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: dts: qcom: sm8250: Make the ADSP fastrpc remote heap no-map
2026-11-23 20:54 [PATCH] arm64: dts: qcom: sm8250: Make the ADSP fastrpc remote heap no-map Stoicoci Mihaita via B4 Relay
@ 2026-11-26 14:32 ` Konrad Dybcio
0 siblings, 0 replies; 2+ messages in thread
From: Konrad Dybcio @ 2026-11-26 14:32 UTC (permalink / raw)
To: stoicoci.mihaita, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Abel Vesa, linux-arm-msm, devicetree, linux-kernel
On 11/23/26 9:54 PM, Stoicoci Mihaita via B4 Relay wrote:
> From: Stoicoci Mihaita <stoicoci.mihaita@gmail.com>
>
> 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@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-26 14:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 20:54 [PATCH] arm64: dts: qcom: sm8250: Make the ADSP fastrpc remote heap no-map Stoicoci Mihaita via B4 Relay
2026-11-26 14:32 ` Konrad Dybcio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®