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 90A48A0C41; Wed, 23 Jun 2021 14:44:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 286854003F; Wed, 23 Jun 2021 14:44:56 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 3DE414003E for ; Wed, 23 Jun 2021 14:44:55 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 09270A0C42; Wed, 23 Jun 2021 14:44:54 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Wed, 23 Jun 2021 12:44:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmitry.kozliuk@gmail.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 746] net/mlx5: segfault on MPRQ pool exhaustion 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=3D746 Bug ID: 746 Summary: net/mlx5: segfault on MPRQ pool exhaustion Product: DPDK Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: dmitry.kozliuk@gmail.com Target Milestone: --- When MPRQ is enabled and packets are delayed in the application, like it happens when doing IPv4 reassembly, a segfault occurs in mlx5 PMD: (gdb) bt #0 0x000055b34ea047c6 in _mm256_storeu_si256 (__A=3D..., __P=3D0x80) at /usr/lib/gcc/x86_64-linux-gnu/10/include/avxintrin.h:928 #1 rte_mov32 (src=3D0x2299c9140 "", dst=3D0x80 ) at ../src/lib/librte_eal/x86/include/rte_memcpy.h:320 #2 rte_memcpy_aligned (n=3D60, src=3D0x2299c9140, dst=3D0x80) at ../src/lib/librte_eal/x86/include/rte_memcpy.h:847 #3 rte_memcpy (n=3D60, src=3D0x2299c9140, dst=3D0x80) at ../src/lib/librte_eal/x86/include/rte_memcpy.h:872 #4 mprq_buf_to_pkt (strd_cnt=3D1, strd_idx=3D0, buf=3D0x2299c8a00, len=3D6= 0, pkt=3D0x18345f0c0, rxq=3D0x18345ef40) at ../src/drivers/net/mlx5/mlx5_rxtx.= h:820 #5 rxq_copy_mprq_mbuf_v (rxq=3D0x18345ef40, pkts=3D0x7f76e0ff6d18, pkts_n= =3D5) at ../src/drivers/net/mlx5/mlx5_rxtx_vec.c:233 #6 0x000055b34ea0c543 in rxq_burst_mprq_v (rxq=3D0x18345ef40, pkts=3D0x7f76e0ff6d18, pkts_n=3D46, err=3D0x7f76e0ff6a28, no_cq=3D0x7f76e0f= f6a27) at ../src/drivers/net/mlx5/mlx5_rxtx_vec.c:456 #7 0x000055b34ea0c82e in mlx5_rx_burst_mprq_vec (dpdk_rxq=3D0x18345ef40, pkts=3D0x7f76e0ff6a88, pkts_n=3D128) at ../src/drivers/net/mlx5/mlx5_rxtx_v= ec.c:528 #8 0x000055b34d642e83 in rte_eth_rx_burst (nb_pkts=3D128, rx_pkts=3D0x7f76e0ff6a88, queue_id=3D, port_id=3D) at /opt/dpdk/include/rte_ethdev.h:4889 (application stack follows) No crash dumps are created by mlx5 PMD. Unfortunately, it is not reproducible with public tools, like testpmd, but = more info can be provided if need be. HW: 2 x MT28800 Family [ConnectX-5 Ex] 1019 (2 x 2 x 100G) FW: 16.30.1004 OFED: MLNX_OFED_LINUX-5.3-1.0.0.1 DPDK: 21.02 EAL options: --in-memory --no-telemetry -a 21:00.0,mprq_en=3D1,dv_flow_en= =3D0 -a 21:00.1,mprq_en=3D1,dv_flow_en=3D0 -a c1:00.0,mprq_en=3D1,dv_flow_en=3D0 -a c1:00.1,mprq_en=3D1,dv_flow_en=3D0 Conditions depend on the number of factors as shown below. CPU: AMD EPYC 7502 (32 cores): Distro: Ubuntu 20.04.2 LTS Kernel: 5.4.0-66-lowlatency UCTX_EN=3D0: mprq_en=3D0,dv_flow_en=3D0 - ok mprq_en=3D0,dv_flow_en=3D1 - ok mprq_en=3D1,dv_flow_en=3D0 - fail mprq_en=3D1,dv_flow_en=3D1 - fail UCTX_EN=3D1: mprq_en=3D0,dv_flow_en=3D0 - ok mprq_en=3D0,dv_flow_en=3D1 - ok mprq_en=3D1,dv_flow_en=3D0 - fail mprq_en=3D1,dv_flow_en=3D1 - ok CPU: Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz (112 cores, HT) Distro: Debian 10.8 Kernel: 4.19.0-13 UCTX_EN=3D0: mprq_en=3D0,dv_flow_en=3D0 - ok mprq_en=3D0,dv_flow_en=3D1 - ok mprq_en=3D1,dv_flow_en=3D0 - fail mprq_en=3D1,dv_flow_en=3D1 - fail UCTX_EN=3D1: mprq_en=3D0,dv_flow_en=3D0 - ok mprq_en=3D0,dv_flow_en=3D1 - ok mprq_en=3D1,dv_flow_en=3D0 - ok mprq_en=3D1,dv_flow_en=3D1 - ok --=20 You are receiving this mail because: You are the assignee for the bug.=