HowTo Find Mellanox Adapter Type and Firmware/Driver version (Linux)

Version 9

    This post presents several ways to find the adapter card's Vital Product Data (VPD) such as model, serial number, part number, etc.

     

    1. One way to do it is by running the command lspci:

     

    Output example for Connect-X-3 card:

    # lspci | grep Mellanox

    0a:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3]

     

    # lspci -vv -s 0a:00.0 | grep "Part number" -A 3

                            [PN] Part number: MCX354A-FCBT

                            [EC] Engineering changes: A4

                            [SN] Serial number: MT1324X01705

                            [V0] Vendor specific: PCIe Gen3 x8

     

    Output example for ConnectX-4 card:

    # lspci | grep Mellanox

    05:00.0 Infiniband controller: Mellanox Technologies MT27700 Family [ConnectX-4]

    05:00.1 Infiniband controller: Mellanox Technologies MT27700 Family [ConnectX-4]

     

    # lspci -vv -s 05:00.0 | grep "Part number" -A 3

      [PN] Part number: MCX456A-ECAT        

      [EC] Engineering changes: A6

      [SN] Serial number: MT1530X08465           

      [V0] Vendor specific: PCIeGen3 x16   

     

    # lspci -vv -s 05:00.1 | grep "Part number" -A 3

      [PN] Part number: MCX456A-ECAT        

      [EC] Engineering changes: A6

      [SN] Serial number: MT1530X08465           

      [V0] Vendor specific: PCIeGen3 x16

     

    2. Another way to go about it necessitates having MLNX_OFED or MFT installed:

     

    Output example for Connect-X-3:

    #mst start

    Starting MST (Mellanox Software Tools) driver set

    Loading MST PCI module - Success

    Loading MST PCI configuration module - Success

    Create devices

     

    # lspci | grep Mellanox | awk '{print $1}' | xargs -i -r mstvpd {}

    ID: CX354A - ConnectX-3 QSFP

    PN: MCX354A-FCBT

    EC: A4

    SN: MT1324X01705

    V0: PCIe Gen3 x8

    V1: N/A

    YA: N/A

    #

     

    Output example for ConnectX-4 card:

    # lspci | grep Mellanox | awk '{print $1}' | xargs -i -r mstvpd {}

    ID: CX456A - ConnectX-4 QSFP

    PN: MCX456A-ECAT        

    EC: A6

    SN: MT1530X08465           

    V0: PCIeGen3 x16   

    ID: CX456A - ConnectX-4 QSFP

    PN: MCX456A-ECAT        

    EC: A6

    SN: MT1530X08465           

    V0: PCIeGen3 x16   

     

    3. To find the adapter card's PSID, run:

    # ibv_devinfo | grep board_id

            board_id:                       MT_1090120019

    #

     

    4. In case MLNX_OFED is installed you can run the command: "mlxfwmanager" .

    Note: Make sure that mst is running.

     

    Output example for Connect-X-3:

    # mst start

    ...

    # mlxfwmanager

    Querying Mellanox devices firmware ...

     

    Device #1:

    ----------

     

      Device Type:      ConnectX3

      Part Number:      MCX354A-FCB_A2-A5

      Description:      ConnectX-3 VPI adapter card; dual-port QSFP; FDR IB (56Gb/s) and 40GigE; PCIe3.0 x8 8GT/s; RoHS R6

      PSID:             MT_1090120019

      PCI Device Name:  /dev/mst/mt4099_pci_cr0

      Port1 MAC:        0002c9efe8d1

      Port2 GUID:       0002c90300efe8d2

      Versions:         Current        Availabl

      FW             2.33.5000      2.33.5000

      PXE            3.4.0460       3.4.0460

     

    Here is an example of ConnectX-4:

    # mst start

    ...

     

    # mlxfwmanager

    Querying Mellanox devices firmware ...

     

    Device #1:

    ----------

     

      Device Type:      ConnectX4

      Part Number:      MCX456A-ECA_Ax

      Description:      ConnectX-4 VPI adapter card; EDR IB (100Gb/s) and 100GbE; dual-port QSFP28; PCIe3.0 x16; ROHS R6

      PSID:             MT_2190110032

      PCI Device Name:  /dev/mst/mt4115_pciconf0

      Base MAC:         0000e41d2df2a488

      Versions:         Current        Available    

      FW             12.0100.6440   N/A          

     

    5. Run ibv_devinfo. Here is an example, for two ports one Ethernet and the second InfiniBand.

    # ibv_devinfo

    hca_id: mlx4_0

            transport:                      InfiniBand (0)

            fw_ver:                         2.33.5000

            node_guid:                      0002:c903:00ef:e8d0

            sys_image_guid:                 0002:c903:00ef:e8d3

            vendor_id:                      0x02c9

            vendor_part_id:                 4099

            hw_ver:                         0x1

            board_id:                       MT_1090120019

            phys_port_cnt:                  2

                    port:   1

                            state:                  PORT_ACTIVE (4)

                            max_mtu:                4096 (5)

                            active_mtu:             1024 (3)

                            sm_lid:                 0

                            port_lid:               0

                            port_lmc:               0x00

                            link_layer:             Ethernet

     

                    port:   2

                            state:                  PORT_ACTIVE (4)

                            max_mtu:                4096 (5)

                            active_mtu:             4096 (5)

                            sm_lid:                 4

                            port_lid:               10

                            port_lmc:               0x00

                            link_layer:             InfiniBand

    #