From fb6487598d13b3bd75cdc0dd60d25d6f1bf4ab2a Mon Sep 17 00:00:00 2001 From: Heinrich Toews Date: Wed, 18 Mar 2026 17:29:27 +0100 Subject: [PATCH] arm64: dts: k3-am623-pfc-750-8xxx: add no-map and gap reservations for AM623 PFC Add missing no-map property to ramoops region to prevent Linux from managing it as regular memory. Reserve gap regions adjacent to ioremap_wc-mapped M4 memory to avoid ARM64 cache aliasing issues caused by Linux allocating pages next to these regions. Also reserve a gap between r5f-dma-memory and TF-A region to prevent potential memory conflicts. Signed-off-by: Heinrich Toews --- .../boot/dts/ti/k3-am623-pfc-750-8xxx-common.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am623-pfc-750-8xxx-common.dtsi b/arch/arm64/boot/dts/ti/k3-am623-pfc-750-8xxx-common.dtsi index 41aa9ae2b42b..e4aa0c3aabf3 100644 --- a/arch/arm64/boot/dts/ti/k3-am623-pfc-750-8xxx-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am623-pfc-750-8xxx-common.dtsi @@ -71,6 +71,7 @@ ramoops@9ca00000 { compatible = "ramoops"; reg = <0x00 0x9ca00000 0x00 0x00100000>; + no-map; record-size = <0x8000>; console-size = <0x8000>; ftrace-size = <0x00>; @@ -89,12 +90,26 @@ no-map; }; + /* Gap between m4f-memory and r5f-dma-memory: must be reserved + * to prevent Linux from allocating pages that are adjacent to + * ioremap_wc-mapped M4 regions (ARM64 cache aliasing). */ + m4f_gap_memory: m4f-gap@9da00000 { + reg = <0x00 0x9da00000 0x00 0x100000>; + no-map; + }; + wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9db00000 { compatible = "shared-dma-pool"; reg = <0x00 0x9db00000 0x00 0xc00000>; no-map; }; + /* Gap between r5f-dma-memory and tfa */ + r5f_gap_memory: r5f-gap@9e700000 { + reg = <0x00 0x9e700000 0x00 0x80000>; + no-map; + }; + mcu_m4fss_dma_memory_region: m4f-dma-memory@9cb00000 { compatible = "shared-dma-pool"; reg = <0x00 0x9cb00000 0x00 0x100000>;