The stack
Integration layer compositor glue · DRM/KMS · source capability query (planned)
Driver-adjacent layer FRL link training · TMDS bring-up plumbob · plumbob-async · spiritlevel · spiritlevel-async
Protocol layer CEC · eARC (planned)
Signaling layer InfoFrames · SCDC cartouche · culvert · culvert-async
Negotiation layer enumeration · validation · ranking concordance
Parsing layer EDID · DisplayID piaf
Shared types display vocabulary display-types
Hardware abstraction DDC bus · SCDC transport · PHY · time hdmi-hal · hdmi-hal-async · hdmi-hal-i2c-dev
Test support simulated sink · conformance checks maquette
From bytes to a trained link
The critical path — what a minimal working HDMI 2.1 link needs, in order:
| Step | What happens | Crate | Status |
|---|---|---|---|
| 1 | Parse the sink’s EDID / DisplayID into typed capabilities | piaf | Released |
| 2 | Negotiate a ranked list of configurations the sink, source and cable can all carry | concordance | Released |
| 3 | Read and write the sink’s SCDC registers | culvert | Released |
| 4 | Train the FRL link, stepping down rates when the sink asks, falling back to TMDS | plumbob | Released |
| 5 | Choose the TMDS link: clock ratio, scrambling and the sink’s TMDS_Config | spiritlevel | Released |
| 6 | Bring the TMDS link up over the PHY and SCDC, and check the sink follows | spiritlevel | Released |
| 7 | Run the above against real hardware from Linux userspace | hdmi-hal-i2c-dev | Released |
| 8 | Describe the chosen configuration in InfoFrames | cartouche | Released |
| 9 | Discover the source’s capabilities from DRM/KMS | — | Planned |
| 10 | Turn the negotiated configuration into a DRM atomic modeset | — | Planned |
CEC, eARC and further PHY configuration are off the critical path, but planned (soon™).
Where policy lives
The parsing and protocol layers are judgment-free: they implement the standard and
report what they find. The negotiation layer is where opinions live — it ranks candidates
by a NegotiationPolicy you can override, and every accepted or rejected candidate carries
a reasoning trace explaining why.
End-to-End Data Flow
flowchart TD
A[Raw EDID bytes] --> B["piaf <br> Parse EDID / DisplayID"]
B --> C[piaf::DisplayCapabilities]
C --> C2["Integration Layer<br>Convert to SinkCapabilities"]
C2 --> D["concordance <br>Negotiation Layer"]
E["SourceCapabilities<br>caller-supplied"] --> D
F["CableCapabilities<br>caller-supplied"] --> D
D --> G["Iterator of<br>NegotiatedConfig"]
G --> H["Select Configuration<br>(policy / caller)"]
H --> I["culvert <br>SCDC register access"]
H -->|TMDS configuration| T["spiritlevel <br>TMDS bring-up"]
T -->|"sink's TMDS_Config"| I
I --> I2["plumbob <br>FRL state machine"]
I2 --> J{Training Outcome}
J -->|Success| K[Achieved FRL Rate]
J -->|Fallback Required| D
K --> L["cartouche <br>InfoFrame Encoding"]
H --> L
L --> M[Encoded HDMI Packets]
H -.-> LV["InfoFrame builder<br>(planned)<br>Build and validate<br>against NegotiatedConfig"]
L -.-> LV
M --> N["DRM/KMS Integration<br>(planned)"]
N --> O["Atomic Commit<br>to Hardware"]