Hi Erlend
>Question 1: What is the difference between setting CMA memory in the kernel menuconfig
>and in the device tree?
Kernel config option CONFIG_CMA_SIZE_MBYTES sets the default CMA size.
Note some kernels (for example old) do not support device tree.
Additional description can be found on
Changing memory size reserved for CMA · alliedvision/documentation Wiki · GitHub
>Question 2: What will happen if I use both options?
if kernel supports device tree, setting CMA memory in the device tree will be used.
>Question 3: Which one should I use if my goal is to reserve enough memory for the VPU?
one can use device tree settings for i.MX6 Sabre boards from nxp linux
source.codeaurora.org/external/imx/linux-imx repository
dts\boot\arm\arch - linux-imx - i.MX Linux kernel
Linux documentation
i.MX Software and Development Tools | NXP
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------