Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Cover for Why Can DMA and the CPU See Different Buffer Data?

Video by Adaptive AgroTech. If the embedded player is unavailable, open the original video ↗.

Why Can DMA and the CPU See Different Buffer Data?

DMA and the CPU can access the same memory through different paths.

Understand the concept

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
Pause & think

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.