Skip to content

Commit 9e85605

Browse files
Devarsh Thakkarr-vignesh
authored andcommitted
arm64: dts: ti: k3-am62x-sk-common: Reserve 128MiB of global CMA
Reserve 128MiB of global CMA which is also marked as re-usable so that OS can also use the same if peripheral drivers are not using the same. AM62x supports multimedia components such as GPU, dual Display and Camera. Assuming the worst-case scenario where all 3 are run in parallel below is the calculation : 1) OV5640 camera sensor supports 1920x1080 resolution -> 1920 width x 1080 height x 2 bytesperpixel x 8 buffers (default in yavta) : 32MiB 2) 1920x1200 Microtips LVDS panel supported -> 1920 width x 1080 height x 4 bytesperpixel x 2 buffers : 16 MiB 3) 1920x1080 HDMI display supported -> 1920 width x 1080 height x 4 bytesperpixel x 2 buffers : 15.82 MiB which is ~16 MiB 4) IMG GPU shares with display allocated buffers while rendering but in case some dedicated operation viz color conversion, keeping same window of ~16 MiB for GPU too. Total is 80 MiB and adding 32 MiB for other peripherals and extra 16 MiB to keep as buffer for fragmentation thus rounding total to 128 MiB. Signed-off-by: Devarsh Thakkar <[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 cf64519 commit 9e85605

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@
4848
pmsg-size = <0x8000>;
4949
};
5050

51+
/* global cma region */
52+
linux,cma {
53+
compatible = "shared-dma-pool";
54+
reusable;
55+
size = <0x00 0x8000000>;
56+
linux,cma-default;
57+
};
58+
5159
secure_tfa_ddr: tfa@9e780000 {
5260
reg = <0x00 0x9e780000 0x00 0x80000>;
5361
alignment = <0x1000>;

0 commit comments

Comments
 (0)