
How DRM/KMS Drivers Are Structured: CRTCs, Planes, Encoders and Connectors
How a Linux 6.12 DRM/KMS display driver is organized into framebuffers, planes, CRTCs, encoders and connectors, and how atomic commits move through them.
Tag
7 posts

How a Linux 6.12 DRM/KMS display driver is organized into framebuffers, planes, CRTCs, encoders and connectors, and how atomic commits move through them.

Write a Linux 6.12 pin controller driver: pinctrl_desc, pins, groups and functions, the set_mux callback, and the device tree states that consumers select.

How SR-IOV splits one PCIe device into virtual functions on Linux 6.12, how to enable them from sysfs, and how a PF driver supports sriov_configure.

Make a Linux 6.12 PCIe driver survive hot removal: detect all-ones reads, use pci_device_is_present, stop DMA and work, and get remove to finish cleanly.

Bind a PCI device to vfio-pci on Linux 6.12 and drive it from user space with the VFIO container and group ioctls: mmap a BAR, map DMA and read registers.

Write a RISC-V machine-mode trap handler in assembly: set mtvec, save registers, decode mcause, advance mepc past ecall and return with mret.

Write a Linux filesystem as a loadable module: file_system_type, the mount API, superblock, inodes, directories, page-cache I/O and a mount option, tested.