From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by dpdk.org (Postfix) with ESMTP id 2145F11F5 for ; Thu, 26 Feb 2015 15:18:38 +0100 (CET) Received: by wesx3 with SMTP id x3so11146344wes.6 for ; Thu, 26 Feb 2015 06:18:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to; bh=kgTMMNkX0WgOr2RRPCSvpXb1cTQ3I7BuNVGGGlUNYZQ=; b=PYC1JYu3NlPAEpLw/n8EXO87UOXlFszHK2yci/8lpX+HDULk9sMItQElwQMjFVPZLZ HEGRnJJjX+RvKd+uH2eCHZ4+y45TxUK+aZrWE061G3pGd9vSc+akMR5UMLo7XFUwtMpu SF8ol3wwJfsTwoZJdTLIl6mtQ9JSVNwAsb8bxg0N3ab+2ufKVJNpgO5vRhH6dZe0C59s Rk2xKabFLNBafK8MK+HDlO9YFjoAtMYPfvo34TuSI3wTFZPFABNL2et2kGD3SmIOy2yO WbNps+sareKtIV1Wm8XgRAV1e+cgH7IhKC0vgaqjf1Zz1KEos3776f1joBDRZULyhgPl KJ7g== X-Gm-Message-State: ALoCoQnxXZUMe6Z4mAh2NiliBs3JjQpuj30kPRgDm8ehwlSHs61i8o0RfkD/vmsdClfJwgnrpdTU X-Received: by 10.194.62.52 with SMTP id v20mr17227483wjr.137.1424960317860; Thu, 26 Feb 2015 06:18:37 -0800 (PST) Received: from 6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id m4sm3007199wik.20.2015.02.26.06.18.36 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 26 Feb 2015 06:18:36 -0800 (PST) Date: Thu, 26 Feb 2015 15:18:34 +0100 From: Adrien Mazarguil To: Gleb Natapov Message-ID: <20150226141834.GX23569@6wind.com> Mail-Followup-To: Gleb Natapov , Thomas Monjalon , dev@dpdk.org References: <1424492174-27072-1-git-send-email-adrien.mazarguil@6wind.com> <1424872326-17930-1-git-send-email-adrien.mazarguil@6wind.com> <20150226115137.GU3806@cloudius-systems.com> <7873324.ABPKluIWcB@xps13> <20150226134907.GV3806@cloudius-systems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150226134907.GV3806@cloudius-systems.com> Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 0/3] Mellanox ConnectX-3 PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 14:18:38 -0000 On Thu, Feb 26, 2015 at 03:49:07PM +0200, Gleb Natapov wrote: > On Thu, Feb 26, 2015 at 02:36:27PM +0100, Thomas Monjalon wrote: > > 2015-02-26 13:51, Gleb Natapov: > > > Did git pull today. After enabling mlnx pmd compilation fails with: > > > > > > dpdk/lib/librte_pmd_mlx4/mlx4.c: In function ‘mlx4_pci_devinit’: > > > dpdk/lib/librte_pmd_mlx4/mlx4.c:4636:14: error: too few arguments to function ‘rte_eth_dev_allocate’ > > > eth_dev = rte_eth_dev_allocate(name); > > > > Yes, thanks for reporting. > > I didn't test the disabled mlx4 after hotplug integration: > > dpdk.org/browse/dpdk/commit/?id=9f1653e7b7e1746e7c > > > > Clearly, I have to improve my sanity checks. > > Sorry for the inconvenience. > No problem, I fixed that locally, but now I see another issue. I have > several PMDs statically compiled in with my application and I expect > dpdk to choose correct one depending on available HW, but mlnx pmd does > not behave nicely, if its initialization fails it kills entire > application: > > EAL: PCI device 0000:03:00.0 on NUMA socket 0 > EAL: probe driver: 15b3:1003 librte_pmd_mlx4 > EAL: Error - exiting with code: 1 > Cause: Requested device 0000:03:00.0 cannot be used About this error, make sure you are using the kernel modules provided by the mlnx-ofed-kernel package from MOFED [1] as described in the documentation. In short, unload mlx4_core, mlx4_en, mlx4_ib and ib_uverbs, install this package, run depmod and load them again. Since they have similar names, the updated kernel modules should be found in a "extra" or "updates" subdirectory of /lib/modules and come first when queried by modinfo. [1] http://www.mellanox.com/page/products_dyn?product_family=26&mtag=linux_sw_drivers -- Adrien Mazarguil 6WIND