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
-
Boot Ubuntu 24.04 with Linux kernel 6.17 and the in-kernel mlx5 driver.
-
Use a ConnectX-6 Dx with firmware 22.47.3576 on a PCIe Gen4 x16 link.
-
Select an LMR Receiver that reports:
MIndErrorSampler = 1 MSampleReportingMethod = 0 -
Start Timing or Voltage margining.
-
Confirm that the Step Margin Execution Status reports
Margining in progress. -
Read MSampleCount repeatedly while keeping the same margining point active.
-
MSampleCount can remain at 0 across multiple reads.
-
Repeat for other Timing/Voltage directions; the same behavior can occur.
-
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
- Is
MSampleCount=0during an active independent-error-sampler margining operation a known ConnectX-6 Dx firmware issue? - Is there a known erratum for
MSampleReportingMethod=0on firmware 22.47.3576? - Are there any required initialization, reset, or timing steps before the first
Report MSampleCountoperation? - Is it expected that MErrorCount can increase while MSampleCount remains zero?