From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D1DD0A0577 for ; Tue, 14 Apr 2020 10:41:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A99EA1C1EF; Tue, 14 Apr 2020 10:41:19 +0200 (CEST) Received: from smtp1.kaist.ac.kr (smtp1.kaist.ac.kr [143.248.5.228]) by dpdk.org (Postfix) with ESMTP id B3A661C238 for ; Fri, 10 Apr 2020 15:31:48 +0200 (CEST) Received: from unknown (HELO mail1.kaist.ac.kr) (143.248.5.69) by 143.248.5.228 with ESMTP; 10 Apr 2020 22:31:43 +0900 X-Original-SENDERIP: 143.248.5.69 X-Original-MAILFROM: sunghyuk.kay@kaist.ac.kr X-Original-RCPTTO: users@dpdk.org Received: from kaist.ac.kr (209.85.166.52) by kaist.ac.kr with ESMTP imoxion SensMail SmtpServer 7.0 id <34e9617460c0427ba242d16b2be39fda> for from ; Fri, 10 Apr 2020 22:31:44 +0900 Received: by mail-io1-f52.google.com with SMTP id n10so1748076iom.3 for ; Fri, 10 Apr 2020 06:31:45 -0700 (PDT) X-Gm-Message-State: AGi0PuZcmrwF1L98OuNjPLV9TVcdFhCqEtsvOnK00c/xLNEiDvQEqyKx 5mjC4hyQPZhGmZQaaOB1MliBo+368+iW0kwB4AS5kQ== X-Google-Smtp-Source: APiQypKw7T7/heq95qkRZiedk48zCm8t46t9UmiDsWzqFH28XCxhLM6krkxUi5ZWb9um/N7agccrSxVyuDxTBThiua4= X-Received: by 2002:a05:6638:218:: with SMTP id e24mr4697993jaq.48.1586525503958; Fri, 10 Apr 2020 06:31:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sunghyuk Kay Date: Fri, 10 Apr 2020 22:31:33 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Dheeraj Dang Cc: "users@dpdk.org" X-Mailman-Approved-At: Tue, 14 Apr 2020 10:41:17 +0200 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] "eth_i40e_dev_init(): Failed to init adminq: -66" problem X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi, Thanks for the solution. Actually, I was trying with igb_uio driver, rather than vfio-pci. Would that make a difference? Thank you, Sunghyuk 2020=EB=85=84 4=EC=9B=94 10=EC=9D=BC (=EA=B8=88) =EC=98=A4=ED=9B=84 9:54, D= heeraj Dang =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1= : > Hi, > > I think you are using virtual functions while running your test. If yes, > please try the following commands > > Make changes in GRUB setting, update grub and reboot the machine. > GRUB_CMDLINE_LINUX=3D"intel_iommu=3Don amd_iommu=3Don" > When machine is up, check that iommu is enabled in the output of cat > /proc/cmdline. If iommu is enabled, then run the following commands. > modprobe vfio enable_unsafe_noiommu_mode=3DY modprobe vfio-pci > > Bind your dpdk interfaces to vfio-pci (*dpdk-devbind.py -b vfio-pci > *) and run the test. > > Regards > Dheeraj Dang > > > On Fri, Apr 10, 2020 at 6:16 PM Sunghyuk Kay > wrote: > >> Hi all, >> I'm setting DPDK on our hardware to do some experiment, but suffering >> from . >> >> I was trying to use DPDK on Ubuntu 18.04 with Intel XL710 Ethernet Adapt= er >> with igb_uio driver. I've compiled DPDK from source, and bound the drive= r >> to NIC. >> But when I run `testpmd` application, it returns an error like this. >> >> ``` >> $ sudo ./build/app/testpmd >> EAL: Detected 128 lcore(s) >> EAL: Detected 1 NUMA nodes >> EAL: Multi-process socket /var/run/dpdk/rte/mp_socket >> EAL: Selected IOVA mode 'PA' >> EAL: No available hugepages reported in hugepages-1048576kB >> EAL: Probing VFIO support... >> EAL: PCI device 0000:81:00.0 on NUMA socket 0 >> EAL: probe driver: 8086:1583 net_i40e >> eth_i40e_dev_init(): Failed to init adminq: -66 >> EAL: ethdev initialisation failedEAL: Requested device 0000:81:00.0 cann= ot >> be used >> EAL: PCI device 0000:81:00.1 on NUMA socket 0 >> EAL: probe driver: 8086:1583 net_i40e >> eth_i40e_dev_init(): Failed to init adminq: -66 >> EAL: ethdev initialisation failedEAL: Requested device 0000:81:00.1 cann= ot >> be used >> EAL: PCI device 0000:c4:00.0 on NUMA socket 0 >> EAL: probe driver: 8086:1533 net_e1000_igb >> EAL: PCI device 0000:c5:00.0 on NUMA socket 0 >> EAL: probe driver: 8086:1533 net_e1000_igb >> testpmd: No probed ethernet devices >> testpmd: create a new mbuf pool : n=3D1163456, >> size=3D2176, >> socket=3D0 >> testpmd: preferred mempool ops selected: ring_mp_mc >> Done >> No commandline core given, start packet forwarding >> io packet forwarding - ports=3D0 - cores=3D0 - streams=3D0 - NUMA suppor= t >> enabled, MP allocation mode: native >> >> io packet forwarding packets/burst=3D32 >> nb forwarding cores=3D1 - nb forwarding ports=3D0 >> Press enter to exit >> >> Telling cores to stop... >> Waiting for lcores to finish... >> >> +++++++++++++++ Accumulated forward statistics for all >> ports+++++++++++++++ >> RX-packets: 0 RX-dropped: 0 RX-total: 0 >> TX-packets: 0 TX-dropped: 0 TX-total: 0 >> >> >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++ >> >> Done. >> >> Bye... >> ``` >> I tried to find what return code -66 from adminq means, but I couldn't >> find >> it. >> Some say this might have to do with Intel IOMMU pass-through, but I'm no= t >> sure that's the case. >> >> Has anyone had this issue before? Maybe some tip on this issue would be >> very helpful. >> >> Thank you, >> Sunghyuk >> > -- =EA=B0=90=EC=82=AC=ED=95=A9=EB=8B=88=EB=8B=A4 =EA=B3=84=EC=84=B1=ED=98=81 =EB=93=9C=EB=A6=BC =3D=3D=3D=3D=3D=3D=3D=3D=3D =EA=B3=84=EC=84=B1=ED=98=81 (Kay, Sung Hyuk) KAIST Concurrency and Parallelism Laboratory Masters Student @ Software Graduate Program Mobile: 010-2794-6906