Skip to content

Commit 6406c5d

Browse files
Devarsh Thakkarr-vignesh
authored andcommitted
arm64: dts: ti: k3-am62a7-sk: Reserve 576MiB of global CMA
Reserve 576MiB of CMA as global CMA pool starting after initial 1GiB of DDR. AM62ax has different multimedia components such as Camera, Display, H.264 VPU and JPEG Encoder which use CMA for buffer allocations. The 12x 720x480 realtime VPU decode use-case requires 544MiB of CMA, additional 32MiB is kept as buffer in case some other peripheral also require it while VPU is running. The reason to choose latter 1GiB is to not overlap with existing memory map which is utilizing initial 1GiB for remoteproc firmwares as shared here [1]. Also some drivers such as JPEG require 32bit addressing so not allocating from higher DDR address. Link: https://lore.kernel.org/all/[email protected] [1] Signed-off-by: Devarsh Thakkar <[email protected]> Tested-by: Brandon Brnich <[email protected]> Reviewed-by: Randolph Sapp <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vignesh Raghavendra <[email protected]>
1 parent 9e85605 commit 6406c5d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/arm64/boot/dts/ti/k3-am62a7-sk.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@
4040
#size-cells = <2>;
4141
ranges;
4242

43+
/* global cma region */
44+
linux,cma {
45+
compatible = "shared-dma-pool";
46+
reusable;
47+
size = <0x00 0x24000000>;
48+
alloc-ranges = <0x00 0xc0000000 0x00 0x24000000>;
49+
linux,cma-default;
50+
};
51+
4352
secure_tfa_ddr: tfa@9e780000 {
4453
reg = <0x00 0x9e780000 0x00 0x80000>;
4554
alignment = <0x1000>;

0 commit comments

Comments
 (0)