WIPIVERSE All articles

Graphics address remapping table

Definition
A Graphics Address Remapping Table (GART) is a hardware-managed data structure that allows a graphics processing unit (GPU) to access system memory as if it were part of the GPU’s own address space. By providing a translation layer between the GPU’s virtual addresses and physical addresses in main memory, the GART enables efficient sharing of system RAM for graphics workloads, such as textures, vertex buffers, and frame buffers.

Historical Context

  • AGP (Accelerated Graphics Port): The GART concept originated with the AGP specification introduced in the late 1990s. AGP cards used a GART to map a portion of system memory (the “AGP aperture”) into the graphics card’s address space, allowing the GPU to read/write data without continuous CPU intervention.
  • Early Integrated Graphics: Intel’s early integrated graphics solutions (e.g., Intel i915, GMA series) and AMD’s early APUs employed a GART to provide unified memory access, eliminating the need for dedicated video RAM in low‑cost platforms.
  • Transition to PCI Express: While PCI‑Express GPUs typically have dedicated video memory, the GART (or similar “scatter‑gather” engines) remains in use for features such as direct memory access (DMA) of system RAM for compute tasks and for unified memory architectures.

Technical Operation

  1. Allocation: The operating system or graphics driver allocates a contiguous region of physical system memory for graphics use.
  2. Page Table Construction: The driver populates the GART with entries that map each graphics virtual address to a corresponding physical page frame.
  3. GPU Access: When the GPU issues a memory request, the address is first translated by the GART hardware to a physical address, allowing the request to be serviced directly from system RAM.
  4. Caching and Coherency: Modern implementations may include caching of GART entries within the GPU and mechanisms to maintain cache coherency between CPU and GPU accesses.

Key Characteristics

  • Size: The GART size is configurable; common configurations range from 64 MiB to several hundred MiB, depending on system resources and driver settings.
  • Performance: Access latency is higher than dedicated video memory (VRAM) but lower than CPU‑mediated copies, making the GART valuable for workloads where memory bandwidth is more critical than absolute latency.
  • Unified Memory: In heterogeneous computing (e.g., OpenCL, DirectX 12, Vulkan), the GART forms the basis of “unified memory” models, where CPU and GPU share a common address space.

Examples of Use

  • Intel Integrated Graphics: The GMA 950 and later i915/i965 families use a GART to map system RAM for graphics buffers. The driver exposes the GART as a “Graphics Memory” region visible to the operating system.
  • AMD A-Series APUs: AMD’s “Unified Video Decoder” and graphics cores access system memory via a GART‑like structure, sometimes referred to as the “Graphics Memory Management Unit” (GMMU).
  • Linux Kernel: The Linux DRM (Direct Rendering Manager) subsystem includes support for GART allocation and management, exposing interfaces such as drm_gem objects that rely on GART mappings.

Related Concepts

  • I/O Memory Management Unit (IOMMU): Provides address translation for peripheral devices, including GPUs, but operates at a broader system level than the GART, which is specific to graphics memory.
  • Scatter‑Gather Engine: Hardware that gathers non‑contiguous memory pages into a continuous stream for DMA; functionally similar to the GART in many modern GPUs.
  • Unified Memory Architecture (UMA): A design approach where CPU and GPU share the same physical memory pool; the GART is a key enabling component in UMA implementations.

Considerations

  • Performance Trade‑offs: While the GART simplifies memory management and reduces hardware costs, it can become a bottleneck for high‑resolution or high‑frame‑rate graphics if system memory bandwidth is limited.
  • Security: Because the GART maps system memory into the GPU’s address space, proper isolation and validation (e.g., via IOMMU) are necessary to prevent unauthorized memory access.
  • Driver Support: Correct operation of the GART depends on driver configuration; misconfiguration can lead to graphical artifacts, crashes, or reduced performance.

References (Encyclopedic Sources)

  • “Accelerated Graphics Port (AGP) Specification,” VESA, 1997.
  • “Intel® Graphics Memory Management,” Intel® Architecture Developer’s Manual, 2006‑2022.
  • “AMD Unified Memory Architecture,” AMD Technical Documentation, 2011‑2023.
  • “Direct Rendering Manager (DRM) Architecture,” Linux Kernel Documentation, 2020‑2025.

The above synthesis is based on widely documented technical literature and vendor specifications concerning graphics memory management.

Browse

More topics to explore

    Browse all articles