Mlx5_net: Failed to allocate Tx DevX UAR (BF/NC)

Hey Team,

We are getting mlx_net error with DPDK in Ubuntu VM ? We could not find any information on this issue online. Is this a known issue ? Are there any workaround that we can use ?

ubuntu:~/project/dpdk/dpdk-21.08/build/examples$ sudo ./dpdk-helloworld -l 0-1 -n 2 -m 1
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode ‘PA’
EAL: No available 1048576 kB hugepages reported
EAL: VFIO support initialized
EAL: Probe PCI driver: mlx5_pci (15b3:1016) device: 3840:00:02.0 (socket 0)
mlx5_net: Failed to allocate Tx DevX UAR (BF/NC)
mlx5_net: probe of PCI device 3840:00:02.0 aborted after encountering an error: Cannot allocate memory
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 3840:00:02.0 cannot be used
EAL: Probe PCI driver: mlx5_pci (15b3:1016) device: 3c08:00:02.0 (socket 0)
mlx5_net: Failed to allocate Tx DevX UAR (BF/NC)
mlx5_net: probe of PCI device 3c08:00:02.0 aborted after encountering an error: Cannot allocate memory
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 3c08:00:02.0 cannot be used
EAL: Probe PCI driver: mlx5_pci (15b3:1016) device: 477d:00:02.0 (socket 0)
mlx5_net: Failed to allocate Tx DevX UAR (BF/NC)
mlx5_net: probe of PCI device 477d:00:02.0 aborted after encountering an error: Cannot allocate memory
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 477d:00:02.0 cannot be used
EAL: Bus (pci) probe failed.
TELEMETRY: No legacy callbacks, legacy socket not created
hello from core 1
hello from core 0

usdn-admin@ubuntu:~/project/dpdk/dpdk-21.08/build/examples$ lspci
3840:00:02.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx Virtual Function] (rev 80)
3c08:00:02.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx Virtual Function] (rev 80)
477d:00:02.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx Virtual Function] (rev 80)

Best Regards
Manish Tiwari

Hey Team,

I am new to DPDK, please help me understand if I am missing something.

Best Regards
Manish Tiwari

I’m having a similar issue,
have you already fixed this issue ?