smadaminov / ovs-dpdk-meson-issues

VMware Summer 2021
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Azure: Linux Ubuntu: mlx5_net: Failed to allocate Tx DevX UAR (BF/NC) #81

Open williamtu opened 3 years ago

williamtu commented 3 years ago
root@dpdk-ubuntu:~# ./dpdk/build/app/dpdk-testpmd -l 0-1 -n 1 -a 3898:00:02.0 --vdev="net_vdev_netvsc0,iface=eth1" -- -i --nb-cores=1 --port-topology=chained --forward-mode=txonly --eth-peer=1,00:22:48:26:66:74

got error

testpmd> EAL: Probe PCI driver: mlx5_pci (15b3:1016) device: 3898:00:02.0 (socket 0)
mlx5_net: Failed to allocate Tx DevX UAR (BF/NC)
mlx5_net: probe of PCI device 3898:00:02.0 aborted after encountering an error: Cannot allocate memory
mlx5_common: Failed to load driver mlx5_eth
EAL: Driver cannot attach the device (3898:00:02.0)
EAL: Failed to attach device on primary process
net_failsafe: sub_device 0 probe failed (Cannot allocate memory)
williamtu commented 12 months ago

Working example

=== dpdk-testpmd Result (sender sends OK) ===
root@dpdk-ubuntu:~/dpdk# dpdk-testpmd -l 0-1 -n 1 --vdev="net_vdev_netvsc1,iface=eth1" -- -i --nb-cores=1 --port-topology=chained --forward-mode=txonly --eth-peer=1,00:22:48:26:66:74 --stats-period 1
EAL: Detected 2 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device b3de:00:02.0 on NUMA socket 0
EAL:   probe driver: 15b3:1016 net_mlx5
net_vdev_netvsc: probably using routed NetVSC interface "eth1" (index 3)
Interactive-mode selected
Set txonly packet forwarding mode
Warning: NUMA should be configured manually by using --port-numa-config and --ring-numa-config parameters along with --numa.
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=155456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Configuring Port 1 (socket 0)
Port 1: 00:22:48:26:68:34
Checking link statuses...
Done
testpmd> start
txonly packet forwarding - ports=1 - cores=1 - streams=1 - NUMA support enabled, MP allocation mode: native
Logical Core 1 (socket 0) forwards packets on 1 streams:
  RX P=1/Q=0 (socket 0) -> TX P=1/Q=0 (socket 0) peer=00:22:48:26:66:74

  txonly packet forwarding packets/burst=32
  packet len=64 - nb packet segments=1
  nb forwarding cores=1 - nb forwarding ports=1
  port 1: RX queue number: 1 Tx queue number: 1
    Rx offloads=0x0 Tx offloads=0x0
    RX queue: 0
      RX desc=0 - RX free threshold=0
      RX threshold registers: pthresh=0 hthresh=0  wthresh=0
      RX Offloads=0x0
    TX queue: 0
      TX desc=0 - TX free threshold=0
      TX threshold registers: pthresh=0 hthresh=0  wthresh=0
      TX offloads=0x0 - TX RS bit threshold=0
testpmd> stop
Telling cores to stop...
Waiting for lcores to finish...

  ---------------------- Forward statistics for port 1  ----------------------
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 20666016       TX-dropped: 534556928     TX-total: 555222944
  ----------------------------------------------------------------------------

  +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 20666016       TX-dropped: 534556928     TX-total: 555222944
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++