Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Grey-Cyan opened this issue Oct 25, 2024 · 2 comments

Comments

@Grey-Cyan
Copy link

Grey-Cyan commented Oct 25, 2024

{"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
Copy link
Member

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

@usnistgov usnistgov deleted a comment from Grey-Cyan Oct 25, 2024
@yoursunny
Copy link
Member

{"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.

@yoursunny yoursunny changed the title Kneel down and ask the great god for an answer:graphql: 22 Invalid argument 22 Invalid argument | PCI_BUS: Expecting 'PA' IOVA mode but current mode is 'VA' Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants