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.

Linux, CMA大小修改后,无效



两个问题关于DMA的:

1,内核里面修改了预留的CMA大小为256M,为什么dma_alloc_coherent申请100M的时候还是会失败?

2,修改设备树增加如DSP一样的CMA空间, 用什么接口来使用, 下面是打印,

[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
[ 0.000000] OF: reserved mem: initialized node ipu2-memory@95800000, compatible id shared-dma-pool

[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
[ 0.000000] OF: reserved mem: initialized node dsp1-memory@99000000, compatible id shared-dma-pool