usnistgov / ndn-dpdk

NDN-DPDK: High-Speed Named Data Networking Forwarder
https://www.nist.gov/publications/ndn-dpdk-ndn-forwarding-100-gbps-commodity-hardware
Other
131 stars 26 forks source link

22 Invalid argument | PCI_BUS: Expecting 'PA' IOVA mode but current mode is 'VA' #89

Open Grey-Cyan opened 1 month ago

Grey-Cyan commented 1 month ago
{"level":"error","ts":1729861829.3359838,"logger":"eal","msg":"rte_dev_probe error","addr":"0000:03:00.0","args":"","error":"22 Invalid argument"}
{"level":"error","ts":1729861829.3360457,"logger":"DPDK","msg":"PCI_BUS:   Expecting 'PA' IOVA mode but current mode is 'VA', not initializing"}
{"level":"error","ts":1729861829.3360944,"logger":"DPDK","msg":"EAL: Driver cannot attach the device (0000:03:00.0)"}
{"level":"error","ts":1729861829.3361518,"logger":"DPDK","msg":"EAL: Failed to attach device on primary process"}

rey@grey-virtual-machine:~$ cd /usr/local/bin
grey@grey-virtual-machine:/usr/local/bin$ sudo ip link set ens160 down
[sudo] password for grey: 
grey@grey-virtual-machine:/usr/local/bin$ sudo ./dpdk-devbind.py --unbind 0000:03:00.0
grey@grey-virtual-machine:/usr/local/bin$ sudo ./dpdk-devbind.py -b igb_uio 0000:03:00.0
grey@grey-virtual-machine:/usr/local/bin$ sudo ./dpdk-devbind.py --status

Network devices using DPDK-compatible driver
============================================
0000:03:00.0 'VMXNET3 Ethernet Controller 07b0' drv=igb_uio unused=vmxnet3

Network devices using kernel driver
===================================
0000:02:01.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' if=ens33 drv=e1000 unused=igb_uio *Active*

No 'Baseband' devices detected
==============================

No 'Crypto' devices detected
============================

No 'DMA' devices detected
=========================

No 'Eventdev' devices detected
==============================

No 'Mempool' devices detected
=============================

No 'Compress' devices detected
==============================

No 'Misc (rawdev)' devices detected
===================================

No 'Regex' devices detected
===========================

No 'ML' devices detected
========================
grey@grey-virtual-machine:/usr/local/bin$ cd /usr/local/share/ndn-dpdk
grey@grey-virtual-machine:/usr/local/share/ndn-dpdk$ cat forwarder.json | ndndpdk-ctrl activate-forwarder
true
grey@grey-virtual-machine:/usr/local/share/ndn-dpdk$ ndndpdk-ctrl create-eth-port --pci 03:00.0 --mtu 1500 ens160 MAC: A:00:0c:29:c4:00:4c  B:00:0c:29:14:0d:7a
2024/10/25 21:10:29 graphql: 22 Invalid argument

To create a port for the PCI-bound Ethernet adapter: ndndpdk-ctrl create-eth-port --pci 03:00.0 --mtu 1500 ens160 MAC: A:00:0c:29:c4:00:4c B:00:0c:29:14:0d:7a Errors are always reported, may I ask why。

yoursunny commented 1 month ago

Please resend any and all error messages as text, not as pictures.

yoursunny commented 1 month ago

{"level":"error","ts":1729861829.3360457,"logger":"DPDK","msg":"PCI_BUS: Expecting 'PA' IOVA mode but current mode is 'VA', not initializing"}

The PCI device you are trying to use expects 'PA' IOVA mode. You need to pass .iovaMode="PA" in your forwarder/trafficgen activation parameters.