A Think Again Media Group publication
Tech Debunk

Is AGP just a faster version of the PCI slot?

AGP memory: what changed beyond the graphics slot

By Phil Springer, Editor · Published · Tech Debunk

AGP memory: what changed beyond the graphics slot

AGP memory depended on more than a faster expansion connector. The Accelerated Graphics Port gave a graphics adapter a dedicated connection and a way to use memory elsewhere in the computer. Intel's chipset documentation and Microsoft's driver instructions expose the machinery behind that arrangement: queued commands, address mapping, electrical requirements and software that had to prepare memory before the graphics processor could use it. The slot was the visible part of a larger bargain between the graphics card, motherboard chipset and operating system.

AGP inherited technology from PCI, but its traffic could work differently. Wikipedia's later technical summary describes requests entering queues separately from the data transfers that satisfy them. Several requests could therefore remain outstanding instead of each waiting for the previous transfer to finish. An additional eight address lines, called sideband addressing, could carry new requests while the main lines carried data. Textures could reside in system memory, with an address remapping table presenting allocated pages as a continuous range to the graphics hardware. These changes explain why a dedicated graphics connection was useful beyond its transfer rate. Moving the graphics card off the shared PCI bus also removed competition with other devices on that bus. Intel developed the interface independently of the PCI Special Interest Group; its relationship to PCI did not make existing PCI cards electrically or mechanically interchangeable with AGP cards.

The Intel 82815 datasheet makes the distinction concrete. Its AGP status register advertises room for 32 outstanding command requests and support for sideband addressing. A separate command register enables those features and selects a data rate. The status register describes capability, whereas the command register selects operation. Advertising several transfer rates does not mean they run together: Intel requires exactly one rate bit to be selected. The same chipset supports either the PIPE# addressing mechanism or sideband addressing, with the choice made during initialization. They are alternatives on this implementation. The register also reports that processor-to-card Fast Writes are unavailable, and Intel requires the corresponding enable bit to remain clear. AGP memory support thus came with explicit capabilities and limits. This chipset supports one AGP connector, with 1X and 2X operation at either 1.5 or 3.3 volts, while 4X requires 1.5 volts. Installing an AGP card disables its integrated graphics and enables its AGP controller. These are specifications for this particular chipset, rather than a promise that every AGP implementation supports every feature bearing the name.

Microsoft's AgpCommitVirtual documentation shows the operating system's side of AGP memory. Before this function can map a virtual range, the driver must reserve physical addresses for the graphics processor, associate those addresses with locked pages in system memory, and reserve a corresponding virtual range. Only then can it commit the virtual mapping. A virtual page cannot be mapped before its matching physical page has been prepared. The function takes a page count and an offset, so a driver can commit part of a previously reserved range. It returns the base virtual address on success and a null value on failure. Windows 2000 drivers also have to commit ranges in multiples of 64 kilobytes; otherwise, the returned address can be invalid. Windows XP and later expand the committed range to that boundary automatically. A card's access to system RAM therefore depended on a sequence of memory-management operations, with failure conditions and operating-system-specific requirements.

Electrical timing imposed another set of conditions. Intel's 845E design guide describes 4X transfers as four samples within each 66 MHz clock cycle. The 3.75-nanosecond interval is the data cycle, while the clock cycle remains about 15 nanoseconds. In 2X mode, sampling occurs twice per clock cycle, giving a 7.5-nanosecond data interval. The guide specifies source-synchronous strobes for these faster transfers and differential strobes for 4X. It also warns that noise or excessive mismatch between a data signal and its strobe can cause the receiver to sample bad data. Board designers must control trace lengths, widths and spacing. This platform supports 1.5-volt signaling only, even though other AGP platforms accepted different electrical arrangements. The multiplication label described a transfer mechanism that depended on compatible signaling and careful board construction.

Microsoft's archived PCI Express guidance identifies a further architectural boundary. AGP memory uses a graphics address relocation table, or GART, in the chipset to give the adapter a linear view of scattered system memory. With PCI Express, that memory-linearization hardware belongs on the graphics device, with the corresponding support in its video driver. Microsoft also distinguishes AGP's exclusive graphics role from PCI Express's use across device classes. Its discussion of cache coherency describes another cost of the older interface: shared memory must be uncached, write-combined or explicitly flushed between processor and graphics use. A dedicated slot, memory mapping and cache handling were separate engineering decisions. Increasing bandwidth addressed only one of them.

True or False?

AGP is just a faster version of the PCI slot.

Show the answer

The Record

Intel built it on its own, away from the PCI-SIG crowd, because shoving the graphics card onto the same bus as everything else meant your 3D acceleration had to fight every other device for bandwidth like it was rush hour. AGP got its own road — a separate data bus that raised total system throughput and let the video card reach into system memory directly through queued transactions, instead of lugging around local copies like a regular PCI card did. That separation also meant it could break compatibility with the existing pile of PCI cards on purpose; it was never going to be a lowest-common-denominator standard. (Its spiritual ancestor in the ISA era was the VESA Local Bus.) Then PCIe started replacing it in 2004, and by mid-2008 AGP was a museum piece that GPU makers dropped fast.

Send this question to a friend

Read next

By clicking “Send me the real story” you agree to Tech Debunk’s Terms of Use and Privacy Policy.