Re: [PATCH] arm64: dts: qcom: sm8250: Make the ADSP fastrpc remote heap no-map
From: Konrad Dybcio
Date: Thu Nov 26 2026 - 09:32:34 EST
On 11/23/26 9:54 PM, Stoicoci Mihaita via B4 Relay wrote:
> 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>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad