Closed lunixbochs closed 8 years ago
https://fgiesen.wordpress.com/2012/07/21/the-magic-ring-buffer/
With a more complicated memory mapping strategy (control, data, data again), reads from the end of data will be contiguous for free, which makes the DMA strategy better.
The current DMA strat is actually okay, but wasteful because it wraps early if we can't fit.
done in pipe-sync
https://fgiesen.wordpress.com/2012/07/21/the-magic-ring-buffer/
With a more complicated memory mapping strategy (control, data, data again), reads from the end of data will be contiguous for free, which makes the DMA strategy better.