GPU drivers must solve two fundamental problems: managing GPU-accessible memory and submitting commands to the GPU for execution. Whether rendering a frame or executing a model inference, the process begins with allocating, placing, and mapping memory for buffer objects (BOs), followed by submitting commands that reference these BOs and coordinating access from the CPU, GPU, and other devices.

In the Linux kernel, the DRM subsystem assumes these responsibilities: GEM and TTM manage BOs and their backing stores, dma-buf and dma-fence handle sharing and synchronization, while the GPU scheduler and drm_gpuvm manage command scheduling and GPU address spaces. These frameworks provide a unified abstraction for GPU drivers such as Intel, AMD, NVIDIA, and Arm Mali, while managing system memory, VRAM, and hardware queues below. This series traces the life cycle of buffer objects as its organizing principle, systematically analyzing this architecture.

The scope and organization of this series are described in The Main Thread and Organization of This Book, with the rationale for selecting this content found in The Evolution of DRM.

This series uses Linux 7.1 as its code baseline and covers modern GPU memory management and command submission mechanisms, addressing both graphics and AI compute workloads. It encompasses buffer sharing and implicit synchronization required by graphics stacks, as well as long-running jobs, user-space queues, and shared virtual memory that compute workloads depend on.

The series emphasizes explaining why each mechanism is designed as it is: first establishing the problem a mechanism solves and its hardware background, then analyzing design tradeoffs and kernel implementation, and finally validating these with code from drivers such as amdgpu, Xe, and panthor.

The content of this series is drawn from hands-on experience in GPU driver development. Problems such as VRAM leaks, eviction thrashing, synchronization deadlocks, and submission timeouts often require tracing through the intersection of GEM, TTM, dma-fence, and the scheduler to find the root cause. Related knowledge is scattered across kernel source code, mailing lists, and driver implementations, almost entirely in English. Existing Chinese materials are mostly fragmented discussions of individual interfaces or specific drivers; systematic explanations of these mechanisms are rare. This series aims to fill that gap: rather than introducing a single interface or driver in isolation, it follows the BO life cycle and connects object management, backing stores, sharing and synchronization, scheduling, address spaces, and command submission—explaining why each mechanism exists, how they work together, and providing developers who encounter similar problems with a coherent thread to follow.

Below is the series table of contents, which we recommend reading in order.

Chapter 1 DRM Subsystem Overview

Chapter 2 DRM Framework

Chapter 3 GEM Object Model

Chapter 4 Lightweight Backing Store

Chapter 5 TTM Backing Store

Chapter 6 BO Sharing

Chapter 7 Synchronization of Asynchronous Access

Chapter 8 GPU Scheduler Framework

Chapter 9 Evolution of GPU Address Space

Chapter 10 Evolution of Submission Paths

  • 10.1 Four Forms of Submission Paths
  • 10.2 BO List-Based Submission — In review
  • 10.3 VM-Based Submission — In review
  • 10.4 Firmware Scheduling and Scheduler Assumptions — In review
  • 10.5 dma_fence Constraints and Long-Running Jobs — In review
  • 10.6 User-Space Queues — In review
  • 10.7 Submission Path Driver Integration — In review
  • 10.8 Chapter Summary — In review

Chapter 11 Shared Virtual Memory (SVM)

  • 11.1 Requirements of SVM and DRM’s Two-Layer Framework
  • 11.2 Kernel Foundations of Mirroring: mmu_interval_notifier and hmm_range_fault — In review
  • 11.3 Kernel Foundations of Device Memory: ZONE_DEVICE and migrate_vma
  • 11.4 drm_gpusvm Object Model: notifier and range — In review
  • 11.5 Page Fetching and DMA Mapping — In review
  • 11.6 Invalidation and Partial Unmapping — In review
  • 11.7 Device Memory Provider: drm_pagemap — In review
  • 11.8 Owner Groups, P2P Access, and pagemap Caching — In review
  • 11.9 Migration to Device Memory — In review
  • 11.10 Migration Back to System Memory — In review
  • 11.11 Page Fault and Invalidation Driver Integration — Being written
  • 11.12 Device Memory and Migration Driver Integration — Being written
  • 11.13 Chapter Summary — Being written

Appendix A DRM Kernel Debugging Techniques

Being written.

Appendix B Kernel Fundamental Mechanisms

Appendix C DRM Implementation Details Q&A