DisplayPort Link Training Process Explained
DisplayPort link training is the foundational communication handshake that occurs between a video source (such as a graphics card) and a sink device (such as a monitor) to establish a stable, high-bandwidth connection. During this process, the two devices test the physical transmission path to negotiate the maximum reliable data rate, the optimal number of active lanes, and the signal conditioning parameters needed to overcome signal degradation. By dynamically testing and adjusting these transmission parameters, the DisplayPort interface ensures robust video and audio delivery without data corruption.
The Role of the AUX Channel and DPCD
Before high-speed data transmission begins on the main link lanes, the source and sink communicate over a low-speed, bidirectional sideband channel called the Auxiliary (AUX) Channel. The sink maintains a set of registers known as the DisplayPort Configuration Data (DPCD).
When a connection is detected via the Hot Plug Detect (HPD) pin, the source reads the DPCD to discover the monitor's capabilities, including maximum supported link rates (such as RBR, HBR, HBR2, HBR3, or UHBR), maximum lane counts (1, 2, or 4 lanes), and receiver capabilities. Once these limits are known, the source initiates the link training sequence over the main data lanes while monitoring status updates via the AUX channel.
Phase 1: Clock Recovery (CR)
The first active stage of link training is Clock Recovery. Its objective is to allow the receiver's Clock and Data Recovery (CDR) circuit to lock onto the frequency and phase of the incoming data stream.
- Test Pattern Transmission: The source transmits a specific Clock Recovery training pattern (typically TPS1) across all active lanes.
- Voltage Swing Negotiation: The transmission starts at the lowest voltage swing level. The sink evaluates whether its receiver can lock onto the clock signal.
- Feedback via AUX: The sink updates its DPCD status registers to indicate whether clock recovery was achieved on all lanes. If the sink cannot achieve a lock, it requests a higher voltage swing.
- Iterative Adjustments: The source reads the DPCD registers, increases the drive current if requested, and continues transmitting.
If the clock lock fails even at maximum voltage swing, the source reduces the link rate (e.g., dropping from HBR3 to HBR2) and restarts the Clock Recovery phase.
Phase 2: Channel Equalization and Symbol Lock
Once clock recovery is achieved across all lanes, the process transitions to Channel Equalization. This stage optimizes signal integrity by compensating for high-frequency attenuation, inter-symbol interference, and lane-to-lane skew caused by the cable and circuit board traces.
- Equalization Pattern Transmission: The source switches to a more complex training pattern (TPS2, TPS3, or TPS4, depending on the DisplayPort specification version).
- Signal Conditioning: The sink assesses channel equalization, symbol lock (identifying byte boundaries), and inter-lane alignment. If the high-frequency components are distorted, the sink requests adjustments to pre-emphasis levels (boosting high frequencies prior to transmission) or post-cursor equalization.
- Adjustment Loop: The source adjusts its drive settings according to the sink's DPCD feedback until all lanes achieve equalization, valid symbol lock, and lane alignment simultaneously.
Training Completion and Fallback
Link training concludes successfully when the sink registers confirm that both clock recovery and channel equalization have passed across all active lanes. The source then ceases sending training patterns, configures the main link for normal operation, and begins streaming pixel and audio data.
If channel equalization fails despite reaching the maximum allowable pre-emphasis and voltage swing settings, the link training fails. The source then falls back to a safer configuration—either reducing the link rate, reducing the lane count, or both—and restarts the entire training sequence from Phase 1. This fallback mechanism ensures that a display output is maintained, even if degraded cable quality prevents running at the panel's maximum native refresh rate or resolution without compression.