DPDK usage discussions
 help / color / mirror / Atom feed
* Primary with error : EAL: Failed to attach device on primary process
@ 2021-10-18  7:35 廖書華
  0 siblings, 0 replies; only message in thread
From: 廖書華 @ 2021-10-18  7:35 UTC (permalink / raw)
  To: users; +Cc: 林庭安

Dear,

My DPDK version is for 19.11 using x86_64-native-linuxapp-icc for the
compilation with VFIO module.

I bump into the error *EAL: Failed to attach device on primary process *while
running with my own application. This error is caused when calling function
plug() in function local_dev_probe(), currently the return value is -17,
not for expected 0. Can someone give me some suggestions ?
Here's the related DPDK log of my application.
xran_ethdi_init_dpdk_io: Calling rte_eal_init:wls_0 -c 0x2000021 -n2
--iova-mode=pa --socket-mem=8192 --socket-limit=8192 --proc-type=auto
--file-prefix wls_0 EAL: Detected 40 lcore(s) EAL: Detected 2 NUMA nodes
EAL: Auto-detected process type: PRIMARY EAL: Multi-process socket
/var/run/dpdk/wls_0/mp_socket EAL: Selected IOVA mode 'PA' EAL: Probing
VFIO support... EAL: VFIO support initialized EAL: PCI device 0000:01:00.0
on NUMA socket 0 EAL: probe driver: 8086:1539 net_e1000_igb EAL: PCI device
0000:02:00.0 on NUMA socket 0 EAL: probe driver: 8086:1539 net_e1000_igb
EAL: PCI device 0000:18:00.0 on NUMA socket 0 EAL: probe driver: 8086:1583
net_i40e EAL: PCI device 0000:18:00.1 on NUMA socket 0 EAL: probe driver:
8086:1583 net_i40e EAL: PCI device 0000:86:00.0 on NUMA socket 1 EAL: probe
driver: 8086:1572 net_i40e EAL: PCI device 0000:86:00.1 on NUMA socket 1
EAL: probe driver: 8086:1572 net_i40e EAL: PCI device 0000:86:00.2 on NUMA
socket 1 EAL: probe driver: 8086:1572 net_i40e EAL: PCI device 0000:86:00.3
on NUMA socket 1 EAL: probe driver: 8086:1572 net_i40e EAL: PCI device
0000:86:02.0 on NUMA socket 1 EAL: probe driver: 8086:154c net_i40e_vf EAL:
using IOMMU type 1 (Type 1) EAL: PCI device 0000:86:02.1 on NUMA socket 1
EAL: probe driver: 8086:154c net_i40e_vf Return value (int) of
rte_pdump_init() : 0 Return value of function rte_devargs_parse() : 0
Return value of function rte_devargs_insert() : 0 Return value of function
scan() : 0 EAL: PCI device 0000:86:02.0 on NUMA socket 1 Return value of
function plug() : -17 local_dev_probe : -17 EAL: Failed to attach device on
primary process initializing port 0 for TX, drv=net_i40e_vf Port 0 MAC: 00
11 22 33 44 66 Port 0: nb_rxd 4096 nb_txd 4096 Checking link status portid
[0] ... done Port 0 Link Up - speed 10000 Mbps - full-duplex Return value
of function rte_devargs_parse() : 0 Return value of function
rte_devargs_insert() : 0 Return value of function scan() : 0 EAL: PCI
device 0000:86:02.1 on NUMA socket 1 Return value of function plug() : -17
local_dev_probe : -17 EAL: Failed to attach device on primary process
initializing port 1 for TX, drv=net_i40e_vf Port 1 MAC: 00 11 22 33 44 66
Port 1: nb_rxd 4096 nb_txd 4096 Checking link status portid [1] ... done
Port 1 Link Up - speed 10000 Mbps - full-duplex vf 0 local SRC MAC: 00 11
22 33 44 66 vf 0 remote DST MAC: 00 11 22 33 44 55 vf 1 local SRC MAC: 00
11 22 33 44 66 vf 1 remote DST MAC: 00 11 22 33 44 55

P.S.1 : If I parse -w 0000:00:00.0 as the input of rte_eal_init()  in my
primary, the problem  *EAL: Failed to attach device on primary process*  will
*Disappear*, do someone has any idea about this ?

P.S.2 : If I parse the below device (-w 0000:86:02.0 -w 0000:86:02.1) as
the input of rte_eal_init() in my primary, it also bumps into the problem *EAL:
Failed to attach device on primary process.*
* - Log of binding DPDK port*

[oai@ee705-7-ip120 dpdk-19.11]$ ./usertools/dpdk-devbind.py --status

Network devices using DPDK-compatible driver
============================================
0000:86:02.0 'Ethernet Virtual Function 700 Series 154c' drv=vfio-pci
unused=iavf
0000:86:02.1 'Ethernet Virtual Function 700 Series 154c' drv=vfio-pci
unused=iavf


Can someone help me ?

Best Regards,
Shu-hua, Liao

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-18  7:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18  7:35 Primary with error : EAL: Failed to attach device on primary process 廖書華

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git