LS1046A DMA Memory Access Issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1046A DMA Memory Access Issue

Jump to solution
946 Views
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 Kudos
1 Solution
916 Views
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.

  

View solution in original post

0 Kudos
3 Replies
921 Views
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 Kudos
888 Views
JSKIM
Contributor III

I usually use devmem tool. and

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

0 Kudos
917 Views
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 Kudos