Why Can DMA and the CPU See Different Buffer Data?
DMA and the CPU can access the same memory through different paths.
The key idea
DMA and the CPU can access the same memory through different paths. On a processor without hardware cache coherence, their views of a buffer can differ.
What to remember
- Identify which agent owns the buffer
- Follow the platform's cache-maintenance rules when ownership changes
Check your understanding
Why might a CPU read an old value after DMA has completed?
Show the explanation
A stale cache line may still hold the previous value.