At the moment Linux CMA size is hard-coded on all i.MX8 and i.MX8M platforms in SoC DTSI file.
This works for NXP evaluation platforms, but may result in kernel crashes on custom boards with smaller amount of RAM.
For example, our i.MX8M board with 1GB of RAM crashes since by default 960MB area is allocated by CMA.
It is not clear why CMA size, which is board specific, is being fixed in SoC DTSI file inherited by all boards.
Is there any benefit in defining CMA parameters in DTS instead of passing CMA size as kernel command line parameter based on the actual DRAM size ?