System: RHEL 7.5 x86_64 with Mellanox driver
Earlier we had 4.0.2 version driver which worked fine with dpdk 17.11.4. Now when we upgraded Mellanox driver version to 4.4.2 (used mlnx-en-4.4-2.0.7.0-rhel7.5-x86_64.iso), it doesn’t give expected results.
I can see new version of modules get loaded correctly through lsmod command.
mlx_fe-fe-0$ lsmod | grep mlx4_en
mlx4_en 142833 0
ptp 19231 2 mlx4_en,mlx5_core
mlx4_core 352500 1 mlx4_en
mlx_compat 28081 4 mlx4_en,mlx4_ib,mlx4_core,mlx5_core
devlink 42368 3 mlx4_en,mlx4_core,mlx5_core
mlx_fe-fe-0$ lsmod | grep mlx4_core
mlx4_core 352500 1 mlx4_en
mlx_compat 28081 4 mlx4_en,mlx4_ib,mlx4_core,mlx5_core
devlink 42368 3 mlx4_en,mlx4_core,mlx5_core
However with this driver version OFED function ibv_get_device_list doesn’t give correct list of devices.
This function is supposed to return an array of RDMA devices currently available. However it doesn’t give desired output. We have below four devices on our system but this function doesn’t return anything after upgrading the Mellanox drivers to version to mlnx-en-4.4-2.0.7.0-rhel7.5-x86_64
$ lspci | grep Mell
00:06.0 Ethernet controller: Mellanox Technologies MT27500/MT27520 Family [ConnectX-3/ConnectX-3 Pro Virtual Function]
00:07.0 Ethernet controller: Mellanox Technologies MT27500/MT27520 Family [ConnectX-3/ConnectX-3 Pro Virtual Function]
00:08.0 Ethernet controller: Mellanox Technologies MT27500/MT27520 Family [ConnectX-3/ConnectX-3 Pro Virtual Function]
00:09.0 Ethernet controller: Mellanox Technologies MT27500/MT27520 Family [ConnectX-3/ConnectX-3 Pro Virtual Function]
I have few questions with this regard
- Only installing driver iso image mlnx-en-4.4-2.0.7.0-rhel7.5-x86_64.iso is sufficient for upgrading the driver or we need to install few other packages also?
- What could be the reason of ibv_get_device_list function not returning the correct list of devices - as the code is not available on our system I cannot debug it.
- Are there some tools/tricks available to test if driver installation is successful and the devices are loaded with those drivers?
TIA
Kiran