]> Gentwo Git Trees - linux/.git/commit
arm64: dts: ti: k3-am62a7-sk: Reserve 576MiB of global CMA
authorDevarsh Thakkar <devarsht@ti.com>
Thu, 13 Jun 2024 15:09:01 +0000 (20:39 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Wed, 3 Jul 2024 14:21:21 +0000 (19:51 +0530)
commit6406c5d5512c0814b8c155df7f833a98d9069a72
tree52cefb355b770030ffb5f30da85ea0aebf6579ba
parent9e8560556f9c41da28118af3385b4e9dc832ae2b
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/20240605124859.3034-5-hnagalla@ti.com
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
Tested-by: Brandon Brnich <b-brnich@ti.com>
Reviewed-by: Randolph Sapp <rs@ti.com>
Link: https://lore.kernel.org/r/20240613150902.2173582-3-devarsht@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts