Our command line is "mem=1024M cma=64M", and the command line transfer from uboot to kernel.
Is this cma=64M included in mem=1024M ?
If not, where is the starting position of the CMA region?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Our command line is "mem=1024M cma=64M", and the command line transfer from uboot to kernel.
Is this cma=64M included in mem=1024M ?
If not, where is the starting position of the CMA region?
Hi,
please check if the following documents can help you:
<Kernel_dir>/Documentation/kernel-parameters.txt
<Kernel_dir>/Documentation/cma/debugfs.txt
<Kernel_dir>/drivers/base/dma-contiguous.c
<Kernel_dir>/include/linux/dma-contiguous.h
Regards,
Yordan
Thank you for your information.
According to my tracking of dma-contiguous.c code,
The size of the cma (cma=64M) is obtained from Linux kernel,
So I infer that the space used by CMA is also from the memory of the kerenl (mem=1024M).
Is my inference above correct?
Hi Allen,
your understanding is correct, it is part of mem=1024M.
Regards,
Yordan