]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: mediatek: mt8186-corsola: Reserve memory for audio frontend
authorChen-Yu Tsai <wenst@chromium.org>
Thu, 24 Apr 2025 10:25:06 +0000 (18:25 +0800)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 11 Jun 2025 10:28:16 +0000 (12:28 +0200)
Some MediaTek platforms already reserve a small block of memory for the
audio frontend. These platforms reserve it at a fixed address, though it
is unclear if that is due to hardware access restrictions or simply
compacting the reserved memory blocks together.

Reserve the same size of memory on the MT8186 Corsola family as well, to
align with the other MediaTek-based ChromeOS platforms. This also helps
with memory starvation as these devices sometimes end up in low memory
conditions.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20250424102509.1083185-13-wenst@chromium.org
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi

index fc78a79d96e97b014fe06c7e91e7c23f0a8b52f3..18cfc99cfa3c33d98bec8e1b1954bb35d6aadec6 100644 (file)
                #size-cells = <2>;
                ranges;
 
+               afe_dma_mem: audio-dma-pool {
+                       compatible = "shared-dma-pool";
+                       size = <0 0x100000>;
+                       alignment = <0 0x10>;
+                       no-map;
+               };
+
                adsp_dma_mem: memory@61000000 {
                        compatible = "shared-dma-pool";
                        reg = <0 0x61000000 0 0x100000>;
 };
 
 &afe {
+       memory-region = <&afe_dma_mem>;
        status = "okay";
 };