DC transport: RDMA_READ completes IBV_WC_REM_ACCESS_ERR (syndrome 0x13, vendor_err 0x88/0x89) under high concurrent inbound reads to one DCT — vendor

We run a custom RDMA data-transfer service on ConnectX-7 (NDR, 4X 400 Gb/s) using DC (Dynamically Connected) transport with GPUDirect (GPU-memory MRs registered via dma-buf). We’re hitting a transient IBV_WC_REM_ACCESS_ERR on RDMA_READ that we cannot fully decode, and would like the vendor-syndrome meaning.

Environment

  • HCA: ConnectX-7, 4X NDR (400 Gb/s), InfiniBand
  • Firmware: [FILL IN — cat /sys/class/infiniband/mlx5_X/fw_ver]
  • MLNX_OFED / rdma-core: [FILL IN — ofed_info -s]
  • Kernel / OS: [FILL IN — uname -r]
  • GPU memory registered via dma-buf (ibv_reg_dmabuf_mr), access flags LOCAL_WRITE | REMOTE_WRITE | REMOTE_READ | RELAXED_ORDERING

Topology / QP setup

  • A small number of DCT responders, each backed by an MR over GPU HBM (dma-buf). DCT created via mlx5dv_create_qp (IBV_QPT_DRIVER, dc_type = MLX5DV_DCTYPE_DCT, access key set), SRQ max_wr=1, RTR with path_mtu=4096, min_rnr_timer=12, qp_access_flags = LOCAL_WRITE|REMOTE_WRITE|REMOTE_READ. Note: we do not set IBV_QP_MAX_DEST_RD_ATOMIC on the DCT because ibv_modify_qp rejects it with EINVAL for a DCT — so the DCT’s responder resources run at the device default.
  • Many DCI initiators (across ~18 hosts, ~16 DCIs per rail, max_rd_atomic=1, one outstanding read per DCI, synchronous acquire→post→poll) concurrently issue RDMA_READ pulling from those GPU-memory DCTs.

Symptom

  • On the initiator (DCI) side, a fraction of RDMA_READ WRs complete in error: wc_status = 10 (IBV_WC_REM_ACCESS_ERR), syndrome = 0x13, vendor_err = 0x88 (in one reproduction, 82 of 83 failures were 0x88 and 1 was 0x89).
  • In one run: 83 of ~25,600 reads failed in a single synchronized burst (same millisecond) across ~16 different initiator hosts, then traffic continued normally.

Key observations

  • Transient, not a protection/rkey fault. The same DCT and the same GPU-memory MR serve thousands of successful RDMA_READs immediately before and after the burst. Failures correlate with peaks in aggregate concurrent inbound reads to a DCT, not with any particular key/MR/offset.
  • Independent of PCIe relaxed-ordering (fails identically with RO on and off) and independent of driver/firmware version across our bumps.
  • No corresponding kernel/dmesg CQE dump (these are userspace mlx5dv QPs), so vendor_err from ibv_poll_cq is our only signal.

Questions

  1. For a DCT responder, what do vendor_err 0x88 and 0x89 indicate under syndrome 0x13 (REMOTE_ACCESS_ERR) on an inbound RDMA_READ? Are they responder-resource / DC-connection-context exhaustion conditions rather than an actual access-permission violation?
  2. Are 0x88 and 0x89 two sub-variants of the same hardware condition (they appeared together in one burst)?
  3. Given IBV_QP_MAX_DEST_RD_ATOMIC is rejected on a DCT, how do we raise a DCT’s responder resources / inbound-read capacity (via mlx5dv, DevX, or a firmware/mlxconfig parameter)? What governs the number of concurrent inbound RDMA_READs a single DCT can service before it NAKs with this syndrome?
  4. Is there a recommended way to bound or pace concurrent DCI→one-DCT reads to stay under that ceiling, other than application-level throttling?

Any pointer to the ConnectX-7 PRM section that decodes these vendor syndromes would be greatly appreciated.

Following up with the isolation results promised earlier — plus a few findings since that reshape the picture.

Host-memory isolation: clean, everywhere. We reran the exact storm shape (R ranks × own DCT/HCA × 16 concurrent 32×8MiB batches) with the responder MR switched to host RAM (ibv_reg_mr). ~1.9 TB read across many runs, including 8 DCTs × 16 inflight sustained twice in a row: zero wc=10/11, ever. One caveat for fairness: the host path tops out ~22–26 GiB/s per DCT vs ~46 GiB/s where the GPU responders NAK, so we couldn’t reach the exact per-DCT rate regime with host MRs — but at matched rates where GPU is also clean, host is clean too. Everything points at the dma-buf/GPUDirect responder path.

Environment matrix. It reproduces on two independent clusters that share B200 + ConnectX-7 (NDR) + x86 + 4K pages + dma-buf responders — different drivers/kernels (575/6.8 and 590/6.14), different fabrics. Meanwhile GB300 + CX-8 + aarch64 (64K pages, driver 580 open) is immune, even at higher aggregate (~198 GiB/s across 8 responder GPUs) than where x86 storms. Notably max_qp_rd_atom=16 on both NICs, so the constant isn’t the differentiator. Candidates from where we sit: NIC→GPU reads on Grace-Blackwell traverse coherent C2C instead of PCIe P2P; 64K pages = 16× fewer dma-buf translation entries; or CX-8 responder read machinery.

The trigger is node-aggregate, not per-DCT arrival. The strongest new finding: the same MR, same per-DCT load, is clean when the client node is otherwise idle and storms when the node’s other GPUs are busy (neighbor training jobs — or simply running 8 of our own responder ranks, which fires deterministically on an idle node). Arrival-side knobs do nothing: reducing initiator DCIs 16→4, lowering per-DCT inflight, adding backoff retries at 0.5/4/20/50 ms bases with and without ±50% jitter — terminal failure counts are statistically flat across all of it. Once storming, the NAK condition persists ≥1s under sustained pressure. So this behaves like a service-time problem (something inflates the NIC’s GPU-read dwell node-wide) rather than clean read-resource overflow from arrival pressure.

Two smaller data points: the failing GPU↔NIC pairs are PIX (single bridge, not root-complex P2P), so the classic RC-traversal penalty doesn’t apply; and responder-side observability is empty during storms — resp_remote_access_errors stays 0, no dmesg, no responder CQE — only the initiator’s req_remote_access_errors counts. Also, nvidia_peermem won’t load on the 575 boxes (modprobe EINVAL, silent dmesg), so we haven’t been able to A/B peermem vs dma-buf registration yet.

Questions where we’re at the limit of what we can see:

  1. What do vendor_err=0x88 (with syndrome 0x13/REM_ACCESS on the READ) and 0x89 (0x14/REM_OP) actually encode? Specifically: responder read-resource exhaustion, a dma-buf translation stall, or an internal PCIe read-completion timeout? Our data now leans away from simple resource overflow.
  2. If it is inbound-read resource exhaustion on the DCT — why does it surface as REM_ACCESS rather than Invalid Request, and is there any counter/diag exposing per-DCT read-context occupancy?
  3. What should we capture for you during a storm? We can reproduce on demand. No mft on these hosts currently, but we can get it installed if an mstdump/mlxlink capture mid-storm is the useful artifact. Is MAX_ACC_OUT_READ relevant here, and what’s its default on CX-7 fw 28.44.1036?
  4. Any known CX-7 vs CX-8 difference in servicing inbound reads from dma-buf-registered GPU memory that would explain the immunity above?

The IBV_WC_REM_ACCESS_ERR with syndrome 0x13 and vendor_err 0x88/0x89 indicates the DCT responder is rejecting RDMA READs due to a memory protection violation. Under high concurrency, the most common causes are:

  1. R_Key invalidation race — ensure MRs are not deregistered while RDMA READs referencing them are still in flight. Use proper synchronization or keep MRs alive until all outstanding WRs complete.
  2. MR permissions — confirm the MR on the responder is registered with IBV_ACCESS_REMOTE_READ (and IBV_ACCESS_LOCAL_WRITE if needed).
  3. DCT SRQ/PD alignment — verify the DCT’s PD matches the PD used for the MR. A PD mismatch will always produce this error.
  4. Firmware/driver version — if the above are correct, collect mlxdump / ibdump traces and check for known errata in your MLNX_OFED version related to DCT under high fan-in load.