Here is the definition from wiki:
Direct memory access (DMA) is a feature of modern computers and microprocessors that allows certain hardware subsystems within the computer to access system memory for reading and/or writing independently of the central processing unit
The basic idea is that: DMA could move data from one device to another device without CPU.
For example, it would move data from memory to harddisk. If you use Peripheral Input/Output PIO to move data, it would access CPU for each single byte. (copy 0x80 to register, and copy register to hard disk.)
Another example, video capture card send data to network card(Video Chat), DMA helps a lot. DMA is a feature of Bus, not necessary to be a device.
Today, I just had a experience about DMA. The coreboot doesn't support the DMA enable for SATA on Windows XP, so the XP is very slow. Every single byte of data reading/writing to disk need to be done by CPU.
If we go to device manage and click Primary IDE Channel Properties, we would see Current Transfer Mode as PIO.
We could fix this problem by install the south-bridge SATA driver(VIA SATA on ASUS M2V-MX_SE ). After we installed the SATA driver, the Current Transfer Mode changed to Ultra DMA Mode 6
No comments:
Post a Comment