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 DEB75A0C45; Thu, 28 Oct 2021 07:48:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 78BDD4067B; Thu, 28 Oct 2021 07:48:14 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 06A3C4003F for ; Thu, 28 Oct 2021 07:48:14 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id C54BEA0C47; Thu, 28 Oct 2021 07:48:13 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 28 Oct 2021 05:48:13 +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 845] vf testpmd core dumped after executing "device_del dev1" in qemu 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=3D845 Bug ID: 845 Summary: vf testpmd core dumped after executing "device_del dev1" in qemu 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: --- DPDK commit: b66412f24f17fcba5a248888bf4b3c1f5d6880de OS: Ubuntu20.04.3=C2=A0=20 Compiler: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 Hardware platform: Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz. Repoduced steps: # 1. bind nic to vfio-pci ./usertools/dpdk-devbind.py -b vfio-pci 0000:81:00.0 # 2. launch qemu taskset -c 0-7 qemu-system-x86_64 -enable-kvm -pidfile /tmp/.vm0.pid -m 10240 -cpu host -smp 8 -name vm0=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 -monitor unix:/tmp/vm0_monitor.sock,server,nowait -chardev socket,path=3D/tmp/vm0_qga0.sock,server,nowait,id=3Dvm0_qga0 = -device virtio-serial -device virtserialport,chardev=3Dvm0_qga0,name=3Dorg.qemu.guest_agent.0=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 -device e1000,netdev=3Dnttsip1 -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:10.240.183.247:6000-:22 -mon= itor stdio -drive file=3D/home/image/test_vfio.img = -vnc :5 -device vfio-pci,host=3D0000:81:00.0,id=3Ddev1 # 3. ssh vm and execute command in vm ssh 10.240.183.247 -p 6000 echo 0 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages echo 1024 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages modprobe vfio modprobe vfio-pci echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode usertools/dpdk-devbind.py --force --bind=3Dvfio-pci 0000:00:05.0 # 4. vf launch testpmd x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 0,1,2,3,4,5,6,7 -n 1 -a 0000:00:05.0 --file-prefix=3Ddpdk_10860_20211027111447 -- -i --hot-plug # 5. execute "device_del dev1" in the qemu window=20 device_del dev1 # 6. check output in tespmd window=20 Output: # EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. EAL: uevent socket connection is broken. The testpmd window hangs Expected Result: # Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 Invalid port_id=3D0 EAL: Cannot find device (0000:00:05.0) on bus (pci) The tespmd window can be used normally. Version the regression was introduced:=C2=A0 commit c2bd9367e18f5b00c1a3c5eb281a512ef52c5dfd Author: Harman Kalra Date: Sat Oct 23 02:19:32 2021 +0530 lib: remove direct access to interrupt handle Removing direct access to interrupt handle structure fields, rather use respective get set APIs for the same. Making changes to all the libraries access the interrupt handle fields. Signed-off-by: Harman Kalra Signed-off-by: David Marchand Tested-by: Raslan Darawsheh lib/bbdev/rte_bbdev.c | 4 ++-- lib/eal/linux/eal_dev.c | 57 +++++++++++++++++++++++++++++-----------------= --- lib/ethdev/rte_ethdev.c | 14 ++++++------ 3 files changed, 43 insertions, 32 deletions --=20 You are receiving this mail because: You are the assignee for the bug.=