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 0B4BCA04F1 for ; Sun, 5 Jan 2020 08:09:26 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 469451C1EF; Sun, 5 Jan 2020 08:09:25 +0100 (CET) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150078.outbound.protection.outlook.com [40.107.15.78]) by dpdk.org (Postfix) with ESMTP id 7EC4D1C1C2 for ; Sun, 5 Jan 2020 08:09:24 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dh7Rq/PevSJXruZtNF1VfTMSiNHz5qlmi81nQ2Y5fBUJUz6f9dghW8oZJzZaX9I3MGRJCpI/3Kv+UYS7xd2VVwpkCD4dZYvftvh2hkLoe14cNTBzgq/YFlAswOshVKuigI2zGpdH6hJS+9jUpJSD2hj/GQEUmEUI2O4XsaNUYZwrRu6B16cQGw+px5V+dqUcMOPfTqEaSNBdTK9gBQlitGpJYrmRjadftPBJOQHaEKu5yOfVI7fY4Uq1zJiFkHxx1hBUXGE2wi6SZbs6r6xVPTyVTrl+hybvyVGhxr+AUxJ9NkWj++Pcaq8ybiLD404Dih7hzCozatFnVzeL9LnzgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6tEe4rt8tCJ96Vv/5gNecqWJaHrg2twQr2edSnv3J/A=; b=CRElRNrcKMfjpLMvH8LBqcfIiYyL98agT6P7kW9/+Ke9pzsSXgNsoYMqf0eBmsljg5UbQHnCqCavarJPq7LYtqQdvxbBEkS+pTzFPvk1LCEfMJkTebnpC5TxF7FSaPWOr7RAnBPvjucIwPCAdaZLKvP8lr2auVWuYVmwhg7EP1cTeEEpsRG61UVCGZiHSoy8ucbvrehRPEswTld2AjnqOJ4P3EGUh6AoiWAbdMM7aXnuOxtMHK+psrJrlQmRUjxcrfSgNo1s8mgK1yIkknOPh7V0kZrSS37uzPbYEmime6m7BqOJVR50aNZocX67ixrFSLg9dXth49DSot+vD7rE3Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6tEe4rt8tCJ96Vv/5gNecqWJaHrg2twQr2edSnv3J/A=; b=MOsD6gtgdTZ73eZk3YMJjGTuilj+aaDlpaq3HMemBictvbYIaiDWnPrUETyP/Y72j7gA/NCv2ePourS65PjhQ+3VbqjPNUoCnvm1lL+11S2N85P92R2ezZzUeQvi7ZJco+IyVACYzY9GWYUDZtQjH147BS66s7s/TMtgGrKD8kw= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.190.15) by AM4PR05MB3396.eurprd05.prod.outlook.com (10.171.187.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.13; Sun, 5 Jan 2020 07:09:22 +0000 Received: from AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::5114:421:f4a9:5ca8]) by AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::5114:421:f4a9:5ca8%6]) with mapi id 15.20.2602.015; Sun, 5 Jan 2020 07:09:22 +0000 From: Ori Kam To: Sebastian Bernauer , "users@dpdk.org" CC: Asaf Penso , Slava Ovsiienko Thread-Topic: [dpdk-users] Can't start DPDK applications on Mellanox ConnectX-4 card Thread-Index: AQHVwkemjyhh9x22cUuYYnJd9Ck3uKfbp7hg Date: Sun, 5 Jan 2020 07:09:22 +0000 Message-ID: References: <1578048053580.44338@1und1.de> <1578064099257.15400@1und1.de> In-Reply-To: <1578064099257.15400@1und1.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 4315897b-2c74-4d67-f86d-08d791ae30f0 x-ms-traffictypediagnostic: AM4PR05MB3396:|AM4PR05MB3396: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 027367F73D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(39850400004)(396003)(346002)(136003)(376002)(13464003)(189003)(199004)(64756008)(55016002)(53546011)(6506007)(7696005)(66446008)(26005)(186003)(76116006)(5660300002)(66476007)(86362001)(66946007)(52536014)(66556008)(71200400001)(8936002)(33656002)(110136005)(4326008)(107886003)(478600001)(316002)(54906003)(81166006)(8676002)(81156014)(2906002)(9686003)(36394004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3396; H:AM4PR05MB3425.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dl+p9PxzIxGCy0AuX4vd13N66cOh7ITaMXiRnM4jUxRfmiSaEBb4cbzXu+iVYvMHrOUGFj1LLJnaiLxQC6qcLh9/dbKl0Y3UwY/UcK06RuoR8/digWF8kgX1UK/hdNus5YIWqaZ7mmLmQGqASjA1VAACiuB61RtfFQdA34+lDoLnsWz5lyR6OfEQwrRlrR/jvw4g5+6mxYa5Y1ugvjPB24rDQRt6x7lUVOTy55sfm6V2lCG/r5uPJCr0k5gXuVe4W0dHdkJfmxAZ3cH1KJJZ8/vuJU3HdYlIyPrhkL6fWszWmPMbq5AJ7sK3IbmwnZxvwzp+crFXBQ9crWdgKjElJQz//5FNByPB6+JperpF3b57b0CiczHR4C5KbJiDkw1rAnVB7mWxqK6DhEpBgqXOQPO3wwSThHe2f8udlHyRVcmO7q7Gf25IVl31CaNOxkKcWqS0bfMnwTc57mntIR9GuXxBvXAXUW+SGslxa3lAGdXt6ieej+r41aeA3IpddMVecgswVaVK7tIY8kiA+R5ncA== Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4315897b-2c74-4d67-f86d-08d791ae30f0 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jan 2020 07:09:22.4991 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: xys3oWL2ANTi6beFskKvhiVJUmHKfrqcWK3qbqg7y+xs+d+rIEqpKTYGoQW8Ll4POt/OPT3/5rBfU0fPnMV7RQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3396 Subject: Re: [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" Hi Sebastian, My Name is Ori and I'm part of Mellanox DPDK team. I'm sorry to hear you encountered some issues.=20 I will try to help you. 2 questions: 1. Can you tell me if the HAVE_MLX5DV_DR is defined?=20 2. can you please try adding device parameter ,dv_flow_en=3D0 and let me kn= ow if it works? Thanks, Ori Kam > -----Original Message----- > From: users On Behalf Of Sebastian Bernauer > Sent: Friday, January 3, 2020 5:08 PM > To: users@dpdk.org > Subject: [dpdk-users] Can't start DPDK applications on Mellanox ConnectX-= 4 > card >=20 > Sorry for the duplicate post. >=20 > I found the line that returns the error. >=20 > In drivers/net/mlx5/mlx5_flow_dv.c, starting at line 6358: > ------------------------------- > cache_matcher->matcher_object =3D > =A0=A0=A0 =A0=A0=A0 mlx5_glue->dv_create_flow_matcher(sh->ctx, &dv_attr,= tbl->obj); > =A0=A0=A0 if (!cache_matcher->matcher_object) { > =A0=A0=A0 =A0=A0=A0 rte_free(cache_matcher); > #ifdef HAVE_MLX5DV_DR > =A0=A0=A0 =A0=A0=A0 flow_dv_tbl_resource_release(dev, tbl); > #endif > =A0=A0=A0 =A0=A0=A0 return rte_flow_error_set(error, ENOMEM, > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 RTE_FLOW_ERROR_TYP= E_UNSPECIFIED, > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 NULL, "cannot crea= te matcher"); > =A0=A0=A0 } > ------------------------------- > mlx5_glue->dv_create_flow_matcher(...) returns (void *) 0x0. > Because of this, the if-statement is fulfilled and returns the error. >=20 > Do you have an idea why the matcher can't be created? >=20 > Thanks! > Sebastian >=20 > On 03.01.20 11:40, Sebastian Bernauer wrote: > > Hello DPDK team, > > > > I have 2 Mellanox ConnectX-4 MCX415A-CCAT cards connected with DAC > (firmware 12.26.4012). Im using debian stretch and DPDK 19.11. > > If i try to start DPDK-applications i get the following error: > > > > sbernauer@he37:~$ lspci | grep Mellanox > > 04:00.0 Ethernet controller: Mellanox Technologies MT27700 Family > [ConnectX-4] > > 42:00.0 Network controller: Mellanox Technologies MT27500 Family > [ConnectX-3] > > > > sbernauer@he37:~$ sudo dpdk-19.11/examples/l2fwd/build/app/l2fwd -w > 04:00.0 -- -p 0x1 > > EAL: Detected 40 lcore(s) > > EAL: Detected 2 NUMA nodes > > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > > EAL: Selected IOVA mode 'PA' > > EAL: No available hugepages reported in hugepages-1048576kB > > EAL: Probing VFIO support... > > EAL: PCI device 0000:04:00.0 on NUMA socket 0 > > EAL: probe driver: 15b3:1013 net_mlx5 > > MAC updating enabled > > Notice: odd number of ports in portmask. > > Lcore 0: RX port 0 > > Initializing port 0... EAL: Error - exiting with code: 1 > > Cause: rte_eth_dev_start:err=3D-12, port=3D0 > > > > I can't find a description of the error code -12, can you please give m= y a hint > whats my problem? > > > > Thanks a lot! > > Sebastian