From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F16EEA0C43 for ; Mon, 18 Oct 2021 09:35:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF9D4410E1; Mon, 18 Oct 2021 09:35:54 +0200 (CEST) Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) by mails.dpdk.org (Postfix) with ESMTP id 6152F410E1 for ; Mon, 18 Oct 2021 09:35:53 +0200 (CEST) Received: by mail-qt1-f181.google.com with SMTP id o12so14508162qtq.7 for ; Mon, 18 Oct 2021 00:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=Fk1e/3LzwuanNKpRxnYTfASz5UCj5Ks6ZGBLBLJ5V7Y=; b=GZyWCXpFnyr4oAmFLPN6s6F1tNAPvcAfpGnIC4dfSkCrmj0sCPPW7fAJEIC9e+1Sfz pili7eASUf6oi0RvRNHoa9eOOBcTqVjUkee9k/5pjIJtoSNA6ni33EqfSduIRyP0BE/q UVACs/vZSkQ/rbNaxXVAjvWZbeqiDKBXnM19JLBLe/TRJlMvTLP2h0yiF5OezpfCBB1o fJGrXb2WKJt4geNS+XX3vkcmAaQ6Kif9Z2cC1hiPCYrvQfw9ORAAyCALUP34NQZsKVc0 lMdXnPIAjsMXYIQhv9LYbZjkn8JsVvzLnTXuJ/dYXGJRZPFULfJZjSR/mNwm2cRENpOT 5Qeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Fk1e/3LzwuanNKpRxnYTfASz5UCj5Ks6ZGBLBLJ5V7Y=; b=eqvxNiqii4zB3hZImC5Z2pnamMBQaNkWolN12ebvrMYOHd9E2iAI/K/P6IIY5USSpm juVjMUMAHdrWYRUYoWdSER6wVL+Gk3w7d3e/2xxy5USmORia12YYGZN6qB/HNRmd8rSU mLUlGM6cZlQ6WMMADgWUYZXFyQW8giZBTzbgVp+MutAUYoJUaZkaG2W+vQhD7TEUh5zS u09m+DnqXxAfcp8+Jrwy87Idk38zkXU2y0Akh95b1XN30tee8gZyCwmJDKRaIwpYLtN1 hAYST2yOLfQD+7qGjSd1r78BWgRK3MGLljAPZYPYDeQ3ifBIiASvLTJhhlOS4WCX0Kck Z5Yw== X-Gm-Message-State: AOAM530Z6dKQz4FVMRlF0q0S6RsDaLYi/PA1nAuMxPH90B83SDgohkjn mdwB5ub+Y6mUYXOoiPvmo2M0+McxjfEn4XZOVRZyFEOu+pA= X-Google-Smtp-Source: ABdhPJwQgE5zL5EwzP5hCySwr2mJcFNVvfUWAyIX3kBcWVaoHadXXaLQjYKkageH6bhL7jFlh4lOfdfVcQQ4OvN3p0c= X-Received: by 2002:a05:622a:5d0:: with SMTP id d16mr28452583qtb.60.1634542552537; Mon, 18 Oct 2021 00:35:52 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?5buW5pu46I+v?= Date: Mon, 18 Oct 2021 15:35:16 +0800 Message-ID: Subject: Primary with error : EAL: Failed to attach device on primary process To: users@dpdk.org Cc: =?UTF-8?B?5p6X5bqt5a6J?= Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org 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