DRM (Direct Rendering Manager) is the Linux kernel subsystem that manages GPUs. The first impression of DRM is often that it is the subsystem responsible for display. That impression comes from the word “Rendering” in its name and from DRM’s original purpose: serving direct rendering and display output for the X Server. But this no longer reflects DRM’s current responsibilities. This section explains DRM’s components, their relationships, and the organization of this chapter.
1. Two Main Axes
By responsibility, DRM consists of two main axes:
- Display (KMS): Uses objects such as CRTC, plane, encoder, and connector to model display hardware, and handles mode setting, display timing, and hot-plug detection.
- Memory and resource management: GEM, TTM, dma-buf, dma-fence, the GPU scheduler,
drm_gpuvm, and SVM for a unified address space handle GPU memory allocation, placement, mapping, sharing, and synchronization, as well as GPU job scheduling and submission.
2. Relationship Between the Two Axes
The relationship is one-way: KMS depends on resource management, but not the reverse. A struct drm_framebuffer used for scanout does not own memory. It references GEM objects through its obj[] field, and the pixel data resides in those objects. Accelerator cards used for AI training and general-purpose computing in data centers are mostly headless, but they still use DRM’s full resource-management and scheduling framework. They access the GPU through render nodes such as /dev/dri/renderDN without acquiring display-control privileges.
A more accurate description of DRM is therefore a unified kernel framework for GPU resources, especially GPU memory. KMS is one consumer built on top of resource management. Figure 1.1.1 shows this structure from user space to hardware.

Figure 1.1.1. DRM subsystem composition
In the diagram, user-space programs enter the DRM core through device files under /dev/dri; KMS and resource management are built above the core. The dashed arrow represents a framebuffer’s reference to a GEM object. Individual GPU drivers implement the actual operations for their hardware. This book focuses on resource management.
3. Chapter Organization
The remaining sections of this chapter are listed in Table 1.1.1.
Table 1.1.1. Organization of Chapter 1
| Section | Topic | Content |
|---|---|---|
| 1.2 | DRM Evolution | The main challenges and key mechanisms of three phases: graphics display, graphics rendering, and heterogeneous computing and AI |
| 1.3 | Hardware Model of GPU Memory Access | System topology, memory types and coherency, CPU/GPU memory-access flows, and address translation |
| 1.4 | Hardware Model of Command Submission | Execution engines and command processors, the job life cycle, queues and hardware queue slots, queue mapping and preemption, and cache synchronization at job boundaries |
| 1.5 | Main Thread and Organization of This Book | Why the BO life cycle is the book’s main thread and where each chapter fits into it |
| 1.6 | Chapter Summary | Summary and references |
Section 1.2 explains why these mechanisms appeared in sequence. Sections 1.3 and 1.4 explain the hardware constraints they address. Section 1.5 then explains the organization of the entire book.