Upstream references and integration boundaries
Reviewed on 2026-10-25 alongside main (driver 0.4.0, UAPI v14). These references
explain the external APIs used by the driver and tools. They are not evidence
that every GPU/compositor combination works. The repository's
UAPI header, HDR contract
and tests define the Hermes-KMS-specific behavior.
Kernel and buffer contracts
| Reference | Relevance to Hermes-KMS |
|---|---|
| DRM userland interfaces | Primary nodes, DRM master, render-node permissions and hot-unplug semantics. Capture uses the render node; KMS ownership belongs to the compositor. |
| DRM/KMS | Atomic state lifetime, planes, formats/modifiers, connector properties and colour management. |
Linux drm_mode.h | Public hdr_output_metadata representation and mastering metadata units used by UAPI v14. Use the definitions matching the target headers. |
| DMA-BUF sharing and synchronization | Export/import, dma_resv, producer fences and CPU-access synchronization. An exported fd does not imply completed rendering or correct importer sampling. |
| Configfs | Userspace-owned kernel object lifetimes through mkdir, attributes and rmdir. |
| VKMS runtime configuration | Upstream precedent for creating virtual DRM cards at runtime. Hermes-KMS has its own attribute schema; it is not a drop-in VKMS configfs ABI. |
An accepted format/modifier describes a layout, not a guarantee that a particular GPU can import it without copying. The compositor allocator and capture consumer must agree on that layout and its synchronization.
Consumer import and encoding
| Reference | Relevance and limit |
|---|---|
| VA-API core API | Surface creation used by the VAAPI preflight; the tool supplies a DRM PRIME descriptor. Surface acceptance is narrower than complete encoding validation. |
| EGL DMA-BUF import | Fourcc, plane fd, offset and pitch attributes for creating an EGLImage. |
| EGL DMA-BUF modifier import | Explicit layout modifiers and queries for supported formats/modifiers. A listed or accepted import must still be checked against actual pixels. |
| NVIDIA encode/decode support matrix | Hardware codec and ten-bit encode capabilities. NVENC support does not establish correct DMA-BUF/EGL import or zero-copy for a Hermes-KMS buffer. |
| Hermes HDR integration | Reference consumer's setup, conversion/encoding paths, fallback behavior and end-to-end validation gates. It is a separate application and can evolve independently. |
The historical NVIDIA import result is scoped to the tested driver/GPU in the EGL checker guide, not a statement about every NVIDIA release. The experimental NVIDIA branch contains further diagnostics; see roadmap.md.
Seats and service policy
The seatd manual documents the
compile-time socket location and SEATD_VTBOUND=0. Hermes-KMS uses a separate
mount namespace per broker to expose a private socket and sets that environment
in the packaged systemd unit.
A custom launch must preserve both arrangements. This separates broker activation
state; it does not create a sandbox for mutually untrusted users.
Installation
- bootc image model and
bootc switch: a derived system image carries its kernel/module tree and is deployed for a subsequent boot. The repository's Bazzite Containerfile builds against that image's kernel, not the build host's kernel. - Kernel module signing: signing a module and trusting its certificate are separate requirements. Hermes-KMS accepts build secrets for signing; certificate enrollment remains part of the target distribution's Secure Boot setup.
The shipped Containerfile is a Bazzite/Fedora integration example. It does not establish support for every immutable distribution, base-image tag or kernel. Rebuild the derived image when its kernel changes and validate the resulting module on the intended system.
Source: Hermes-KMS at ba9aeb854d2b · GPL-2.0 license.