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 C9E3B42542; Fri, 8 Sep 2023 08:42:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B21DE40285; Fri, 8 Sep 2023 08:42:45 +0200 (CEST) Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) by mails.dpdk.org (Postfix) with ESMTP id 9511C400EF for ; Thu, 7 Sep 2023 16:57:25 +0200 (CEST) Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-51e28cac164so4667675a12.1 for ; Thu, 07 Sep 2023 07:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cactussoft.biz; s=google; t=1694098645; x=1694703445; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=WuCd5OOrsU8u0H7U4R7IQH2ujM1isHlK+4VXBnfaq00=; b=Mmg4F3GEjWsop9NoLhWd4RpNQqX+Qy5qr+5OvVhSOKjomC9ykb5rRsmLLT5n/3fCG8 gHsZagkQbIymLN/3Idkswy6+0Dhg+86ggmMBNWfYwzFYbvIZo5ZF+vyw+b2s5Mbq4e/R 298JsejdzYY2GCCbj6soK3EB1aCREwbKZpyPM/QPhRDGNd9hr0cR2nHiBv7WS4xAUlew r5vTP83qW0p828hOAHFhoIDZe+s9ViNoLOOgnsetObZZ6UCuoH32W+NQgUkQz/nj79Nl ovlAjHahnHUFnvx06/itLgVuhnXwYmnCeREPGzrLnCHnbFk9JFrWjTkUI1SFOhox2m+o rYuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694098645; x=1694703445; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=WuCd5OOrsU8u0H7U4R7IQH2ujM1isHlK+4VXBnfaq00=; b=fWosmeZS3Z6066k+JRCMaAznWklU/1tM1cMlv6meigwsjun7R+DSSM3/HX79Bq6eRq +jxhMKHebj8IveQcfU77siwJpeo20I+kvomEgNYyLGitrJLHa97l5xkXtpJ5iOI+Pyhd MWaz1KMJqoem4M06MgarknQAGupjYophfvoNIP86EPwUZcyvTAPZAn8fol7DFL4IQq/P 9iUTj2H9JXTLo1k+aEoGWCznT8OTFyX1wO49eSOdDal1WVUaCYTl1AYl/mph5mOkZXOl KlJNTRDbAef4v+vZXky1JNcXtgJuD77AlMkPUa6CI6+TAVrOzRRoc4/Pn2+I7/33xeJ/ tU4w== X-Gm-Message-State: AOJu0YzpLRT5tHkYGa+dV3iaA1IBDqhCsu1zvHecU8b9tvMnMvE2fynt kF9ByKtB8LYDl2wp0OuMo6+AOC1PpfMket8kVky2gCK5TuyMMvB5a9A= X-Google-Smtp-Source: AGHT+IFA/XhrnpvsfYed55+MDPsKjIgzw895qrEFngnI//b37tfi2/xK0uZQ5VfTjTrWtnFHBMcsm/OkFWDXoABtSSo= X-Received: by 2002:aa7:d396:0:b0:523:b37e:b83b with SMTP id x22-20020aa7d396000000b00523b37eb83bmr3711511edq.13.1694098644851; Thu, 07 Sep 2023 07:57:24 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Ant=C3=B3n_Rey_Villaverde?= Date: Thu, 7 Sep 2023 16:57:14 +0200 Message-ID: Subject: Troubleshooting DPDK in Intel Ethernet NIC To: dev@dpdk.org Content-Type: multipart/alternative; boundary="000000000000f0f12c0604c6131e" X-Mailman-Approved-At: Fri, 08 Sep 2023 08:42:44 +0200 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --000000000000f0f12c0604c6131e Content-Type: text/plain; charset="UTF-8" Hi, I have a problem while trying to manage my physical Ethernet interface from DPDK (latest version compiled from source). I have a: NIC: 0000:00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (13) I219-LM (rev 20) which belongs to the list of supported NICs in DPDK. Also, I have bound my NICto vfio-pci, not the kernel: dpdk-23.07$ usertools/dpdk-devbind.py --status Network devices using DPDK-compatible driver ============================================ 0000:00:1f.6 'Ethernet Connection (13) I219-LM 15fb' drv=vfio-pci unused=e1000e I also enabled hugepages (2G). when I enter "sudo build/app/dpdk-testpmd -c7 -- -i" I get: 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 TELEMETRY: No legacy callbacks, legacy socket not created testpmd: No probed ethernet devices Interactive-mode selected testpmd: create a new mbuf pool : n=163456, size=2176, socket=0 testpmd: preferred mempool ops selected: ring_mp_mc Done testpmd> When I enter "show port info all" in the testpmd CLI I get nothing (no ports). When I start testpmd with "-a 0000:00:1f.6" (the address of the ethernet NIC I want to manage from DPDK), The same happens (no ports). If I try to start testpmd with "-d build/drivers/librte_net_e1000.so" (the shared library of the driver of that device), I get a crash: dpdk-23.07$ sudo build/app/dpdk-testpmd -c7 -a 0000:00:1f.6 -d build/drivers/librte_net_e1000.so -- -i EAL: Detected CPU lcores: 8 EAL: Detected NUMA nodes: 1 EAL: Detected static linkage of DPDK EAL: UIO_RESOURCE_LIST tailq is already registered PANIC in tailqinitfn_rte_uio_tailq(): Cannot initialize tailq: UIO_RESOURCE_LIST 0: build/app/dpdk-testpmd (rte_dump_stack+0x32) [55be1839afe2] 1: build/app/dpdk-testpmd (__rte_panic+0xf1) [55be18369e68] 2: /home/anton/tdr/dpdk-23.07/build/drivers/librte_bus_pci.so.23 (7f52153f6000+0x5d86) [7f52153fbd86] 3: /lib64/ld-linux-x86-64.so.2 (7f5215f90000+0x11b9a) [7f5215fa1b9a] 4: /lib64/ld-linux-x86-64.so.2 (7f5215f90000+0x11ca1) [7f5215fa1ca1] 5: /lib/x86_64-linux-gnu/libc.so.6 (_dl_catch_exception+0xe5) [7f5215970985] 6: /lib64/ld-linux-x86-64.so.2 (7f5215f90000+0x160cf) [7f5215fa60cf] 7: /lib/x86_64-linux-gnu/libc.so.6 (_dl_catch_exception+0x88) [7f5215970928] 8: /lib64/ld-linux-x86-64.so.2 (7f5215f90000+0x1560a) [7f5215fa560a] 9: /lib/x86_64-linux-gnu/libdl.so.2 (7f5215e15000+0x134c) [7f5215e1634c] 10: /lib/x86_64-linux-gnu/libc.so.6 (_dl_catch_exception+0x88) [7f5215970928] 11: /lib/x86_64-linux-gnu/libc.so.6 (_dl_catch_error+0x33) [7f52159709f3] 12: /lib/x86_64-linux-gnu/libdl.so.2 (7f5215e15000+0x1b59) [7f5215e16b59] 13: /lib/x86_64-linux-gnu/libdl.so.2 (dlopen+0x4a) [7f5215e163da] 14: build/app/dpdk-testpmd (55be17b79000+0x8013ee) [55be1837a3ee] 15: build/app/dpdk-testpmd (eal_plugins_init+0x14f) [55be1837a6d8] 16: build/app/dpdk-testpmd (rte_eal_init+0x1af) [55be1839ec21] 17: build/app/dpdk-testpmd (main+0xde) [55be17da108b] 18: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf3) [7f5215834083] 19: build/app/dpdk-testpmd (_start+0x2e) [55be17cef1fe] Aborted I have also checked that: I have IOMMU enabled: cat /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-5.15.0-83-generic root=UUID=3c080ff1-1c00-4b5c-aa00-2084f9e68794 ro i915.enable_psr=1 quiet splash intel_iommu=on vt.handoff=7 and other virtualization flags enabled (VT-x, VT-d), and the Secure Boot is disabled. Also the NIC works fine in normal circumstances (managed by the OS kernel). I am running Ubuntu 20.04.6 on a Dell Precision 3560 laptop (1 year old). I don't know whether this is a bug or I missed something, so I would appreciate any guidance. Thanks in advance Anton --000000000000f0f12c0604c6131e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
I have a problem while trying to manage my physica= l Ethernet interface from DPDK (latest version compiled from source).
I = have a:
NIC: 0000:00:1f.6 Ethernet controller:= Intel Corporation Ethernet Connection (13) I219-LM (rev 20)

= which belongs to the list of supported NICs in DPDK.

Als= o, I have bound my NICto vfio-pci, not the kernel:

dpdk-23.07$ usertools/dpdk-devbind.py --status
Network devices u= sing 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 (13) I219-LM 15fb' d= rv=3Dvfio-pci unused=3De1000e

I also enabled hugepages (2G).<= br>
when I enter "sudo build/app/dpdk-test= pmd -c7 -- -i" I get:
EAL: Detected= CPU lcores: 8
EAL: Detected NUMA nodes: 1
EAL: Detected static linka= ge of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL:= Selected IOVA mode 'VA'
EAL: VFIO support initialized
TELEME= TRY: No legacy callbacks, legacy socket not created
testpmd: No probed e= thernet devices
Interactive-mode selected
testpmd: create a new mbuf = pool <mb_pool_0>: n=3D163456, size=3D2176, socket=3D0
testpmd: pre= ferred mempool ops selected: ring_mp_mc
Done
testpmd>

When I enter "show port info all" in the testpmd CLI I get nothing (no ports).

When I start testpmd= with "-a 0000:00:1f.6" (the addr= ess of the ethernet NIC I want to manage from DPDK), The same happens (no p= orts).

If I try to start testpmd with "-d build/drivers/librte_net_e1000.so" (the shared libra= ry of the driver of that device), I get a crash:

dpdk-23.07$ sudo build/app/dpdk-testpmd -c7 -a 0000:00:1f.6 = -d build/drivers/librte_net_e1000.so -- -i
EAL: Detected CPU lcores: 8EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EA= L: UIO_RESOURCE_LIST tailq is already registered PANIC in tailqinitfn_rte_u= io_tailq(): Cannot initialize tailq: UIO_RESOURCE_LIST
0: build/app/dpdk= -testpmd (rte_dump_stack+0x32) [55be1839afe2]
1: build/app/dpdk-testpmd = (__rte_panic+0xf1) [55be18369e68]
2: /home/anton/tdr/dpdk-23.07/build/dr= ivers/librte_bus_pci.so.23 (7f52153f6000+0x5d86) [7f52153fbd86]
3: /lib= 64/ld-linux-x86-64.so.2 (7f5215f90000+0x11b9a) [7f5215fa1b9a]
4: /lib64= /ld-linux-x86-64.so.2 (7f5215f90000+0x11ca1) [7f5215fa1ca1]
5: /lib/x86= _64-linux-gnu/libc.so.6 (_dl_catch_exception+0xe5) [7f5215970985]
6: /l= ib64/ld-linux-x86-64.so.2 (7f5215f90000+0x160cf) [7f5215fa60cf]
7: /lib= /x86_64-linux-gnu/libc.so.6 (_dl_catch_exception+0x88) [7f5215970928]
8= : /lib64/ld-linux-x86-64.so.2 (7f5215f90000+0x1560a) [7f5215fa560a]
9: = /lib/x86_64-linux-gnu/libdl.so.2 (7f5215e15000+0x134c) [7f5215e1634c]
1= 0: /lib/x86_64-linux-gnu/libc.so.6 (_dl_catch_exception+0x88) [7f5215970928= ]
11: /lib/x86_64-linux-gnu/libc.so.6 (_dl_catch_error+0x33) [7f5215970= 9f3]
12: /lib/x86_64-linux-gnu/libdl.so.2 (7f5215e15000+0x1b59) [7f5215= e16b59]
13: /lib/x86_64-linux-gnu/libdl.so.2 (dlopen+0x4a) [7f5215e163d= a]
14: build/app/dpdk-testpmd (55be17b79000+0x8013ee) [55be1837a3ee] 15: build/app/dpdk-testpmd (eal_plugins_init+0x14f) [55be1837a6d8]
16= : build/app/dpdk-testpmd (rte_eal_init+0x1af) [55be1839ec21]
17: build/= app/dpdk-testpmd (main+0xde) [55be17da108b]
18: /lib/x86_64-linux-gnu/l= ibc.so.6 (__libc_start_main+0xf3) [7f5215834083]
19: build/app/dpdk-tes= tpmd (_start+0x2e) [55be17cef1fe]
Aborted

I have also checked that:
I have IOMMU enabled:
cat /proc/cmdline
BOOT_IMAGE=3D/boot/vmlinuz-5.15.0-83-generic root=3DUUID=3D3c08= 0ff1-1c00-4b5c-aa00-2084f9e68794 ro i915.enable_psr=3D1 quiet splash intel_= iommu=3Don vt.handoff=3D7
and other virtualization flags enabled = (VT-x, VT-d), and the=C2=A0Secure Boot is disabled.
Also the NIC works f= ine in normal circumstances (managed by the OS kernel).

I am running Ubuntu 20.04.6 on a Dell Precision 3560 laptop (1 year o= ld).

I don't know whether this is a bug or I missed something, s= o I would appreciate any guidance. Thanks in advance

Anton
--000000000000f0f12c0604c6131e--