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 D28FF43C4B for ; Fri, 8 Mar 2024 23:14:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 52068402E7; Fri, 8 Mar 2024 23:14:04 +0100 (CET) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id AAD7D402BB for ; Fri, 8 Mar 2024 23:14:02 +0100 (CET) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6e5dddd3b95so1900340b3a.1 for ; Fri, 08 Mar 2024 14:14:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709936041; x=1710540841; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=ppza+TqGlTzNgeRJkB7CsGpCwF0N1Ac19FNlgQwFqpM=; b=WtEagGw/tYZUZVEASUEGPN1knnbQfqZ91PmoR+q8kv94/tlZvh21lnk14EkGM3/E/T kBRpuKcdBedTZPDMARmUQ/YMImykvyjPfm1HrK/Zu72K/np0lbyK+O9UnfYI86+aDF7D trt0GEl+kA2y9aPmzFWqitlorSgCzcEh9EbzAB05pZfbKDE2YC5UpNWlMr5fzaj8449A w1ZB0bIcJkhiDkqp51wauLGQzLHSRNPqb3dqRjDf4k8scFIiqB5z+9T9IwQlRGcvLuAk z1LxTaECfA39tuGM2NvKHSDMCQGX7qEmzEDxk0CYjbVp5a/c/5vqrnz5pmyTKqm9hh9H 2zyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709936041; x=1710540841; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ppza+TqGlTzNgeRJkB7CsGpCwF0N1Ac19FNlgQwFqpM=; b=DxB87mjxykWnpzsfL2Z/WzqdNvuHX4SYTU9yo20sZXFASMJ/hgFNtQN+H0kAfbS2sL MlTIKArgcV7K6CHMo6bN6/+/gxQXCmqFq+P+pRMcXS5KV2Pn4szML+URBUPu0LF/rFXG Dr48cBOkh2GDu53juN8RVGmkNOdmqktPfxU3ss7wW3aiDhhsYDE5t2ArVqTjJJs27Kk2 +1BkdmWWPFWS6ar2ltldoYYrYCRMO6RrWbUhvxsP87hNr1ojyo1O1d/w8oeFJeDW9OmI C10ivYZgrypuE7pGzTzxO/9FfwhTpQxNr6IV/Bk9w5D2Y2MP+QXXlZv/aetn4G4jcKVs Htcg== X-Gm-Message-State: AOJu0Yxg/WNLfV5XAdflPM/mSgXvLkV+BYovVZCMa2VItr7pmv8n5/iC xzu2b5LYZWEDYXgLVtPyH1ExToYrpnykVKqHYvFrV6ytvOnqx0lWjH+GU5/UuWM= X-Google-Smtp-Source: AGHT+IGh1rEmypXgbjAqA3JQgL2GU5Sl24EDFlcSM6HKLGV1A6tQJsPKvz+O/kfm96vH6w7c9/K2ug== X-Received: by 2002:a05:6a00:190f:b0:6e0:df2d:e7fe with SMTP id y15-20020a056a00190f00b006e0df2de7femr645453pfi.11.1709936041567; Fri, 08 Mar 2024 14:14:01 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id q21-20020aa79835000000b006e5eaf5b486sm177270pfl.85.2024.03.08.14.14.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 14:14:01 -0800 (PST) Date: Fri, 8 Mar 2024 14:13:58 -0800 From: Stephen Hemminger To: sonntex Cc: users@dpdk.org Subject: Re: testpmd: no probed ethernet devices i219-v vfio-pci Message-ID: <20240308141358.0b143e13@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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=debug -- -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=155456, size=2176, socket=0 > 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 > =================================== > 0000:00:14.3 'Comet Lake PCH-LP CNVi WiFi 02f0' if=wlan0 drv=iwlwifi > unused= *Active* > 0000:00:1f.6 'Ethernet Connection (10) I219-V 0d4f' if=enp0s31f6 drv=e1000e > unused= > > 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 > ============================================ > 0000:00:1f.6 'Ethernet Connection (10) I219-V 0d4f' drv=vfio-pci > unused=e1000e > Network devices using kernel driver > =================================== > 0000:00:14.3 'Comet Lake PCH-LP CNVi WiFi 02f0' if=wlan0 drv=iwlwifi > unused=vfio-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 similar 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_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.