infrastructure.rst 3.35 KB

Device drivers infrastructure

The Basic Device Driver-Model Structures

Device Drivers Base

Buffer Sharing and Synchronization

The dma-buf subsystem provides the framework for sharing buffers for hardware (DMA) access across multiple device drivers and subsystems, and for synchronizing asynchronous hardware access.

This is used, for example, by drm "prime" multi-GPU support, but is of course not limited to GPU use cases.

The three main components of this are: (1) dma-buf, representing a sg_table and exposed to userspace as a file descriptor to allow passing between devices, (2) fence, which provides a mechanism to signal when one device as finished access, and (3) reservation, which manages the shared or exclusive fence(s) associated with the buffer.

dma-buf

reservation

fence

Device Drivers DMA Management

Device Drivers Power Management

Device Drivers ACPI Support

Device drivers PnP support

Userspace IO devices