• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Blogs
  2. Verification
  3. Demystifying Downstream Port Containment (DPC) in PCIe
Sijie Zhou
Sijie Zhou

Community Member

Blog Activity
Options
  • Subscribe by email
  • More
  • Cancel
CXL
Verification IP
PCIe Gen4
VIP

Demystifying Downstream Port Containment (DPC) in PCIe

30 Nov 2026 • 6 minute read

As PCI Express systems scale to more devices, faster links, and deeper switch hierarchies, a fault in one component can spread to the rest of the platform. A single endpoint that returns corrupted data or hits a fatal error can put corrupted data on a shared memory path or crash the host before software can respond. Downstream Port Containment (DPC) is the PCIe mechanism that limits the damage to the part of the hierarchy where the error happened. In this post, we walk through how DPC works, look at what the specification requires at each layer, and show how the Cadence PCIe VIP helps you verify a DPC implementation from trigger to recovery.

DPC is an optional error containment feature for downstream ports, which are root ports and switch downstream ports. When a downstream port detects an unmasked uncorrectable error at or below itself, DPC stops all PCI Express traffic below that port right away. This keeps the fault from spreading further into the system. The port then disables its link and notifies software, and it stays in containment until software decides to recover.

Cadence helps you verify DPC with:

  • Functionality modeling: the DPC extended capability, including Root Port Programmed I/O (RP PIO) support.
  • All trigger sources: Uncorrectable errors, ERR_FATAL and ERR_NONFATAL messages, the software trigger, and RP PIO errors.
  • Containment and recovery: Holding the link in disabled, discarding received TLPs, returning UR/CA completions, and bringing the link back up after release.

With the Cadence PCIe VIP, you can trigger each DPC scenario on demand and check it against PCIe 7.0 spec sections 2.9.3 and 6.2.11.

An Example of DPC in Action

Take a simple topology: a root port connects to a PCIe Switch, and an endpoint sits behind one of the switch downstream ports. System software enables DPC on that switch downstream port by setting DPC trigger enable to 01b.

The endpoint detects a fatal error and sends an ERR_FATAL message upstream. When the switch downstream port receives the message, the following happens:

  1. The port logs the requester ID from the ERR_FATAL message in the DPC error source ID register.
  2. The port sets DPC trigger reason to 10b ("ERR_FATAL received"), then sets DPC trigger status. The port is now in DPC.
  3. The port signals the containment event to software. It sends an ERR_COR message, if DPC ERR_COR signaling is enabled, and then raises a DPC interrupt through MSI or MSI-X.
  4. The port directs its LTSSM to the disabled state, so the link goes down. TLPs headed toward the endpoint are not forwarded. Non-posted requests are completed by the port itself, so their requesters don't hit completion timeouts.
  5. Software runs its recovery flow, such as resetting the endpoint or reloading the driver, and then clearing DPC trigger status. The port releases the link, the LTSSM leaves disabled, and the link retrains.

The rest of the system never sees the corrupted traffic, and the faulty device is isolated until software brings it back.

Key Concepts Explanation

  • DPC trigger enable: Sets which errors cause DPC. With 01b, DPC is triggered by an unmasked uncorrectable error or by a received ERR_FATAL message. With 10b, a received ERR_NONFATAL Message also triggers DPC. 00b disables DPC.
  • DPC trigger status and DPC trigger reason: DPC trigger status is set when the port enters containment and stays set until software clears it.
  • DPC error source ID: The requester ID of the component that sent the ERR_NONFATAL or ERR_FATAL.
  • DPC completion control: Selects the completion status the port returns for non-posted requests while it is in DPC.
  • Software triggering: If supported, software can force a DPC event, which is useful for testing recovery flows and for planned containment.
  • RP extensions for DPC: These optional root port extensions add root port programmed I/O (RP PIO) error controls and completion synthesis for outstanding requests.

Signaling a DPC Event

A port in DPC must notify system software through one of these mechanisms:

  • DPC interrupt (Section 6.2.11.1): An MSI or MSI-X interrupt, using the vector in the DPC interrupt message number field.
  • DPC ERR_COR signaling (Section 6.2.11.2): If DPC ERR_COR enable is set, and ERR_COR reporting is enabled, the port signals ERR_COR when DPC trigger status becomes set. The ERR_COR must come before any MSI or MSI-X for the same event.
    • A switch downstream port sends the ERR_COR upstream with its own requester ID.
    • A root port handles the ERR_COR internally, as if the root complex had received it from itself.
  • DL_Active ERR_COR signaling (Section 6.2.11.5): If DL_Active ERR_COR enable is set, the port signals ERR_COR each time the link enters DL_Active. This tells software when a contained link has come back.

Transaction Layer Rules During Containment

Section 2.9.3 defines how the transaction layer must behave while DPC is active:

  • If the triggering condition was associated with a received upstream TLP, upstream TLPs that were already in flight are silently discarded instead of being forwarded into the system.
  • If the triggering condition was associated with a downstream TLP, earlier downstream TLPs can be either transmitted or silently dropped before the link goes down.
  • For each non-posted request or UIO request sent to the port while DPC is active, the port returns a completion with UR or CA status, as selected by DPC completion control, and silently discards the request. The completer ID is the port's own ID.
  • In a switch, a downstream port in DPC stops taking part in the PME_Turn_Off and PME_TO_Ack handshake, so the switch upstream port doesn't wait for an acknowledgment from a disabled link.

Root Port Extensions and RP PIO Error Controls

Root ports that support RP extensions for DPC give finer control over errors from Root Port Programmed I/O (RP PIO) requests. These are the configuration, I/O, and memory requests the root port sends on behalf of the processor.

  • Completion synthesis: When DPC is triggered, the root port completes every outstanding tracked non-posted request and UIO request itself. This keeps DPC from causing completion timeouts at their requesters.
  • RP PIO error controls (Section 6.2.11.3): Configuration, I/O, and memory each have their own bits for three error types: UR completion (UR Cpl), CA completion (CA Cpl), and completion timeout errors (CTO). Information about the erroneous TLPs is recorded.

For each address space and error type, software can choose whether a failed processor access is logged only, reported as advisory, or contained with DPC.

Poisoned TLP Egress Blocking

A downstream port that sets poisoned TLP egress blocking supported can be told, through poisoned TLP egress blocking enable, to stop poisoned TLPs from leaving the port. This keeps known-bad data from reaching downstream devices.

Simplifying DPC Verification with VIP

DPC involves coordinated behavior across register states, error signaling, LTSSM control, TLP handling, and root port extensions. Verifying all combinations with directed tests can be time-consuming, and corner cases at the interaction boundaries are easy to miss.

The Cadence PCIe VIP models complete DPC flow, enabling users to configure DPC capabilities, inject error conditions, and verify that the DUT detects and contains errors as expected.

Key VIP Capabilities

  • Configurable DPC capability: Enables the DPC extended capability on a root port or switch downstream port through SOMA. Features such as RP extensions, software triggering, poisoned TLP egress blocking, and RP PIO log size can be configured independently.
  • Comprehensive trigger coverage: Supports DPC triggering for unmasked uncorrectable errors and received ERR_FATAL or ERR_NONFATAL Messages based on DPC trigger enable, as well as software-triggered and RP PIO errors. Trigger reason, trigger reason extension, and error source ID registers are updated accordingly.
  • RP extensions and RP PIO: Supports synthesized completions for outstanding requests, with DPC RP extensions tracking control determining which request types are tracked, including non-UIO memory, UIO memory, I/O, and configuration requests. RP PIO status, mask, severity, header/TLP prefix logging, and first error pointer handling are also supported.
  • Poisoned TLP egress checking: Detects and reports a POISON_TLP_BLOCKED error when a downstream port transmits a poisoned TLP while poisoned TLP egress blocking is enabled.

Together, these capabilities enable realistic DPC error scenarios while reducing test-development and debug effort, helping ensure that errors are detected, handled, and contained as required.

More Information

  • For more information about how Cadence PCIe/CXL Verification IP and TripleCheck enable users to confidently verify disruptive changes, see Simulation VIP for PCIe, Simulation VIP for CXL, and TripleCheck for PCIe and CXL.
  • For more information on PCI Express in general, visit the PCI-SIG website.
  • Reach out for more information and technical assistance at talk_to_vip_expert@cadence.com.

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information