Forum Discussion
Altera_Forum
Honored Contributor
16 years agoLinux with MMU on NEEK
Hi, all. I'm testing Linux MMU version, on my NEEK. http://www.nioswiki.com/linux It works fine and I can use "bash" shell. This is the evident proof that we are using the true 'fo...
Altera_Forum
Honored Contributor
16 years agoOh, sorry. It's racing.
The descriptors must be flushed before we re-start the DMA.
// writel((unsigned long)desc1, base + ALTERA_SGDMA_NEXT_DESC_POINTER);
writel(((unsigned long)virt_to_phys(desc1)), base + ALTERA_SGDMA_NEXT_DESC_POINTER);
flush_cache_all(); // <- Must be here.
writel(ALTERA_SGDMA_CONTROL_RUN_MSK | ALTERA_SGDMA_CONTROL_PARK_MSK,
base + ALTERA_SGDMA_CONTROL); /* start */
// flush_cache_all(); // <- To flush descriptors from the cache. Indeed, it's enough to flush the D-cache.
return 0;
}
Kazu