[PATCH 0/4] Add global CMA areas for few TI SoCs
Andrew Davis
afd at ti.com
Mon Apr 28 07:42:59 PDT 2025
On 4/24/25 3:44 AM, Jayesh Choudhary wrote:
> Hello All,
>
> Following AM62* platforms[0], this patches add global CMA reserve area for:
> - J721S2-EVM (1056 MiB)
> - J784S4-EVM (1920 MiB)
> - AM68-SK (1008 MiB)
> - AM69-SK (1904 MiB)
>
> These SoCs does not have MMU and hence they require contiguous memory
> pool to support various multimedia usecase.
>
> The calculation was done considering H264 codec requirements, dual-display
> supported in each platforms and multicamera use-cases.
> Additional buffer was kept for other peripheral s and to account for
> fragmentation.
What if I'm not going to use 8 cameras, 2 displays, and decode 16 H264
streams all at the same time? Why should I always lose 2GB of DRAM
unconditionally, just in-case someone someday runs this imagined
worst-case situation?
If I *do* intend to have my device perform some nightmare use-case like
the above, I can pass the needed CMA size in on the kernel command line.
That is a configuration for my specific use-case after all, and DT is
*not* for configuration, especially not insane configurations like this.
Andrew
> The breakdown is mentioned in each commit message.
>
> [0]: https://lore.kernel.org/all/20240613150902.2173582-1-devarsht@ti.com/
>
> Jayesh Choudhary (4):
> arm64: dts: ti: k3-j721s2-som-p0: Reserve 1056MiB of global CMA
> arm64: dts: ti: k3-j784s4-j742s2-evm-common: Reserve 1920MiB of global
> CMA
> arm64: dts: ti: k3-am68-sk-som: Reserve 1008MiB of global CMA
> arm64: dts: ti: k3-am69-sk: Reserve 1904MiB of global CMA
>
> arch/arm64/boot/dts/ti/k3-am68-sk-som.dtsi | 8 ++++++++
> arch/arm64/boot/dts/ti/k3-am69-sk.dts | 8 ++++++++
> arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi | 8 ++++++++
> arch/arm64/boot/dts/ti/k3-j784s4-j742s2-evm-common.dtsi | 8 ++++++++
> 4 files changed, 32 insertions(+)
>
More information about the linux-arm-kernel
mailing list