
Software Optimization Guide for AMD64 Processors | 25112 Rev. 3.06 September 2005 |
CPU 0
|
| Victim Buffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
| Write Buffer |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
| Instruction MAB |
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||
|
| Data MAB |
|
|
|
|
|
|
| All buffers are |
|
| |||||||||
|
|
|
|
|
|
|
|
|
| CPU 1 |
|
|
| command/address |
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
| System Request |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
to |
|
| Queue |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
CPU |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
| HyperTransport 0 | HyperTransport 1 | HyperTransport 2 |
| Memory |
| to | ||||||||||||
|
|
|
|
|
|
|
| Command |
| ||||||||||||
|
|
|
|
|
|
|
| Input | Input | Input |
|
|
| DCT | |||||||
|
|
|
| Address MAP |
|
|
|
| Queue |
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
| & GART |
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Router | Router | Router | Router | Router |
XBAR |
|
|
|
|
Hypertransport 0 | HyperTransport 1 | HyperTransport 2 |
Output | Output | Output |
Figure 12. Northbridge Command Flow
D.5 Memory Optimizations for
Historically (that is, with AGP 1.0 and AGP 2.0), AGP memory used for command DMA buffers was
accessed by the processor through the AGP aperture space (this feature is referred to as host translation). This address space was mapped as
caches were not snooped by an AGP master (that is, coherency was not enforced for AGP memory).
On current systems however, coherency between an AGP master (making accesses through the AGP aperture) and the processor caches is maintained due to the HyperTransport protocol and the MOESI (modified, owner, exclusive, shared, invalid) caching policy. Coherency support between an AGP master and the processor caches is enabled through a bit in the GART entry (Gart_entry.coh). The AGP miniport driver sets this bit as it maps entries in the GART. The video graphics miniport driver can verify this feature in the AGP
Note: Coherency support is implemented by hardware in AMD Athlon 64 and AMD Opteron processors, and is not specific to the AGP tunnel device, even though the support is indicated in the tunnel’s AGP
Therefore, a key optimization for the DMA model on AMD Athlon 64 and AMD Opteron processors is that the AGP master may read the data from the processor caches faster than reading data from the DDR memory, since the processor caches operate at higher clock frequencies. As processor clock
352 | AGP Considerations | Appendix D |