From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F1202A04F3 for ; Fri, 3 Jan 2020 16:08:21 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3D6AE1D447; Fri, 3 Jan 2020 16:08:21 +0100 (CET) Received: from moint.1and1.com (moint.1and1.com [212.227.15.7]) by dpdk.org (Postfix) with ESMTP id CB2841D444 for ; Fri, 3 Jan 2020 16:08:19 +0100 (CET) Received: from [10.96.4.13] (helo=KAPPEX004.united.domain) by mrint.1and1.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1inOYl-0002QP-KO for users@dpdk.org; Fri, 03 Jan 2020 16:08:19 +0100 Received: from KAPPEX004.united.domain (10.96.4.13) by KAPPEX004.united.domain (10.96.4.13) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 3 Jan 2020 16:08:19 +0100 Received: from KAPPEX004.united.domain ([fe80::cd77:480a:6c0c:9780]) by KAPPEX004.united.domain ([fe80::cd77:480a:6c0c:9780%12]) with mapi id 15.00.1395.000; Fri, 3 Jan 2020 16:08:19 +0100 From: Sebastian Bernauer To: "users@dpdk.org" Thread-Topic: [dpdk-users] Can't start DPDK applications on Mellanox ConnectX-4 card Thread-Index: AQHVwiIWgPqbdrmmEkC2Z2Jx4RdJ+6fZCuMA Date: Fri, 3 Jan 2020 15:08:19 +0000 Message-ID: <1578064099257.15400@1und1.de> References: <1578048053580.44338@1und1.de> In-Reply-To: <1578048053580.44338@1und1.de> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-imapappendstamp: KAPPEX004.united.domain (15.00.1395.000) x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.19.76.220] Content-Type: text/plain; charset="iso-8859-1" Content-ID: <7B11D7F8596C8047818FE26BB9580F98@united.domain> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: ClamAV@mvs-ha-bs Subject: [dpdk-users] Can't start DPDK applications on Mellanox ConnectX-4 card X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Sorry for the duplicate post.=0A= =0A= I found the line that returns the error.=0A= =0A= In drivers/net/mlx5/mlx5_flow_dv.c, starting at line 6358:=0A= -------------------------------=0A= cache_matcher->matcher_object =3D=0A= =A0=A0=A0 =A0=A0=A0 mlx5_glue->dv_create_flow_matcher(sh->ctx, &dv_attr, t= bl->obj);=0A= =A0=A0=A0 if (!cache_matcher->matcher_object) {=0A= =A0=A0=A0 =A0=A0=A0 rte_free(cache_matcher);=0A= #ifdef HAVE_MLX5DV_DR=0A= =A0=A0=A0 =A0=A0=A0 flow_dv_tbl_resource_release(dev, tbl);=0A= #endif=0A= =A0=A0=A0 =A0=A0=A0 return rte_flow_error_set(error, ENOMEM,=0A= =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 RTE_FLOW_ERROR_TYPE_= UNSPECIFIED,=0A= =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 NULL, "cannot create= matcher");=0A= =A0=A0=A0 }=0A= -------------------------------=0A= mlx5_glue->dv_create_flow_matcher(...) returns (void *) 0x0.=0A= Because of this, the if-statement is fulfilled and returns the error.=0A= =0A= Do you have an idea why the matcher can't be created?=0A= =0A= Thanks!=0A= Sebastian=0A= =0A= On 03.01.20 11:40, Sebastian Bernauer wrote:=0A= > Hello DPDK team,=0A= >=0A= > I have 2 Mellanox ConnectX-4 MCX415A-CCAT cards connected with DAC (firmw= are 12.26.4012). Im using debian stretch and DPDK 19.11.=0A= > If i try to start DPDK-applications i get the following error:=0A= >=0A= > sbernauer@he37:~$ lspci | grep Mellanox=0A= > 04:00.0 Ethernet controller: Mellanox Technologies MT27700 Family [Connec= tX-4]=0A= > 42:00.0 Network controller: Mellanox Technologies MT27500 Family [Connect= X-3]=0A= >=0A= > sbernauer@he37:~$ sudo dpdk-19.11/examples/l2fwd/build/app/l2fwd -w 04:00= .0 -- -p 0x1=0A= > EAL: Detected 40 lcore(s)=0A= > EAL: Detected 2 NUMA nodes=0A= > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket=0A= > EAL: Selected IOVA mode 'PA'=0A= > EAL: No available hugepages reported in hugepages-1048576kB=0A= > EAL: Probing VFIO support...=0A= > EAL: PCI device 0000:04:00.0 on NUMA socket 0=0A= > EAL: probe driver: 15b3:1013 net_mlx5=0A= > MAC updating enabled=0A= > Notice: odd number of ports in portmask.=0A= > Lcore 0: RX port 0=0A= > Initializing port 0... EAL: Error - exiting with code: 1=0A= > Cause: rte_eth_dev_start:err=3D-12, port=3D0=0A= >=0A= > I can't find a description of the error code -12, can you please give my = a hint whats my problem?=0A= >=0A= > Thanks a lot!=0A= > Sebastian=0A=