Guys,
I realize its more a programming question, but I tried asking on other forums and no good answer...
I'm trying to use the scatter/gather DMA function within the mentioned SoC's. It seems I'm running in some kind of CPU cache problem. I understand the "dma_map_sg", "unmap" and "sync" functions, but for some reason the data is still corrupted.
If I "add" enough delays in the form of "dev_info" / "printk" to debug this problem, the problem disappears. I tried adding "bounce" buffers, but that (obviously) reduces performance but doesn't seem to solve the problem.
Would you be so kind and point me in the right direction, cause the devs on this forum seem to be the most knowledgeable on this topic (even linux-mips didn't really help).