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 16F0143C53 for ; Sat, 9 Mar 2024 00:38:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF2654027A; Sat, 9 Mar 2024 00:38:42 +0100 (CET) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) by mails.dpdk.org (Postfix) with ESMTP id 380334021D for ; Sat, 9 Mar 2024 00:38:41 +0100 (CET) Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-512ed314881so2569202e87.2 for ; Fri, 08 Mar 2024 15:38:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709941120; x=1710545920; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=U14qSBT4yOSonaNQ0sYyFaGh3pU0L3t+krvGHkUv+8o=; b=DVSFUBQotWDVuHt7obtEV4Y2PjPihjL6ttIEyQI8hs9dHB5rOFR6M3t10EQYO8nym7 +97wEvxcCHOH4GeKGKBq0auojm4DKccDopDrNmcuF8tHxMSuzfZy69fc82a+G2z6unLG dM5FMn8j/Epl3otei3Coz0FLg0mCyYV8k0HHY4eIgpB8zUP6wWw/aa4ocwRE6qNEcLQp rM6fJMOJZawvNqM52QxXIjCs5Y3/sOLH8Hua9sVuwbkVvWmxBuuIZmVR+h1Cq6YRgW65 tlJZ/n4QmRGRiDrchucsCbPZb65OSIwGwxNMPlQXIW90iJL03a7J98kODz0u+imwleR3 wGmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709941120; x=1710545920; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U14qSBT4yOSonaNQ0sYyFaGh3pU0L3t+krvGHkUv+8o=; b=Y+egJDt+6VcBEt2npoZvdw1CBKzq6UXLpodMFw5WRxn+uNoUf1N4oYqby2yMsgBhGK LsNFx89CcrFfdkC4mJDfMoOzG9WzB9g8V+6MNruxNzrajuw8Sk0R6i2A+B2uXJWnAvU6 oH1Jzb8BMyEJKRGPwGu9mtX2vW1Wpbo74K3rcbqplfCHLEJ13N54R4n0kAvn0ysPFoT0 wBRvkFpackETLdY6nSRI1o6HkqvNIIjRZ+tEACweYe5UNwVNpZ3fdhKStsz0q70MwBbi j1PY2hIwxcpVuhXrgB0ShRS+IbM4Mwcn9pNC/o/pY2HbNAcyZnLdosEfGr2umFRI9a3q l/qg== X-Gm-Message-State: AOJu0YzEEWOPPCP6yh/+x2X+Lwn4TQBqI+8VvC0zRAmPfGPLwEbyXyuT 0c+Waw20ohexbKFQMILESYtGyW7sbaKYCnpKptvxqgVwmwADGoyxJkOyh1UwNsbHVCUyXZvDD+I qZE/ItYSvJafvhZfrWKM+JktTWQUyrIWwcf0GAg== X-Google-Smtp-Source: AGHT+IEluxISF7zNklmESfLH6I84pYJNZ55408nz3V2GZcHLoXYM6EDsn+LubsiffWpQDQbs8vClFpa0lEIwRmig5wQ= X-Received: by 2002:ac2:4990:0:b0:513:1100:9aa9 with SMTP id f16-20020ac24990000000b0051311009aa9mr269754lfl.35.1709941120259; Fri, 08 Mar 2024 15:38:40 -0800 (PST) MIME-Version: 1.0 References: <20240308141358.0b143e13@hermes.local> In-Reply-To: <20240308141358.0b143e13@hermes.local> From: sonntex Date: Fri, 8 Mar 2024 23:38:28 +0000 Message-ID: Subject: Re: testpmd: no probed ethernet devices i219-v vfio-pci To: stephen@networkplumber.org Cc: users@dpdk.org Content-Type: multipart/alternative; boundary="0000000000000f5ec306132eb1df" 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 --0000000000000f5ec306132eb1df Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Stephen, Thank you for the quick response! I was going to use this network card just for testing. laptop :: ~ % sudo lspci -n -s 00:1f.6 00:1f.6 0200: 8086:0d4f I will check dpdk and kernel sources. On Fri, Mar 8, 2024 at 10:14=E2=80=AFPM Stephen Hemminger < stephen@networkplumber.org> wrote: > On Fri, 8 Mar 2024 21:19:08 +0000 > sonntex wrote: > > > Hi, > > > > I am trying to configure dpdk on my laptop and get "no probed ethernet > > devices" in dpdk-testpmd utility: > > > > laptop :: ~ % sudo dpdk-testpmd -l 0-1 -n 4 --log-level=3Ddebug -- -i > > EAL: Detected CPU lcores: 8 > > EAL: Detected NUMA nodes: 1 > > EAL: Detected static linkage of DPDK > > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > > EAL: Selected IOVA mode 'VA' > > EAL: VFIO support initialized > > testpmd: No probed ethernet devices > > Interactive-mode selected > > testpmd: create a new mbuf pool : n=3D155456, size=3D2176, > socket=3D0 > > testpmd: preferred mempool ops selected: ring_mp_mc > > Done > > testpmd> ... > > > > Checked that dpdk 23.07 supports this my NIC at > > http://doc.dpdk.org/guides/rel_notes/release_23_07.html: > > > > Intel Corporation Ethernet Connection (16) I219-V > > Firmware version: 0.6-4 > > Device id (pf): 8086:1a1f > > Driver version(in-tree): 5.15.113-rt64 (Ubuntu22.04.2)(e1000) > > > > Configuration: > > > > laptop :: ~ % pacman -Ss dpdk > > extra/dpdk 23.07-1 [installed] > > A set of libraries and drivers for fast packet processing > > > > laptop :: ~ % sudo ethtool -i enp0s31f6 > > driver: e1000e > > version: 6.7.8-arch1-1 > > firmware-version: 0.6-4 > > expansion-rom-version: > > bus-info: 0000:00:1f.6 > > supports-statistics: yes > > supports-test: yes > > supports-eeprom-access: yes > > supports-register-dump: yes > > supports-priv-flags: yes > > > > laptop :: ~ % sudo modprobe vfio-pci > > laptop :: ~ % sudo lsmod | grep vfio > > vfio_pci 16384 0 > > vfio_pci_core 86016 1 vfio_pci > > vfio_iommu_type1 45056 0 > > vfio 73728 3 vfio_pci_core,vfio_iommu_type1,vfio_pci > > iommufd 106496 1 vfio > > irqbypass 12288 2 vfio_pci_core,kvm > > > > laptop :: ~ % sudo dpdk-hugepages.py -m > > laptop :: ~ % sudo dpdk-hugepages.py -p 2M --setup 1G > > laptop :: ~ % sudo dpdk-hugepages.py -s > > Node Pages Size Total > > 0 512 2Mb 1Gb > > Hugepages mounted on /dev/hugepages > > > > laptop :: ~ % sudo dpdk-devbind.py --status-dev net > > Network devices using kernel driver > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > 0000:00:14.3 'Comet Lake PCH-LP CNVi WiFi 02f0' if=3Dwlan0 drv=3Diwlwif= i > > unused=3D *Active* > > 0000:00:1f.6 'Ethernet Connection (10) I219-V 0d4f' if=3Denp0s31f6 > drv=3De1000e > > unused=3D > > > > laptop :: ~ % sudo dpdk-devbind.py -b vfio-pci 0000:00:1f.6 > > laptop :: ~ % sudo dpdk-devbind.py --status-dev net > > Network devices using DPDK-compatible driver > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > 0000:00:1f.6 'Ethernet Connection (10) I219-V 0d4f' drv=3Dvfio-pci > > unused=3De1000e > > Network devices using kernel driver > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > 0000:00:14.3 'Comet Lake PCH-LP CNVi WiFi 02f0' if=3Dwlan0 drv=3Diwlwif= i > > unused=3Dvfio-pci *Active > > > > Any suggestions on what might be missing here? > > > > Thanks! > > Most likely the DPDK E1000 driver doesn't support the full range of PCI > device > id's as the kernel driver. What is PCI information for you? I have simila= r > device on this machine. > > $ lspci -n -s 00:1f.6 > 00:1f.6 0200: 8086:15fc (rev 20) > > In my case the part that matters is the 15fc. > Looking in DPDK drivers/net/e1000/base/e1000_hw.h, there is no #define fo= r > that > type and no entry in drivers/net/e1000/em_ethdev.c:pci_id_em_map[] > > In linux kernel the entry is: > drivers/net/ethernet/intel/e1000e/hw.h:#define > E1000_DEV_ID_PCH_TGP_I219_V13 0x15FC > > The Intel drivers are not in sync. It is up to the E1000 DPDK > maintainers to solve. > > Note: this older E1000 hardware is not fast, and using DPDK > except as a test bed is really not worth it. > --0000000000000f5ec306132eb1df Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Stephen,

Thank you for the quick response!<= br>
I was going to use this network card just for testing.

laptop= :: ~ % sudo lspci -n -s 00:1f.6 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0
00:1f.6 0200: 8086:0d4f

I will check dpdk= and kernel sources.

On Fri, Mar 8, 2024 at 10:14=E2=80=AFPM Stephen Hem= minger <stephen@networkplu= mber.org> wrote:
On Fri, 8 Mar 2024 21:19:08 +0000
sonntex <sonntex@= gmail.com> wrote:

> Hi,
>
> I am trying to configure dpdk on my laptop and get "no probed eth= ernet
> devices" in dpdk-testpmd utility:
>
> laptop :: ~ % sudo dpdk-testpmd -l 0-1 -n 4 --log-level=3Ddebug -- -i<= br> > EAL: Detected CPU lcores: 8
> EAL: Detected NUMA nodes: 1
> EAL: Detected static linkage of DPDK
> EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
> EAL: Selected IOVA mode 'VA'
> EAL: VFIO support initialized
> testpmd: No probed ethernet devices
> Interactive-mode selected
> testpmd: create a new mbuf pool <mb_pool_0>: n=3D155456, size=3D= 2176, socket=3D0
> testpmd: preferred mempool ops selected: ring_mp_mc
> Done
> testpmd> ...=C2=A0
>
> Checked that dpdk 23.07 supports this my NIC at
> http://doc.dpdk.org/guides/rel_notes/rel= ease_23_07.html:
>
> Intel Corporation Ethernet Connection (16) I219-V
> Firmware version: 0.6-4
> Device id (pf): 8086:1a1f
> Driver version(in-tree): 5.15.113-rt64 (Ubuntu22.04.2)(e1000)
>
> Configuration:
>
> laptop :: ~ % pacman -Ss dpdk
> extra/dpdk 23.07-1 [installed]
>=C2=A0 =C2=A0 =C2=A0A set of libraries and drivers for fast packet proc= essing
>
> laptop :: ~ % sudo ethtool -i enp0s31f6
> driver: e1000e
> version: 6.7.8-arch1-1
> firmware-version: 0.6-4
> expansion-rom-version:
> bus-info: 0000:00:1f.6
> supports-statistics: yes
> supports-test: yes
> supports-eeprom-access: yes
> supports-register-dump: yes
> supports-priv-flags: yes
>
> laptop :: ~ % sudo modprobe vfio-pci
> laptop :: ~ % sudo lsmod | grep vfio
> vfio_pci=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A016384= =C2=A0 0
> vfio_pci_core=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 86016=C2=A0 1 vfio_pci=
> vfio_iommu_type1=C2=A0 =C2=A0 =C2=A0 =C2=A045056=C2=A0 0
> vfio=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A073728=C2=A0 3 vfio_pci_core,vfio_iommu_type1,vfio_pci
> iommufd=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0106496= =C2=A0 1 vfio
> irqbypass=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 12288=C2=A0 = 2 vfio_pci_core,kvm
>
> laptop :: ~ % sudo dpdk-hugepages.py -m
> laptop :: ~ % sudo dpdk-hugepages.py -p 2M --setup 1G
> laptop :: ~ % sudo dpdk-hugepages.py -s
> Node Pages Size Total
> 0=C2=A0 =C2=A0 512=C2=A0 =C2=A02Mb=C2=A0 =C2=A0 1Gb
> Hugepages mounted on /dev/hugepages
>
> laptop :: ~ % sudo dpdk-devbind.py --status-dev net
> Network devices using kernel driver
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> 0000:00:14.3 'Comet Lake PCH-LP CNVi WiFi 02f0' if=3Dwlan0 drv= =3Diwlwifi
> unused=3D *Active*
> 0000:00:1f.6 'Ethernet Connection (10) I219-V 0d4f' if=3Denp0s= 31f6 drv=3De1000e
> unused=3D
>
> laptop :: ~ % sudo dpdk-devbind.py -b vfio-pci 0000:00:1f.6
> laptop :: ~ % sudo dpdk-devbind.py --status-dev net
> Network devices using DPDK-compatible driver
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> 0000:00:1f.6 'Ethernet Connection (10) I219-V 0d4f' drv=3Dvfio= -pci
> unused=3De1000e
> Network devices using kernel driver
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> 0000:00:14.3 'Comet Lake PCH-LP CNVi WiFi 02f0' if=3Dwlan0 drv= =3Diwlwifi
> unused=3Dvfio-pci *Active
>
> Any suggestions on what might be missing here?
>
> Thanks!

Most likely the DPDK E1000 driver doesn't support the full range of PCI= device
id's as the kernel driver. What is PCI information for you? I have simi= lar
device on this machine.

$ lspci -n -s 00:1f.6
00:1f.6 0200: 8086:15fc (rev 20)

In my case the part that matters is the 15fc.
Looking in DPDK drivers/net/e1000/base/e1000_hw.h, there is no #define for = that
type and no entry in drivers/net/e1000/em_ethdev.c:pci_id_em_map[]

In linux kernel the entry is:
drivers/net/ethernet/intel/e1000e/hw.h:#define E1000_DEV_ID_PCH_TGP_I219_V1= 3=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00x15FC

The Intel drivers are not in sync.=C2=A0 It is up to the E1000 DPDK
maintainers to solve.

Note: this older E1000 hardware is not fast, and using DPDK
except as a test bed is really not worth it.
--0000000000000f5ec306132eb1df--