Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Virtual to physical adress problem for DMA: (2 Items)
   
Virtual to physical adress problem for DMA  
Hello All.

Working on porting SDIO driver on to QNX. I am using DMA for reading and writing data basically for DMA iam using 4 
bytes  for transfer meaning 
i need to read an integer value using DMA by passing integer address for DMA.

How is this done.

I have an integer variable int value; 

For DMA i get the physical address of this address value 

mem_offset64(&vaue, NOFD, 1, &offset, 0)

This physical address is used for DMA.  Problem i see is iam not able to get any value from the controller later using 
mmap for 4 bytes allocation i got the adress same address was used for DMA which was successful. 

Later i used volatile int value which also didn't give the right physical address for successful DMA.

Is there a way where i can get right physical address for address of value which will result in successful DMA.

Regards
Kaushik



Re: Virtual to physical adress problem for DMA  
Hi!

Sorry, but why are u using DMA just for 4 bytes? It's not effectively!

I'm investigated DMA(sdma library for iMX6)  and my conclusion is - DMA has a lot of bugs!