Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

The critical path — what a minimal working HDMI 2.1 link needs, in order:

StepWhat happensCrateStatus
1Parse the sink’s EDID / DisplayID into typed capabilitiespiafReleased
2Negotiate a ranked list of configurations the sink, source and cable can all carryconcordanceReleased
3Read and write the sink’s SCDC registersculvertReleased
4Train the FRL link, stepping down rates when the sink asks, falling back to TMDSplumbobReleased
5Choose the TMDS link: clock ratio, scrambling and the sink’s TMDS_ConfigspiritlevelReleased
6Bring the TMDS link up over the PHY and SCDC, and check the sink followsspiritlevelReleased
7Run the above against real hardware from Linux userspacehdmi-hal-i2c-devReleased
8Describe the chosen configuration in InfoFramescartoucheReleased
9Discover the source’s capabilities from DRM/KMS—Planned
10Turn 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"]