TI中文支持网
TI专业的中文技术问题搜集分享网站

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

yongqing wang:

使用的是什么SDK呢

Nancy Wang:

请仔细阅读这篇文档,看一下对cma的修改是否正确。
wiki.tiprocessors.com/…/Linux_IPC_on_AM57xx
同时建议您去英文论坛也发布问题,可能对你更有帮助。

赞(0)
未经允许不得转载:TI中文支持网 » Linux, CMA大小修改后,无效
分享到: 更多 (0)