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 C21A6A04A5 for ; Fri, 17 Dec 2021 19:49:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 914CF4013F; Fri, 17 Dec 2021 19:49:06 +0100 (CET) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mails.dpdk.org (Postfix) with ESMTP id D086A40040 for ; Fri, 17 Dec 2021 19:49:04 +0100 (CET) Received: by mail-wr1-f48.google.com with SMTP id o13so5733034wrs.12 for ; Fri, 17 Dec 2021 10:49:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=qrFHb7e46pqG1W/kgwVCZ7mTSd/HQzRIrmje4QFWdl0=; b=B0EB9O3rzOfdykzcanKYaWAppPG5iWBiMLDII14xEJiQJqPhVcZCAfjIoZ3cBRhPDo rpex/9QQ/4ZdiLIi65P3GCPrm5CTi8+AhcLDSj3sEy9WSyI03frdCKvRQcwHsabIWRAi LfBUscikCvfjw4o5w56XKbiFaxgc/JiaJ1i71sZ9RQD/21AvvqMrDdYE1DTHlni6Qw5v 4xKC61GvJWVuvzt4BWab5q4+fcTtctaKNLnjgz7pPCdbYHeaXC+hOazRusUP2r3fh3RU QYY60Cv5FxSmpYBZDFBhsHB0a/bN2R1zRcm8bxLR84Fi4gs9MHU+xRa5t4BXvGb2wD/I YZOg== 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; bh=qrFHb7e46pqG1W/kgwVCZ7mTSd/HQzRIrmje4QFWdl0=; b=Cm0uf/jR3LEXf3HvVhIydReeI1Gdma4Xzg8hjrDfwK7KCXQzdGsuKvA8g5P1YiW9hN YZsRuFhwyieVb64LCInPIglFctmBYMoQ0rY/yOEgaaa9pjC1lD8+oQqrZ5Gz207BfvwX qu1iiT2oynbibYlxjMXRrxchEcIwnL6DoIPIIl+d1EqAKHTy8Ge2sTRQnmcUUO4RUgDT czyGgHOTcU/VwVrEI98g59PhR78qi3SVfLq/p+DRN0GAO297k/9yxLuJ16RyciknJZip UGDoKMBGMsfO0zDtSit6+pWBgOhbuZ6ZRfbbdwf89PWZ7iNs6pZkf1TALRbf34YvwfUL r1Sg== X-Gm-Message-State: AOAM530PDPnD8u3fjQAkps9OptkJz1ePEDP7A5twGC5I86AEAm10j7zq iiTL8JspJ2xhyL6ffdQT7CEKZSehcQVfv4xUU0CDQsTWwoM= X-Google-Smtp-Source: ABdhPJySYgxb4gAyv/Zh3aCYo6jxzZnnUi6D2xU1A/KhBCGmZTubxnwvLo1YDFachFLWQ1+11U199yvNeGvF8AvNGfw= X-Received: by 2002:adf:ef46:: with SMTP id c6mr3708866wrp.555.1639766944319; Fri, 17 Dec 2021 10:49:04 -0800 (PST) MIME-Version: 1.0 From: fwefew 4t4tg <7532yahoo@gmail.com> Date: Fri, 17 Dec 2021 13:48:53 -0500 Message-ID: Subject: dpdk-devbind.py fail on AWS c5n.metal instance running 'Amazon Linux 2 Kernel 5.10' To: users@dpdk.org Content-Type: multipart/alternative; boundary="0000000000003b0c0405d35bfee2" 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 --0000000000003b0c0405d35bfee2 Content-Type: text/plain; charset="UTF-8" Using AWS I have, * c5n.metal instance * running 64-bit x86 Amazon Linux 2 AMI (HVM) - Kernel 5.10 ( ami-0ed9277fb7eb570c9) * DPDK 22.03-rc0 * I've installed the ena kernel fix in https://github.com/amzn/amzn-drivers/tree/master/userspace/dpdk/enav2-vfio-patch I add a second NIC to the instance in the normal way. This second NIC starts UP. So I bring the NIC down and bind it: * lspci | grep Eth 7e:00.0 Ethernet controller: Amazon.com, Inc. Elastic Network Adapter (ENA) 7f:00.0 Ethernet controller: Amazon.com, Inc. Elastic Network Adapter (ENA) * sudo ip link set eth1 down Then I bind: * sudo ./dpdk-devbind.py -b vfio-pci 7f:00.0 Error: bind failed for 0000:7f:00.0 - Cannot bind to driver vfio-pci: [Errno 19] No such device The error seems to arise from when attempting to close the file descriptor on /sys/bus/pci/drivers/vfio-pci/bind dpdk-devbind.py never shows the device bound to vfio: * sudo ./dpdk-devbind.py -s Other Network devices ===================== 0000:7f:00.0 'Elastic Network Adapter (ENA) ec20' unused=ena,vfio-pci --0000000000003b0c0405d35bfee2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Using AWS I have,

* c5n.metal instance
* running= 64-bit x86 Amazon Linux 2 AMI (HVM) - Kernel 5.10 (ami-0ed9277fb7eb570c9)
* DPDK=C2=A022.03-rc0
I add a second NIC to the instance in the normal way.

This second = NIC starts UP. So I bring the NIC down and bind it:

* lspci | grep E= th
7e:00.0 Ethernet controller: Amazon.com, Inc. Elastic Network Adapter= (ENA)
7f:00.0 Ethernet controller: Amazon.com, Inc. Elastic Network Ada= pter (ENA)

* sudo ip link set eth1 down

Then I bind:

*= =C2=A0=C2=A0sudo ./dpdk-devbind.py -b vfio-pci 7f:00.0
Error: bind faile= d for 0000:7f:00.0 - Cannot bind to driver vfio-pci: [Errno 19] No such dev= ice

The error seems to arise from when attempting to close the file = descriptor on=C2=A0/sys/bus/pci/drivers/vfio-pci/bind

dpdk-devbind.p= y never shows the device bound to vfio:

* sudo ./dpdk-devbind.py -s<= br>
Other Network devices
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D
0000:7f:00.0 'Elastic Network Adapter (ENA)= ec20' unused=3Dena,vfio-pci
--0000000000003b0c0405d35bfee2--