LS1046A DMA Memory Access Issue

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

LS1046A DMA Memory Access Issue

跳至解决方案
2,067 次查看
JSKIM
Contributor III

I use LSDK2004, and dma api functions. 

i use dma_alloc_coherent to alloc dma memory, and i check physical address of /proc/iomap which is 32bit address.

when i access to dma physical address at user space, there is access limit of dma memory. 

But in case of kernel access such as ioctl, there is no problem.

May i have the reason?

0 项奖励
回复
1 解答
2,037 次查看
JSKIM
Contributor III

I solved the issue.

In case of LSDK2004, there is access limit from user space to kernel memory when arch is ppc, x86, arm64.

So I changed the Kconfig of kernel.

  

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,042 次查看
yipingwang
NXP TechSupport
NXP TechSupport

How are you using this physical address when you see this limitation ?

Does this limitation also happen while accessing mmap'ed memory ?

0 项奖励
回复
2,009 次查看
JSKIM
Contributor III

I usually use devmem tool. and

i found there was access limit when i use mmap memory on kernel

0 项奖励
回复
2,038 次查看
JSKIM
Contributor III

I solved the issue.

In case of LSDK2004, there is access limit from user space to kernel memory when arch is ppc, x86, arm64.

So I changed the Kconfig of kernel.

  

0 项奖励
回复