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 7034DA0503 for ; Fri, 20 May 2022 14:37:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 15D2940156; Fri, 20 May 2022 14:37:01 +0200 (CEST) Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) by mails.dpdk.org (Postfix) with ESMTP id A92B640151 for ; Fri, 20 May 2022 14:36:59 +0200 (CEST) Received: by mail-ot1-f47.google.com with SMTP id m6-20020a05683023a600b0060612720715so5417005ots.10 for ; Fri, 20 May 2022 05:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=D9fsSE5u9WZ6Vp0S2JVYm4mHdsf0wbiLjdOYNTRHM5s=; b=B5/wI4AO/MuaVn/8NAoZhL6LjXcy+VhRThwuYuKiY4ZrH/9aV2jJZ5iifsqLc+IGaM 5Rb9AypwJjZy/IJmhNKKcHzht4m8Frnx9qk/d7cpP+oZsYmLPYlOnPD7tggw/OIBSnTC HalWqFgBCanRFq2j3fu4Y2MZGTeEv4NY3MdMQblDV+dQhnI/EPpG9DzoEYHZKvYT0WXo PmN48eL/jcZ2GOlaL1YU2rVeVCsHKBdNHO0f8qpMi62iawe7PIlfTQ6Ti+JQhnuaApoR a/1GBgKk1CSKuG+IZKhaYTTU67OtooRUPhSIigJROQLE7i4Xp3T3ttq91hZwyGOtDKmD ak8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=D9fsSE5u9WZ6Vp0S2JVYm4mHdsf0wbiLjdOYNTRHM5s=; b=Dr/1kOvv7poI1QYAQdFTVoBM8D2UQGDgCgo4TR+WV4Wu3q9NsKjXA3NbvklA8dGZIj c48+SVZ4oHREmB3JgoRJERtashHKb777Ciw/ESgcvOGhvM1REOeFo/JKFz2s1voIZj2s pVPX3OkMYookZJNuhKWeb8jrek1zMwF3Gr2HLuL+0IGACXtrJT+yjOJ7R2nYwJZbGlHM vCvJvQHYwgshuWI6tocrnuQE4O1xph/I+9NhnrWplU2cwGpdPN1Cn03xVRtl9Z27Ym8v 4BFykM1Za8DNjgzGfuEdW27VpdbMgHWVrnMuogyauEoyoXwuv1YZQy9uYI1uVJK59XcN PwcQ== X-Gm-Message-State: AOAM532Wo0vH5YjQKCx3dPvW3Fa3CRapB0Qysad964YkkAM7PNvE//jK REDVNeRJNWcVYw2lzhbPisgD/Nc6JeWZ17EZ9yyWiCclA+/IFQ== X-Google-Smtp-Source: ABdhPJyKBnuxDiYJtdHhiBCOY2QUVkicN/Gxz3QGMOg201kZqPyXt+2Xn0/hZ/dKEwIMT+Vbf8KhaEzG6bdZpML7nhQ= X-Received: by 2002:a9d:b8a:0:b0:605:d870:e3b7 with SMTP id 10-20020a9d0b8a000000b00605d870e3b7mr3758371oth.61.1653050218662; Fri, 20 May 2022 05:36:58 -0700 (PDT) MIME-Version: 1.0 From: Antonio Di Bacco Date: Fri, 20 May 2022 14:36:47 +0200 Message-ID: Subject: DPDK:mlx5_common: No Verbs device matches PCI device To: users@dpdk.org Content-Type: multipart/alternative; boundary="0000000000001452d505df70bfd3" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --0000000000001452d505df70bfd3 Content-Type: text/plain; charset="UTF-8" Installed Mellanox ConnectX5 as below, created two VFs but when starting DPDK I see this error: DPDK:EAL: Probe PCI driver: mlx5_pci (15b3:1018) device: 0000:3b:00.3 (socket 0) DPDK:mlx5_common: No Verbs device matches PCI device 0000:3b:00.3, are kernel drivers loaded? DPDK:mlx5_common: Verbs device not found: 0000:3b:00.3 DPDK:mlx5_common: Failed to initialize device context. Drivers are loaded: user@metis:~$ lsmod | grep ml mlx5_ib 348160 0 ib_uverbs 155648 2 irdma,mlx5_ib ib_core 368640 3 irdma,ib_uverbs,mlx5_ib mlx5_core 1400832 1 mlx5_ib mlxfw 32768 1 mlx5_core psample 20480 1 mlx5_core tls 102400 1 mlx5_core pci_hyperv_intf 16384 1 mlx5_core and this is installation procedure. sudo ./MLNX_OFED_LINUX-5.6-1.0.3.3-ubuntu22.04-x86_64/mlnxofedinstall --dpdk --upstream-libs ------------------------------------ Installing ofed-scripts-5.6... Installing mstflint-4.16.1... Installing mlnx-tools-5.2.0... Installing mlnx-ofed-kernel-utils-5.6... Installing mlnx-ofed-kernel-dkms-5.6... Installing rdma-core-56mlnx40... Installing libibverbs1-56mlnx40... Installing ibverbs-utils-56mlnx40... Installing ibverbs-providers-56mlnx40... Installing libibverbs-dev-56mlnx40... Installing librdmacm1-56mlnx40... Installing rdmacm-utils-56mlnx40... Installing librdmacm-dev-56mlnx40... Installing libibumad3-56mlnx40... Installing ibacm-56mlnx40... Installing python3-pyverbs-56mlnx40... Selecting previously unselected package mlnx-fw-updater. (Reading database ... 208346 files and directories currently installed.) Preparing to unpack .../mlnx-fw-updater_5.6-1.0.3.3_amd64.deb ... Unpacking mlnx-fw-updater (5.6-1.0.3.3) ... Setting up mlnx-fw-updater (5.6-1.0.3.3) ... Added 'RUN_FW_UPDATER_ONBOOT=no to /etc/infiniband/openib.conf Initializing... Attempting to perform Firmware update... Querying Mellanox devices firmware ... Querying Mellanox devices firmware ... Device #1: ---------- Device Type: ConnectX5 Part Number: MCX516A-CCA_Ax Description: ConnectX-5 EN network interface card; 100GbE dual-port QSFP28; PCIe3.0 x16; tall bracket; ROHS R6 PSID: MT_0000000012 PCI Device Name: 3b:00.0 Base GUID: b8599f0300b7cebe Base MAC: b8599fb7cebe Versions: Current Available FW 16.33.1048 16.33.1048 PXE 3.6.0502 3.6.0502 UEFI 14.26.0017 14.26.0017 Status: Up to date --0000000000001452d505df70bfd3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Installed=C2=A0 Mellanox ConnectX5=C2=A0 as below, cr= eated two VFs but when starting DPDK I see this error:

=
DPDK:EAL: Probe PCI driver: mlx5_pci (15b3:1018) device: 0000:3b:00.3 = (socket 0)
DPDK:mlx5_common: No Verbs device matches PCI device 0000:3b:= 00.3, are kernel drivers loaded?
DPDK:mlx5_common: Verbs device not foun= d: 0000:3b:00.3
DPDK:mlx5_common: Failed to initialize device context.

Drivers are loaded:

us= er@metis:~$ lsmod | grep ml
mlx5_ib =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 348160 =C2=A00
ib_uverbs =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 155648 =C2=A02 irdma,mlx5_ib
ib_core =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 368640 =C2=A03 irdma,ib_uverbs,mlx5_ib
mlx5_cor= e =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01400832 =C2=A01 mlx5_ib
mlxfw= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A032768 =C2=A0= 1 mlx5_core
psample =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A020480 =C2=A01 mlx5_core
tls =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 102400 =C2=A01 mlx5_core
pci_hyperv_intf =C2=A0 = =C2=A0 =C2=A0 =C2=A016384 =C2=A01 mlx5_core

an= d this is installation procedure.

sudo =C2=A0./MLN= X_OFED_LINUX-5.6-1.0.3.3-ubuntu22.04-x86_64/mlnxofedinstall --dpdk --upstre= am-libs
------------------------------------
Installing = ofed-scripts-5.6...
Installing mstflint-4.16.1...
Installing mlnx-too= ls-5.2.0...
Installing mlnx-ofed-kernel-utils-5.6...
Installing mlnx-= ofed-kernel-dkms-5.6...

Installing rdma-core-56mlnx40...
Installi= ng libibverbs1-56mlnx40...
Installing ibverbs-utils-56mlnx40...
Insta= lling ibverbs-providers-56mlnx40...
Installing libibverbs-dev-56mlnx40..= .
Installing librdmacm1-56mlnx40...
Installing rdmacm-utils-56mlnx40.= ..
Installing librdmacm-dev-56mlnx40...
Installing libibumad3-56mlnx4= 0...
Installing ibacm-56mlnx40...
Installing python3-pyverbs-56mlnx40= ...
Selecting previously unselected package mlnx-fw-updater.
(Reading= database ... 208346 files and directories currently installed.)
Prepari= ng to unpack .../mlnx-fw-updater_5.6-1.0.3.3_amd64.deb ...
Unpacking mln= x-fw-updater (5.6-1.0.3.3) ...
Setting up mlnx-fw-updater (5.6-1.0.3.3) = ...

Added 'RUN_FW_UPDATER_ONBOOT=3Dno to /etc/infiniband/openib.= conf

Initializing...
Attempting to perform Firmware update...
= Querying Mellanox devices firmware ...
Querying Mellanox devices firmwar= e ...

Device #1:
----------

=C2=A0 Device Type: =C2=A0 =C2= =A0 =C2=A0ConnectX5
=C2=A0 Part Number: =C2=A0 =C2=A0 =C2=A0MCX516A-CCA_= Ax
=C2=A0 Description: =C2=A0 =C2=A0 =C2=A0ConnectX-5 EN network interfa= ce card; 100GbE dual-port QSFP28; PCIe3.0 x16; tall bracket; ROHS R6
=C2= =A0 PSID: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 MT_0000000012
=C2=A0= PCI Device Name: =C2=A03b:00.0
=C2=A0 Base GUID: =C2=A0 =C2=A0 =C2=A0 = =C2=A0b8599f0300b7cebe
=C2=A0 Base MAC: =C2=A0 =C2=A0 =C2=A0 =C2=A0 b859= 9fb7cebe
=C2=A0 Versions: =C2=A0 =C2=A0 =C2=A0 =C2=A0 Current =C2=A0 =C2= =A0 =C2=A0 =C2=A0Available
=C2=A0 =C2=A0 =C2=A0FW =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 16.33.1048 =C2=A0 =C2=A0 16.33.1048
=C2=A0 =C2=A0 = =C2=A0PXE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A03.6.0502 =C2=A0 =C2=A0 = =C2=A0 3.6.0502
=C2=A0 =C2=A0 =C2=A0UEFI =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 14.26.0017 =C2=A0 =C2=A0 14.26.0017

=C2=A0 Status: =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 Up to date

--0000000000001452d505df70bfd3--