Hi,

Which version of qemu do you use ?
I had this kind of issue when using an old version of qemu: upgrading qemu to 
2.10 resolved my issue.

In qemu 2.5 (the default version with Ubuntu 16.04 in my case), the IO region 
is not mapped, which ends to this kind of error (the ressource0 is the IO 
region in the PCI bar).

Christophe

From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of via 
Lists.Fd.Io
Sent: Friday, February 16, 2018 3:46 PM
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: [vpp-dev] Unable to add interface to VPP on ARM64.

Hi,

Pls check not able to add interface to VPP on ARM64 VM


csit@dut1:~$ lshw -class network -businfo
WARNING: you should run this program as super-user.
Bus info          Device      Class      Description
====================================================
pci@0000:02:01.0<mailto:pci@0000:02:01.0>              network    Virtio 
network device
pci@0000:03:01.0<mailto:pci@0000:03:01.0>              network    Virtio 
network device
pci@0000:04:01.0<mailto:pci@0000:04:01.0>              network    Virtio 
network device
pci@0000:05:01.0<mailto:pci@0000:05:01.0>              network    Virtio 
network device
                  eth0        network    Ethernet interface
WARNING: output may be incomplete or inaccurate, you should run this program as 
super-user.
csit@dut1:~$

 cd vpp/build-root/build-vpp-native/dpdk/dpdk-17.11/usertools/
csit@dut1:~/vpp/build-root/build-vpp-native/dpdk/dpdk-17.11/usertools$<mailto:csit@dut1:~/vpp/build-root/build-vpp-native/dpdk/dpdk-17.11/usertools$>
 sudo ./dpdk-devbind.py --status

Network devices using DPDK-compatible driver
============================================
0000:02:01.0 'Virtio network device 1000' drv=uio_pci_generic unused=
0000:03:01.0 'Virtio network device 1000' drv=uio_pci_generic unused=
0000:04:01.0 'Virtio network device 1000' drv=uio_pci_generic unused=
0000:05:01.0 'Virtio network device 1000' drv=uio_pci_generic unused=

Network devices using kernel driver
===================================
<none>

Other Network devices
=====================
<none>

Crypto devices using DPDK-compatible driver
===========================================
<none>

Crypto devices using kernel driver
==================================
<none>

Other Crypto devices
====================
<none>

Eventdev devices using DPDK-compatible driver
=============================================
<none>

Eventdev devices using kernel driver
====================================
<none>

Other Eventdev devices
======================
<none>

Mempool devices using DPDK-compatible driver
============================================
<none>

Mempool devices using kernel driver
===================================
<none>

Other Mempool devices
=====================
<none>
csit@dut1:~/vpp/build-root/build-vpp-nativ
● vpp.service - vector packet processing engine
   Loaded: loaded (/lib/systemd/system/vpp.service; enabled; vendor preset: 
enabled)
   Active: active (running) since Fri 2018-02-16 17:47:17 CST; 4h 45min ago
  Process: 19822 ExecStartPre=/sbin/modprobe uio_pci_generic (code=exited, 
status=0/SUCCESS)
  Process: 19818 ExecStartPre=/bin/rm -f /dev/shm/db /dev/shm/global_vm 
/dev/shm/vpe-api (code=exited, status=0/SUCCESS)
 Main PID: 19827 (vpp_main)
    Tasks: 4
   Memory: 73.1M
      CPU: 59.726s
   CGroup: /system.slice/vpp.service
           └─19827 /usr/bin/vpp -c /etc/vpp/startup.conf

Feb 16 17:47:17 dut1 vnet[19827]: EAL: Cannot open 
/sys/bus/pci/devices/0000:04:01.0/resource0: No such file or directory
Feb 16 17:47:17 dut1 vnet[19827]: EAL: Requested device 0000:04:01.0 cannot be 
used
Feb 16 17:47:17 dut1 vnet[19827]: EAL:   Invalid NUMA socket, default to 0
Feb 16 17:47:17 dut1 vpp[19827]: EAL: Cannot open 
/sys/bus/pci/devices/0000:05:01.0/resource0: No such file or directory
Feb 16 17:47:17 dut1 vpp[19827]: EAL: Requested device 0000:05:01.0 cannot be 
used
Feb 16 17:47:17 dut1 vnet[19827]: EAL: Cannot open 
/sys/bus/pci/devices/0000:05:01.0/resource0: No such file or directory
Feb 16 17:47:17 dut1 vnet[19827]: EAL: Requested device 0000:05:01.0 cannot be 
used
Feb 16 17:47:17 dut1 vnet[19827]: unix_physmem_region_iommu_register: ioctl 
(VFIO_IOMMU_MAP_DMA): Invalid argument
Feb 16 17:47:17 dut1 vnet[19827]: dpdk_ipsec_process:1007: not enough DPDK 
crypto resources, default to OpenSSL
Feb 16 17:47:17 dut1 vnet[19827]: dpdk_lib_init:221: DPDK drivers found no 
ports...
csit@dut1:~$
csit@dut1:~$


Reply via email to