From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 1D4401BB7A for ; Fri, 13 Apr 2018 09:03:27 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Apr 2018 00:03:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,444,1517904000"; d="scan'208";a="46591588" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 13 Apr 2018 00:03:27 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 13 Apr 2018 00:03:26 -0700 Received: from hasmsx107.ger.corp.intel.com (10.184.198.27) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 13 Apr 2018 00:03:26 -0700 Received: from HASMSX110.ger.corp.intel.com ([169.254.6.227]) by hasmsx107.ger.corp.intel.com ([169.254.2.131]) with mapi id 14.03.0319.002; Fri, 13 Apr 2018 10:03:23 +0300 From: "Rosen, Rami" To: "Weglicki, MichalX" , "dev@dpdk.org" Thread-Topic: Problem with using VF: Initialization Failure: -15 Thread-Index: AdPRjMTVr6vLYvvXTN+HKRE6ljE6LwBZ9taw Date: Fri, 13 Apr 2018 07:03:23 +0000 Message-ID: <9B0331B6EBBD0E4684FBFAEDA55776F9531D579E@HASMSX110.ger.corp.intel.com> References: <1AFA2937E172CD4DB2FD9318443C060E40DB9C32@IRSMSX102.ger.corp.intel.com> In-Reply-To: <1AFA2937E172CD4DB2FD9318443C060E40DB9C32@IRSMSX102.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzE2ODYxOWYtM2ZhMC00YmRkLTk3YjMtNGVkNjg2ZmQ2YmJjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJ6RVppMThrOXVZU1NxSDJzSTIwMWo3MnFkWkVkMDZpMXV1QTM5aVB0TktnV3d0eWhnTTQ1a2MyMUhMNWwyV1BVIn0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.249.87.242] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] Problem with using VF: Initialization Failure: -15 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2018 07:03:28 -0000 Hi, Michal, First, I believe that such questions suit better to the dpdk-users mailing = list. >I've investigated the issue, and the problem is with: >diag =3D hw->mac.ops.reset_hw(hw); >which calls: >e1000_reset_hw_vf >and it calls: >e1000_read_posted_mbx >Which returns: E1000_ERR_MBX (-15) Are you sure about it ? the path that you present in your investigation=20 is from drivers/net/e1000, whereas the test that you ran is on top of ixgbe= ,=20 which has a different PMD driver (drivers/net/ixgbe). The setup that you de= scribe does not use e1000 device at all, according to my understanding. Regards, Rami Rosen -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Weglicki, MichalX Sent: Wednesday, April 11, 2018 15:01 To: dev@dpdk.org Subject: [dpdk-dev] Problem with using VF: Initialization Failure: -15 Hello, I'm trying to test very simple scenario, creating two VFs and testing it wi= th test-pmd. Unfortunately I can't make it to work DPDK Version: v17.11 (I'= ve checked also 18.02) NIC: Niantic 82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb Kernel: 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_= 64 x86_64 x86_64 GNU/Linux Steps: Creating two VFs. Binding each VF to a driver (I also tried vfio_pci with s= ame results): ../dpdk/usertools/dpdk-devbind.py --bind=3Digb_uio 0000:81:10.0 ../dpdk/use= rtools/dpdk-devbind.py --bind=3Digb_uio 0000:81:10.1 ./testpmd -c 0x3 -n 4 --socket-mem 512 -- --burst=3D64 -i --txqflags=3D0xf0= 0 --disable-hw-vlan EAL: Detected 56 lcore(s) EAL: Probing VFIO support... EAL: VFIO support initialized EAL: PCI device 0000:03:00.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:1521 net_e1000_igb EAL: PCI device 0000:03:00.3 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:1521 net_e1000_igb EAL: PCI device 0000:05:00.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10fb net_ixgbe EAL: PCI device 0000:05:00.1 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10fb net_ixgbe EAL: PCI device 0000:81:00.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10fb net_ixgbe EAL: PCI device 0000:81:00.1 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10fb net_ixgbe EAL: PCI device 0000:81:10.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10ed net_ixgbe_vf PMD: eth_ixgbevf_dev_init(): VF Initialization Failure: -15 EAL: Requested device 0000:81:10.0 cannot be used EAL: PCI device 0000:81:10.1 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10ed net_ixgbe_vf PMD: eth_ixgbevf_dev_init(): VF Initialization Failure: -15 EAL: Requested device 0000:81:10.1 cannot be used EAL: PCI device 0000:83:00.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10fb net_ixgbe EAL: PCI device 0000:83:00.1 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:10fb net_ixgbe EAL: No probed ethernet devices Interactive-mode selected I've investigated the issue, and the problem is with: diag =3D hw->mac.ops.reset_hw(hw); which calls: e1000_reset_hw_vf and it calls: e1000_read_posted_mbx Which returns: E1000_ERR_MBX (-15) Is this common issue, or some configuration problem? Thank you all in advance. Br, Michal.