Skip to content

arm64: dts: qcom: Make ADSP remote heaps no-map

Jianping Li linux-arm-msm linux-devicetree lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4arm64: dts: qcom: kodiak: Make the ADSP remote heap no-maparch/arm64/boot/dts/qcom/kodiak.dtsi+1 -12 replies
2/4arm64: dts: qcom: glymur: Make the ADSP remote heap no-maparch/arm64/boot/dts/qcom/glymur.dtsi+1 -12 replies
3/4arm64: dts: qcom: sm8250: Make the ADSP remote heap no-maparch/arm64/boot/dts/qcom/sm8250.dtsi+1 -12 replies
4/4arm64: dts: qcom: sm8750: Make the ADSP remote heap no-maparch/arm64/boot/dts/qcom/sm8750.dtsi+1 -12 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchKonrad DybcioEkansh Gupta
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/4] arm64: dts: qcom: Make ADSP remote heaps no-map

Several Qualcomm platforms declare the ADSP remote heap as a reusable shared DMA pool. This allows the kernel to reuse the region for movable allocations.

When FastRPC assigns the entire region to the DSP without first allocating its pages from CMA, those pages remain available for HLOS allocations despite HLOS access permissions having been revoked. Subsequent kernel accesses can therefore cause synchronous external aborts.

This issue has been reported on Talos during GPU stress testing and on Kodiak during storage testing. A further report on a Kodiak-based Motorola Edge 30 describes similar aborts during everyday use and indicates that marking the heap no-map resolves the issue.

Following feedback on the Talos patch, this series updates the remaining identified reusable ADSP remote heaps on Kodiak, Glymur, SM8250 and SM8750. Each platform is handled in a separate patch to allow independent review and backporting.

Replace reusable with no-map to prevent normal kernel allocations from using these regions and exclude them from the kernel's standard memory mapping. The existing allocation ranges, alignment and sizes are unchanged.

The Talos fix was submitted separately [1]. Agatti is also excluded because a separate fix has already been posted [2].

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

Jianping Li (4):
arm64: dts: qcom: kodiak: Make the ADSP remote heap no-map
arm64: dts: qcom: glymur: Make the ADSP remote heap no-map
arm64: dts: qcom: sm8250: Make the ADSP remote heap no-map
arm64: dts: qcom: sm8750: Make the ADSP remote heap no-map

 arch/arm64/boot/dts/qcom/glymur.dtsi | 2 +-
 arch/arm64/boot/dts/qcom/kodiak.dtsi | 2 +-
 arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +-
 arch/arm64/boot/dts/qcom/sm8750.dtsi | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.43.0