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 D9B82A0547; Fri, 29 Oct 2021 08:50:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4CC9D40688; Fri, 29 Oct 2021 08:50:29 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id D5B6740395 for ; Fri, 29 Oct 2021 08:50:27 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 9CF4CA0C41; Fri, 29 Oct 2021 08:50:27 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Fri, 29 Oct 2021 06:50:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: testpmd X-Bugzilla-Version: 21.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yanx.xia@intel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 865] [dpdk-21.11]launch testpmd with "--vfio-intr=legacy" appears core dumped 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 Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D865 Bug ID: 865 Summary: [dpdk-21.11]launch testpmd with "--vfio-intr=3Dlegacy" appears core dumped Product: DPDK Version: 21.11 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: testpmd Assignee: dev@dpdk.org Reporter: yanx.xia@intel.com Target Milestone: --- Environment: OS: Ubuntu21.10 kernel driver: 5.13.0-19-generic Compiler: gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 Hardware platform: Intel(R) Xeon(R) Platinum 8280M CPU @ 2.70GHz NIC hardware: fortpark_BASE-T Steps to reproduce # 1. bind nic to vfio-pci usertools/dpdk-devbind.py --force --bind=3Dvfio-pci 0000:3d:00.0 0000:3d:00= .1 # 2. bbuild app and check it meson configure -Dexamples=3Dlink_status_interrupt x86_64-native-linuxapp-c= lang ninja -C x86_64-native-linuxapp-clang ls x86_64-native-linuxapp-clang/examples/dpdk-link_status_interrupt # 3. launch testpmd x86_64-native-linuxapp-clang/examples/dpdk-link_status_interrupt -l 1,2,3= ,4 -n 4 --file-prefix=3Ddpdk_29738_20211027174729 --vfio-intr=3Dlegacy -- = -p 0x3 Show the output from the previous commands: x86_64-native-linuxapp-clang/examples/dpdk-link_status_interrupt -l 1,2,3= ,4 -n 4 --file-prefix=3Ddpdk_29738_20211027174729 --vfio-intr=3Dlegacy -- = -p 0x3 EAL: Detected CPU lcores: 112 EAL: Detected NUMA nodes: 2 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/dpdk_29738_20211027174729/mp_socket EAL: Selected IOVA mode 'VA' EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size EAL: VFIO support initialized EAL: Using IOMMU type 1 (Type 1) EAL: Error setting up interrupts! EAL: 0000:3d:00.0 setup device failed EAL: Requested device 0000:3d:00.0 cannot be used EAL: 0000:3d:00.1 failed to select IOMMU type EAL: Requested device 0000:3d:00.1 cannot be used PANIC in main(): No Ethernet port - bye 6: [x86_64-native-linuxapp-clang/examples/dpdk-link_status_interrupt(_start+0x= 25) [0x1107fd5]] 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x7d) [0x7f469af4a07d= ]] 4: [/lib/x86_64-linux-gnu/libc.so.6(+0x2dfd0) [0x7f469af49fd0]] 3: [x86_64-native-linuxapp-clang/examples/dpdk-link_status_interrupt(main+0x9d= 8) [0x1108a78]] 2: [x86_64-native-linuxapp-clang/examples/dpdk-link_status_interrupt(__rte_pan= ic+0xbb) [0x1293d7b]] 1: [x86_64-native-linuxapp-clang/examples/dpdk-link_status_interrupt(rte_dump_= stack+0x20) [0x12ba500]] Aborted (core dumped) Expected Result: x86_64-native-linuxapp-clang/examples/dpdk-link_status_interrupt -l 1,2,3= ,4 -n 4 --file-prefix=3Ddpdk_29738_20211027174729 --vfio-intr=3Dlegacy -- = -p 0x3 EAL: Detected CPU lcores: 112 EAL: Detected NUMA nodes: 2 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/dpdk_29738_20211027174729/mp_socket EAL: Selected IOVA mode 'VA' EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found for that size EAL: VFIO support initialized EAL: Using IOMMU type 1 (Type 1) EAL: Probe PCI driver: net_i40e (8086:37d2) device: 0000:3d:00.0 (socket 0) EAL: Error enabling INTx interrupts for fd 31 EAL: Probe PCI driver: net_i40e (8086:37d2) device: 0000:3d:00.1 (socket 0) EAL: Error enabling INTx interrupts for fd 35 Lcore 1: RX port 0 Lcore 2: RX port 1 Initializing port 0... EAL: Error masking INTx interrupts for fd 31 done: Port 0, MAC address: A4:BF:01:6A:68:E1Initializing port 1... EAL: Error mas= king INTx interrupts for fd 35 done: Port 1, MAC address: A4:BF:01:6A:68:E2 Checking link status...................................................In registered callback... Event type: LSC interrupt Port 0 Link up at 10 Gbps FDX Autoneg....In registered callback... Event type: LSC interrupt Port 1 Link up at 10 Gbps FDX Autonegdone LSI: entering main loop on lcore 2 LSI: -- lcoreid=3D2 portid=3D1 LSI: lcore 4 has nothing to do LSI: lcore 3 has nothing to do LSI: entering main loop on lcore 1 LSI: -- lcoreid=3D1 portid=3D0 Port 0 Link up at 10 Gbps FDX AutonegPort 1 Link up at 10 Gbps FDX AutonegP= ort statistics =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 Statistics for port 0 ------------------------------ Link status: Link up Link speed: 10 Gbps Link duplex: full-duplex Packets sent: 0 Packets received: 0 Packets dropped: 0 Statistics for port 1 ------------------------------ Link status: Link up Link speed: 10 Gbps Link duplex: full-duplex Packets sent: 0 Packets received: 0 Packets dropped: 0 Aggregate statistics =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 Total packets sent: 0 Total packets received: 0 Total packets dropped: 0 =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=3D=3D=3D=3D=3D=3D= =3D=3D Version the regression was introduced:=20 commit 8cb5d08db940a6b26f5c5ac03b49bac25e9a7022 Author: Harman Kalra Date: Sat Oct 23 02:19:32 2021 +0530 interrupts: extend event list Dynamically allocating the efds and elist array of intr_handle structure, based on size provided by user. Eg size can be MSIX interrupts supported by a PCI device. Signed-off-by: Harman Kalra Signed-off-by: David Marchand Acked-by: Dmitry Kozlyuk Tested-by: Raslan Darawsheh --=20 You are receiving this mail because: You are the assignee for the bug.=