ConnectX-6 Dx FW 22.47.3576: MSampleCount can remain at 0 while PCIe Lane Margining is active

Hello.

  • NVIDIA/Mellanox ConnectX-6 Dx
  • Firmware: 22.47.3576
  • Ubuntu 24.04
  • Linux kernel: 6.17
  • mlx5 driver: in-kernel driver
  • PCIe Gen4 x16

Summary

On a ConnectX-6 Dx adapter with firmware 22.47.3576, PCIe Lane Margining at the Receiver can enter a state where MSampleCount remains 0 while margining is actively running.

This is observed with the hardware advertising:

LMR Capability Version     = 1
MIndErrorSampler           = 1
MSampleReportingMethod     = 0  (MSampleCount)
MIndLeftRightTiming        = 1
MVoltageSupported          = 1
MIndUpDownVoltage          = 1

The link is PCIe Gen4 x16 and the tested Receiver is Rx(F).

The initial MSampleCount is 0.

During active margining, repeated Report MSampleCount operations can continue to return:

MSampleCount code = 0

even though the Step Margin Execution Status remains:

Margining in progress

This behavior is observed in both Timing and Voltage margining.

Typical observation

At a valid margining point:

Step Margin Execution Status = 2  (Margining in progress)

Report #1: MSampleCount = 0
Report #2: MSampleCount = 0
Report #3: MSampleCount = 0

The raw MSampleCount response contains a zero Count field:

raw response = 0x000e
C = 0

Therefore no sampled-bit exposure can be established.

The behavior is not limited to only one margining direction. It has been observed in:

  • Timing Left
  • Timing Right
  • Voltage Up
  • Voltage Down

Important additional observation

In some attempts, the error counter changes while MSampleCount still remains 0.

Examples observed during active margining include:

MErrorCount = 8
MSampleCount = 0

and:

MErrorCount = 2
MSampleCount = 0

and:

MErrorCount = 1
MSampleCount = 0

This is important because it shows that the margining/error-sampling logic is active and detecting errors, while the sampled-bit counter is still reported as zero.

In another attempt, MSampleCount did return a non-zero value (C=84), so the counter/reporting mechanism is not permanently unsupported. The problem appears to be intermittent or state-dependent.

Reproduction

  1. Boot Ubuntu 24.04 with Linux kernel 6.17 and the in-kernel mlx5 driver.

  2. Use a ConnectX-6 Dx with firmware 22.47.3576 on a PCIe Gen4 x16 link.

  3. Select an LMR Receiver that reports:

    MIndErrorSampler = 1
    MSampleReportingMethod = 0
    
  4. Start Timing or Voltage margining.

  5. Confirm that the Step Margin Execution Status reports Margining in progress.

  6. Read MSampleCount repeatedly while keeping the same margining point active.

  7. MSampleCount can remain at 0 across multiple reads.

  8. Repeat for other Timing/Voltage directions; the same behavior can occur.

  9. In some attempts MErrorCount increments while MSampleCount still remains 0.

Expected behavior

When:

MIndErrorSampler = 1
MSampleReportingMethod = 0

and a margining step is actively running, MSampleCount should provide usable sampled-bit exposure and should progress as sampling continues.

In particular, a state where the receiver reports active margining and accumulating errors but indefinitely reports zero sampled bits is not useful for BER evaluation.

Actual behavior

The receiver can remain in:

Margining in progress

while repeatedly reporting:

MSampleCount = 0

The behavior prevents establishing the number of sampled bits and therefore prevents a valid BER result.

The fact that MErrorCount can become non-zero at the same time makes the behavior especially suspicious: errors are being observed while sampled-bit exposure remains reported as zero.

Questions

  1. Is MSampleCount=0 during an active independent-error-sampler margining operation a known ConnectX-6 Dx firmware issue?
  2. Is there a known erratum for MSampleReportingMethod=0 on firmware 22.47.3576?
  3. Are there any required initialization, reset, or timing steps before the first Report MSampleCount operation?
  4. Is it expected that MErrorCount can increase while MSampleCount remains zero?

Hi @Tertum ,

Thank you for posting your question on the NVIDIA Community and for providing the detailed observations.

Since this environment uses the Linux inbox mlx5 driver, NVIDIA cannot guarantee its behavior. Please reproduce the issue using the appropriate supported NVIDIA/Mellanox networking driver and confirm that the complete stack including the adapter and PSID, OS, kernel, driver, firmware, cable, and switch is supported.

For reference:

If the behavior persists with a supported NVIDIA driver and validated software stack, additional investigation will require an active support entitlement. Please submit a case through the NVIDIA Enterprise Support Portal.

For support-contract questions, please contact Networking-Contracts@nvidia.com.

Thanks,
NVEX Networking Technical Support Team