LS1046A DMA Memory Access Issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LS1046A DMA Memory Access Issue

ソリューションへジャンプ
2,060件の閲覧回数
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,030件の閲覧回数
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,035件の閲覧回数
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,002件の閲覧回数
JSKIM
Contributor III

I usually use devmem tool. and

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

0 件の賞賛
返信
2,031件の閲覧回数
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 件の賞賛
返信