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 8FFBAA0A0D; Mon, 1 Feb 2021 04:09:25 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 24C2E16066D; Mon, 1 Feb 2021 04:09:25 +0100 (CET) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 230DE40693 for ; Mon, 1 Feb 2021 04:09:24 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id B8659A0A0E; Mon, 1 Feb 2021 04:09:23 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Mon, 01 Feb 2021 03:09:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: vhost/virtio X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: weix.ling@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 631] [dpdk-21.02] vdev_primary_secondary/Virtio_primary_and_secondary_process: start dpdk-symmetric_mp occur core dumped in vm. 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=3D631 Bug ID: 631 Summary: [dpdk-21.02] vdev_primary_secondary/Virtio_primary_and_secondary_pr ocess: start dpdk-symmetric_mp occur core dumped in vm. Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: vhost/virtio Assignee: dev@dpdk.org Reporter: weix.ling@intel.com Target Milestone: --- DPDK version: Use make showversion or for a non-released version: git remot= e -v && git show-ref --heads 21.02.0-rc2:3021257a8111d204dc7741bd67a2502efffb6842 Other software versions: QEMU-3.0.0 OS: Ubuntu 20.04.1 LTS/5.10.0-051000-generic Compiler: gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2) Hardware platform: Intel(R) Xeon(R) Platinum 8280M CPU @ 2.70GHz NIC hardware: fortville_spirit. NIC driver: 5.10.0-051000-generic NIC firmware: 8.00 0x80008b8a 1.2766.0 Test Setup Steps to reproduce List the steps to reproduce the issue. 1.Bind port to vfio-pci dpdk-devbind.py --force --bind=3Dvfio-pci 0000:af:00.0 0000:af:00.1 2.Start testpmd on vhost x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2,3,4,5,6,7,8,9,10,11,12 = -n 4 -a 0000:af:00.0 --file-prefix=3Dvhost_86314_20210131132233 --vdev 'net_vhost0,iface=3D/root/dpdk/vhost-net0,queues=3D2,client=3D1' --vdev 'net_vhost1,iface=3D/root/dpdk/vhost-net1,queues=3D2,client=3D1' -- -i --nb= -cores=3D4 --rxq=3D2 --txq=3D2 --txd=3D1024 --rxd=3D1024 set fwd txonly start 3.Start vm taskset -c 46,47,48,49,50,51,52,53 /home/QEMU/qemu-4.2.1/bin/qemu-system-x8= 6_64 -name vm0 -enable-kvm -pidfile /tmp/.vm0.pid -daemonize -monitor unix:/tmp/vm0_monitor.sock,server,nowait -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:10.240.183.220:6000-:22 -device e1000,netdev=3Dnttsip1 -chardev socket,id=3Dchar0,path=3D/root/dpdk/vhost-net0,server -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce,queues=3D2 -device virtio-net-pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,mq= =3Don,vectors=3D6 -chardev socket,id=3Dchar1,path=3D/root/dpdk/vhost-net1,server -netdev type=3Dvhost-user,id=3Dnetdev1,chardev=3Dchar1,vhostforce,queues=3D2 -device virtio-net-pci,netdev=3Dnetdev1,mac=3D52:54:00:00:00:03,mrg_rxbuf=3Don,mq= =3Don,vectors=3D6 -cpu host -smp 8 -m 8192 -object memory-backend-file,id=3Dmem,size=3D8192M,mem-path=3D/mnt/huge,share=3Don -= numa node,memdev=3Dmem -mem-prealloc -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 -vn= c :4 -drive file=3D/home/image/ubuntu2004.img 4.Config vm and build dpdk in vm echo 0 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages echo 1024 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages umount `awk '/hugetlbfs/ { print $2 }' /proc/mounts` awk '/hugetlbfs/ { print $2 }' /proc/mounts mkdir -p /mnt/huge mount -t hugetlbfs nodev /mnt/huge cat /proc/mounts |grep hugetlbfs rmmod vfio_pci rmmod vfio_iommu_type1 rmmod vfio 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:04.0 0000:00:05= .0 rm -rf x86_64-native-linuxapp-gcc CC=3Dgcc meson -Denable_kmods=3DTrue -Dlibdir=3Dlib --default-library=3Dst= atic x86_64-native-linuxapp-gcc ninja -C x86_64-native-linuxapp-gcc -j 8 cp ./examples/multi_process/symmetric_mp/main.c . sed -i '/.offloads =3D DEV_RX_OFFLOAD_CHECKSUM,/d' ./examples/multi_process/symmetric_mp/main.c sed -i 's/ETH_MQ_RX_RSS,/ETH_MQ_RX_NONE,/g' ./examples/multi_process/symmetric_mp/main.c meson configure -Dexamples=3Dmulti_process/symmetric_mp x86_64-native-linuxapp-gcc ninja -C x86_64-native-linuxapp-gcc 5.Start dpdk-symmetric_mp in vm x86_64-native-linuxapp-gcc/examples/dpdk-symmetric_mp -l 0 -n 4 --proc-type=3Dauto -- -p 3 --num-procs=3D2 --proc-id=3D0 Show the output from the previous commands. root@vmubuntu2004:~/dpdk# x86_64-native-linuxapp-gcc/examples/dpdk-symmetri= c_mp -l 0 -n 4 --proc-type=3Dauto -- -p 3 --num-procs=3D2 --proc-id=3D0 EAL: Detected 8 lcore(s) EAL: Detected 1 NUMA nodes EAL: Auto-detected process type: PRIMARY EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: No available 1048576 kB hugepages reported EAL: Probing VFIO support... EAL: VFIO support initialized EAL: Invalid NUMA socket, default to 0 EAL: Invalid NUMA socket, default to 0 EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:04.0 (socket = 0) EAL: using IOMMU type 8 (No-IOMMU) EAL: Ignore mapping IO port bar(0) EAL: Invalid NUMA socket, default to 0 EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:05.0 (socket = 0) EAL: Ignore mapping IO port bar(0) Segmentation fault (core dumped) Expected Result Explain what is the expected result in text or as an example output: # Start dpdk-symmetric_mp in vm normally. Regression Is this issue a regression: (Y) Version the regression was introduced: Specify git id if known. Bad commit: commit 512e27eeb7435780cfe6915e17dbf840e0f4df20 (HEAD) Author: Maxime Coquelin Date: Tue Jan 26 11:16:03 2021 +0100 net/virtio: move PCI specific dev init to PCI ethdev init This patch moves the PCI specific initialization from eth_virtio_dev_init() to eth_virtio_pci_init(). Signed-off-by: Maxime Coquelin Reviewed-by: Chenbo Xia Reviewed-by: David Marchand --=20 You are receiving this mail because: You are the assignee for the bug.=