Different number of Mellanox PCIe Bridges detected on AMD Host vs. HGX Module for ConnectX-8 (CX8)

Hi everyone,

I am currently investigating the hardware topology behavior of the Mellanox ConnectX-8 (CX8) SuperNIC across different platform deployments. I noticed an interesting discrepancy in the number of enumerated PCIe bridge devices and would like to understand the root cause behind this behavior.

Environment 1: Standard PCIe Slot on an AMD System

  • CPU/Host: AMD Platform
  • Topology Behavior: When CX8 is installed in a standard PCIe slot (e.g., slot1/slot2), the host system enumerates 8 Mellanox PCIe bridge devices in total (ranging across BDFs from 21:00.0 to 25:0c.0).

Environment 2: HGX Accelerated Module

  • CPU/Host: Intel Platform with HGX Board
  • Topology Behavior: When the same CX8 is integrated into the HGX module architecture, the system only enumerates 5 Mellanox PCIe bridge devices per single CX8 card (for instance, a contiguous block from 6e:00.0 to 72:00.0).

My Questions:

  1. Why does the number of detected PCIe bridge devices differ so significantly (8 vs. 5) between a standard AMD host slot and the HGX environment?
  2. Is this behavior driven by automatic platform detection inside the CX8 firmware/ASIC (e.g., dynamic topology adjustment for Socket-Direct / GPUDirect RDMA optimization), or is it due to hardware-level bifurcation/pruning on the HGX baseboard?
  3. In the HGX environment, are the “missing” 3 bridge devices logically hidden/merged, or are certain physical downstream ports of the internal CX8 switch disabled by design?

Any insights regarding the internal PCIe switch topology of the ConnectX-8 under these two configurations would be greatly appreciated! Thanks in advance.


Hi,

CX8 SuperNIC contains PCIe switch in it.

And CX8 has 2 models supports Socket-Direct/Multi-Host and Down Stream Port (DSP).

You can see the document below:

Introduction | NVIDIA ConnectX-8 SuperNIC User Manual

Only from the screen captures of AMD platform and HGX modules you provided, it’s hard to see the device configurations. You can have a look at the 2 documents below which contains the specific mlxconfig command options like — NUM_OF_PF.

PCIe Bifurcation Configuration Options | NVIDIA ConnectX-8 SuperNIC User Manual

Port Configurations | NVIDIA ConnectX-8 SuperNIC User Manual

About your questions:

  1. >>> Why does the number of detected PCIe bridge devices differ so significantly (8 vs. 5) between a standard AMD host slot and the HGX environment?
    On the HGX/module system, use lspci -tv and rdma_topo topo to verify which of these five bridges are connected to GPUs, NIC PFs, Data Direct PFs, or downstream devices.
    On the AMD platform, you can check the mlxconfig to see NUM_OF_PF about how many PF ports configured.
  2. >>> Is this behavior driven by automatic platform detection inside the CX8 firmware/ASIC (e.g., dynamic topology adjustment for Socket-Direct / GPUDirect RDMA optimization), or is it due to hardware-level bifurcation/pruning on the HGX baseboard?
    We need to check the bifurcation configuration options, hardware-level configured and UEFI/BIOS config.
  3. >>> In the HGX environment, are the “missing” 3 bridge devices logically hidden/merged, or are certain physical downstream ports of the internal CX8 switch disabled by design?
    It depends on the CX8 PN and HW platform. In HGX env, that 3 bridge devices not missing but logically hidden.

Hi Longranw,

Thank you for your insights and the detailed response. Based on my current findings and testing, I would like to share a few observations and follow-up points regarding the CX8 PCIe topology:

  1. No Direct Correlation to Functionality: Thank you for pointing out the logical hiding aspect. However, from the raw data available on hand, there is currently no direct or explicit evidence proving how these enumerated PCIe bridges directly map to specific hardware functions or features.
  2. Lack of Documentation on Bridge Requirements: I have reviewed the official user manuals and bifurcation guides, but there is a noticeable lack of documentation specifying the exact number of PCIe bridges utilized/required under different operational modes—such as Socket-Direct, Multi-Host, or Downstream Port (DSP) configurations. Without these specific architectural details, it remains difficult to verify the intended baseline topology.
  3. GPU-Side Verification Discrepancy: To trace the relationship between the NIC and the accelerated platform, I used nvidia-smi to dump full GPU topology and device information. Interestingly, the output does not contain or reference any information related to these 5 detected Mellanox PCIe bridges on the HGX baseboard.

Thanks again for your help!