Forum Discussion
Altera_Forum
Honored Contributor
8 years agoSOLVED !!!!!
I switched my allocation of the memory buffers to: static char * dmakbuf1; "kbuf" static char * dmakbuf2; static dma_addr_t handle; static dma_addr_t handle2; static size_t size = (1024 * PAGE_SIZE); dmakbuf1 = dma_alloc_coherent(NULL, size, &handle, GFP_KERNEL); if ( dmakbuf1 == NULL ) printk( KERN_ALERT "dma_alloc_coherent FAILED !!!! BUF1 \n" ); dmakbuf2 = dma_alloc_coherent(NULL, size, &handle2, GFP_KERNEL); if ( dmakbuf2 == NULL ) printk( KERN_ALERT "dma_alloc_coherent FAILED !!!! BUF2 \n" ); THE RETURN VALUES == "handle" the physical address is what I give to the FIRMWARE and the "dmakbuf" is what the user space code needs (NO ioremap) Hope this helps someone else.