Skip to contentSkip to conversation

arm64: dts: qcom: kodiak: avoid EFI overlap for ADSP remote heap

PATCH Applied Jianping Li 3 participants 3 messages Apr 29 – Jul 8

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: qcom: kodiak: avoid EFI overlap for ADSP remote heap

On KODIAK platforms boot can fail when the DT "adsp-rpc-remote-heap" reserved-memory region overlaps with firmware allocations (UEFI/EFI runtime). The kernel then reports failure to reserve the region and subsequent EFI runtime activity may trigger aborts.

The remote heap node was described as a fixed "no-map" region, which turns it into a hard carveout. Replace it with a "shared-dma-pool" reserved memory region with reusable CMA-backed allocation, specifying alignment and size.

This avoids hard carveouts and reduces the chance of conflicting with firmware memory maps while keeping an explicit pool for ADSP remote heap usage.

Fixes 90a58ffa9c55 ("arm64: dts: qcom: kodiak: Add memory region for audiopd")

---
Patch v1: https://lore.kernel.org/all/[email protected]/
Changes in v2:
- Correct the value of alloc-ranges
---

---
 arch/arm64/boot/dts/qcom/kodiak.dtsi | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/qcom/kodiak.dtsi +6 -3
index 988ca5f7c8a0..4d46c7a62187 100644
@@ -191,9 +191,12 @@ rmtfs_mem: rmtfs@9c900000 {
 			qcom,vmid = <QCOM_SCM_VMID_MSS_MSA>;
 		};
 
-		adsp_rpc_remote_heap_mem: adsp-rpc-remote-heap@9cb80000 {
-			reg = <0x0 0x9cb80000 0x0 0x800000>;
-			no-map;
+		adsp_rpc_remote_heap_mem: adsp-rpc-remote-heap {
+			compatible = "shared-dma-pool";
+			alloc-ranges = <0x0 0x80000000 0x0 0x80000000>;
+			reusable;
+			alignment = <0x0 0x400000>;
+			size = <0x0 0x800000>;
 		};
 	};
 
Signature · 1 line
2.43.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 14 lines · Jianping Li

On KODIAK platforms boot can fail when the DT "adsp-rpc-remote-heap" reserved-memory region overlaps with firmware allocations (UEFI/EFI runtime). The kernel then reports failure to reserve the region and subsequent EFI runtime activity may trigger aborts.

The remote heap node was described as a fixed "no-map" region, which turns it into a hard carveout. Replace it with a "shared-dma-pool" reserved memory region with reusable CMA-backed allocation, specifying alignment and size.

This avoids hard carveouts and reduces the chance of conflicting with firmware memory maps while keeping an explicit pool for ADSP remote heap usage.

Quoted 8 lines
Fixes 90a58ffa9c55 ("arm64: dts: qcom: kodiak: Add memory region for audiopd")

---
Patch v1: https://lore.kernel.org/all/[email protected]/
Changes in v2:
- Correct the value of alloc-ranges
---

Konrad

maintainer Applied
#2 lore raw
In reply to Jianping Li
Quoted 11 lines · Jianping Li

On KODIAK platforms boot can fail when the DT "adsp-rpc-remote-heap" reserved-memory region overlaps with firmware allocations (UEFI/EFI runtime). The kernel then reports failure to reserve the region and subsequent EFI runtime activity may trigger aborts.

The remote heap node was described as a fixed "no-map" region, which turns it into a hard carveout. Replace it with a "shared-dma-pool" reserved memory region with reusable CMA-backed allocation, specifying alignment and size.

[...]

Applied, thanks!

[1/1] arm64: dts: qcom: kodiak: avoid EFI overlap for ADSP remote heap

      commit: 9d7d847ff1c502802ac764120f9a1800b94ce497

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>