Hi guys,
Currently, i'm working with the edma data transfer from logram to memory buffer.I would like to ask some question regarding edma and memory region stuff.
1st, i use the kmalloc to alloc the memory region that i need to use later. i'm using request_mem_region to request logram and memory buffer.the physical address for logram is 0x5E000000ULL and memory is 0xC0000000ULL.After that, i'm using the ioremap to get the kernel virtual address. After, i'm use the dma_alloc_coherent to get the virtual address : dmabufsrc,dmabufdest and done the edma setting base on some example. after transfer from dmabufsrc->dmabufdest, i use the iowrite(dmabufdest,mem_virt).All the result is correct.
But, when i try to read from user space, there is some problem. i'm using mmap() to mmap the physical address that i assigned to the memory buffer.When i pass the string, at driver space can show the string but at the user space, it show nothing.Can anyone help me?Thank you.