Methods to allocate EBA for IDMAC in IPU

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Methods to allocate EBA for IDMAC in IPU

跳至解决方案
1,221 次查看
pradeepas
Contributor II

Hello,

In the Linux kernel source the EBA for IPU-CPMEM is allocated using the dma_alloc_coherent API. Is this a must to do?

I'm writing a driver from the scratch for a very specific CSI module manipulation and therefore I would like to know whether there are any other ways to perform this memory allocation (ie. kmalloc).

In SDK the memory used for the EBA is,

#define IPU_DMA_MEMORY_START0x40000000

#define CH0_EBA1(IPU_DMA_MEMORY_START + 0x01C00000)

Do these memory locations have any special attributes associated or can I use any memory location by allocating through kmalloc?

Can someone give me some thought for this?

Thank you in advance.

Pradeepa

标签 (2)
标记 (2)
0 项奖励
回复
1 解答
1,109 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Pradeepa

any memory location can be used but

IPU IDMAC can operate only with unfragmented memory,

so seems one can use kmalloc, but verify that requirement.

EBA is described in sect.37.4.2.7 IMX6DQRM

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,110 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Pradeepa

any memory location can be used but

IPU IDMAC can operate only with unfragmented memory,

so seems one can use kmalloc, but verify that requirement.

EBA is described in sect.37.4.2.7 IMX6DQRM

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复