Understanding the DisplayPort HPD IRQ Pulse

The Hot-Plug Detect (HPD) Interrupt Request (IRQ) pulse is a critical signaling mechanism in DisplayPort communications that allows a downstream device (sink) to prompt the upstream transmitter (source) to take immediate action without resetting the entire physical connection. This article explores how the HPD IRQ pulse functions, its electrical characteristics, and its primary roles in handling link failures, topology changes, and content protection updates.

Electrical Characteristics of the HPD IRQ Pulse

In standard DisplayPort operations, the HPD line stays logically high (typically 3.3V) when a display is connected and powered. When a sink device needs to signal the source, it momentarily pulls the HPD signal low and then releases it back to high.

To distinguish an interrupt from an actual cable disconnection, the DisplayPort standard strictly defines the timing of this pulse:

  • HPD IRQ Pulse Duration: Between 0.5 ms and 1.0 ms.
  • Cable Disconnect Event: Typically recognized when the line stays low for longer than 2.0 ms.

By measuring the duration of the low state, the source recognizes that the cable remains connected and that the sink is requesting an interrupt rather than signaling a physical disconnect.

Core Functions of the HPD IRQ Pulse

The main role of the HPD IRQ pulse is to serve as an attention flag for the source. Because the primary Auxiliary (AUX) channel is controlled by the source as the master, the sink cannot initiate AUX read or write requests on its own. The HPD IRQ pulse bridges this gap by acting as an asynchronous signal telling the source: "Read my status registers immediately."

The primary functions initiated by an HPD IRQ pulse include:

During high-speed video transmission, changes in cable integrity, electromagnetic interference, or clock drift can cause one or more lanes to lose synchronization. When the sink detects a loss of clock recovery, symbol lock, or inter-lane alignment, it generates an HPD IRQ. Upon detection, the source reads the Link/Sink Status registers and re-initiates link training to restore transmission without dropping the video session entirely.

2. Multi-Stream Transport (MST) Topology Changes

In Multi-Stream Transport (daisy-chaining or hub) configurations, the downstream environment can change dynamically. When a user connects or disconnects a secondary monitor to an MST hub, the hub sends an HPD IRQ upstream. The source then queries the DPCD (DisplayPort Configuration Data) to discover new or removed nodes, recalculates available bandwidth, and allocates or frees virtual channels accordingly.

3. HDCP (High-bandwidth Digital Content Protection) Handling

The HPD IRQ pulse plays a crucial role in content protection handshakes. If a repeater or downstream display experiences an HDCP cipher failure, a change in downstream topology, or requires key verification updates, it pulses the HPD line to instruct the source to read HDCP-specific registers and re-authenticate.

4. Dynamic EDID and Display State Updates

If an active adapter or intermediate switch modifies the Extended Display Identification Data (EDID), or if a sink changes its internal operating parameters (such as an audio format change or entering a low-power mode), the HPD IRQ instructs the source to re-read the relevant DPCD addresses or retrieve fresh display capabilities via the AUX channel.

Typical Sequence of Operation

  1. Trigger: The sink detects an event (e.g., loss of lane alignment or an MST device connection).
  2. Pulse Generation: The sink pulls the HPD line low for 0.5 ms to 1.0 ms.
  3. Detection: The source registers the pulse as an interrupt request rather than an unplug event.
  4. AUX Read: The source initiates a transaction over the AUX channel to read the sink's DPCD status registers (specifically 00200h to 00205h for link status, and 00201h for device service IRQ requests).
  5. Mitigation: The source identifies the cause of the interrupt and performs the appropriate corrective action, such as adjusting drive settings, re-training the link, or updating downstream display routing.