mstlink - Man Page

check and debug link status and issues related to them


mstlink [Options]


The mlxlink tool is used to check and debug link status and issues related to them. The tool can be used on different links and cables (passive, active, transceiver and backplane).


-h |--help

: Display help message.

-v |--version

: Display version info.

-d |--device

<device>               : Perform operation for a specified mst device

-p |--port

<port_number>          : Port Number


<port_type>            : Port Type [NETWORK(Default)/PCIE]


<depth>                : depth level of the DUT of some hierarchy (PCIE only)


<pcie_index>           : PCIe index number (Internal domain index) (PCIE only)


<node>                 : the node within each depth (PCIE only)


: Print the output in json format



: Show valid PCIe links (PCIE only)

-m |--show_module

: Show Module Info

-c |--show_counters

: Show Physical Counters and BER Info

-e |--show_eye

: Show Eye Opening Info


: Show FEC Capabilities


: Show Transmitter Info


: General Device Info


: Show BER Monitor Info (not supported for HCA)


: Show External PHY Info


-a |--port_state <port_state>

: Configure Port State [UP(up)/DN(down)/TG(toggle)]

-s |--speeds

<speeds>               : Configure Speeds [speed1,speed2,...]


: Configure Link Mode Force (Disable AN)

-l |--loopback

<loopback>             : Configure Loopback Mode [NO(no loopback)/PH(phy loopback)/EX(external loopback)]

-k |--fec

<fec_override>                 : Configure FEC [AU(Auto)/NF(No-FEC)/FC(FireCode FEC)/RS(RS-FEC)]


<fec_speed>                : Speed to Configure FEC [100G/50G/25G/...] (Default is Active Speed)


<params>               : Configure Transmitter Parameters [polarity,ob_tap0,...]

--serdes_tx_lane <transmitter_lane>

: Transmitter Lane to Set (Optional - Default All Lanes)


: Save Transmitter Configuration for Current Speed Permanently (Optional)


<prbs_mode>            : Physical Test Mode Configuration [EN(enable)/DS(disable)/TU(perform tuning)]


<rx_prbs_mode>             : RX PRBS Mode [PRBS31(Default)/PRBS7/...] (Optional - Default PRBS31)


<tx_prbs_mode>             : TX PRBS Mode [PRBS31(Default)/PRBS7/...] (Optional - Default PRBS31)


<rx_lane_rate>             : RX Lane Rate [EDR(Default)/25G/10G/...]  (Optional - Default 25G)


<tx_lane_rate>             : TX Lane Rate [EDR(Default)/25G/10G/...]  (Optional - Default 25G)

-b |--ber_collect <csv_file>

: Port Extended Information Collection [CSV File]


<limit_criteria>           : BER Limit Criteria [Nominal(Default)/Corner/Drift] (Optional - Default Nominal)


<iteration>                : Iteration Number of BER Collection


: Clear Counters


: Set External PHY (not supported for HCA)

--twisted_pair_force_mode <twisted_pair_force_mode>

: Twisted Pair Force Mode [MA(Master)/SL(Slave)]


get info of <device>, <port_number>


mstlink -d <device> -p <port_number>

get info of <device>, <port_number> and BER Counters:

mstlink -d <device> -p <port_number> -c

get info of <device>, <port_number> and Transmitter Parameters:

mstlink -d <device> -p <port_number> --show_serdes_tx

Configure Port State


mstlink -d <device> -p <port_number> --port_state UP

Configure Port Speeds


mstlink -d <device> -p <port_number> --speeds 25G,50G,100G

Configure FEC


mstlink -d <device> -p <port_number> --fec RS

Configure Port for Physical Test Mode


mstlink -d <device> -p <port_number> --test_mode EN (--rx_prbs PRBS31 --rx_rate 25G --tx_prbs PRBS7 --tx_rate 10G)

Perform PRBS Tuning


mstlink -d <device> -p <port_number> --test_mode TU

Configure Transmitter Parameters (on lane, to database):

mstlink -d <device> -p <port_number> (--serdes_tx_lane <lane number>) (--database) \
 --serdes_tx <polarity>,<ob_tap0>,<ob_tap1>,<ob_tap2>,<ob_bias>,<ob_preemp_mode>

See Also



March 2020 mstflint