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 9FE4FA0540 for ; Fri, 8 Jul 2022 12:33:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3CA7F406B4; Fri, 8 Jul 2022 12:33:58 +0200 (CEST) Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) by mails.dpdk.org (Postfix) with ESMTP id 142B44021E for ; Fri, 8 Jul 2022 12:33:57 +0200 (CEST) Received: by mail-yb1-f175.google.com with SMTP id i7so37104446ybe.11 for ; Fri, 08 Jul 2022 03:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q+ytHn0qTCHDoWRvajZhplBvLK6OXv1kTEcpXqJ5cZ0=; b=V/fFDG6BiTGaOXIeQuiPLZrdOVnxPKSrBtZJ+jwLu2Qzy0uFCNh1DWRKtwvZ0V8HGM zwerFzTasneCULPBlDM7MR2laiK8kSvhwml1cw5kpsj+aDLNifPKHz5uGN2VLuxy/LGu N0G83lI3Ov7d4ziCTk8byhe7mjM+f5W8x2TRKOtg65MfdZItcQoSDRadUPPPUtk6GN42 cUirUw0DHaApg5rYY1+Q5J5JJi4lfctEV8ZFCQj5BlelTERfBJBXa0d5LgVMpk9AjHkx mbHpA0tH6L9AyqOXtxJsgqSJJ3h4UQogcbT0EHjStSeS1os+Xn2HBZUzN00iC+4ekuOw EfIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q+ytHn0qTCHDoWRvajZhplBvLK6OXv1kTEcpXqJ5cZ0=; b=37EUo31YykhJGrzCwnAbFM1DPoYrjPzqAh9l4lu95oe/6OYSMZ3MK7IYLVGuKgNB4b o139/GGnvkjdUu0Jsfmo4EmH20aI0f3AU0rmKZyOPR9WUT1mNypULh+4HsTguQAVuA9X wc9YspVf7xeuTHS1VLNjz0bho0JFh9Q5HLmQHasLd4Oo08e5NhX7umfvm/34gv5ajm4P UkcT9luSKkzQw4apT2CZNdUNlv0bhkr3CAik30+x66H+8wvWUHfkwJgnPbr+jS0p0qA1 1r6caosnaOBFV4W7jEVAbkgik97VAfAPcF1qL3iTOWiUPuLiL1GhTsIM1g1z7y5yKHSE D6ng== X-Gm-Message-State: AJIora/ILZK28NM53zaUO+GPaDjr8nu4KpjTl0pq89vecAyp4mfW6Yvo /ky/lJnU/8W7EO3xYyFJUCAOwchVu4TvH4m59McBZGvv1Xo= X-Google-Smtp-Source: AGRyM1v3c8vYb+NEzBoqgp7/VElaShYQhFbVY96JqhU33vc5/McxdeXIZ4E6NAgpBOAYGd/zexHX6cuQkrak/onXqTU= X-Received: by 2002:a05:6902:1149:b0:66e:b81a:9dbb with SMTP id p9-20020a056902114900b0066eb81a9dbbmr2915173ybu.433.1657276436264; Fri, 08 Jul 2022 03:33:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: animesh tripathi Date: Fri, 8 Jul 2022 16:03:45 +0530 Message-ID: Subject: Re: running dpdk on mellanox with dpdk 21.08 To: Cliff Burdick Cc: users Content-Type: multipart/alternative; boundary="000000000000473bf605e348bd1a" 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 --000000000000473bf605e348bd1a Content-Type: text/plain; charset="UTF-8" Hi Cliff, The earlier error is resolved now. It was some compilation problem. Now I am getting some other error: EAL: Detected 24 lcore(s) EAL: Detected 1 NUMA nodes EAL: Auto-detected process type: PRIMARY EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/nr_dpdk/mp_socket EAL: Selected IOVA mode 'PA' EAL: VFIO support initialized TELEMETRY: No legacy callbacks, legacy socket not created EAL: Driver cannot attach the device (0000:b5:00.1) EAL: Failed to attach device on primary process PANIC in nr_dpdk_init(): Network port doesn't exist.6: [./a() [0xbba5aa]] 5: [/usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f7d0fae40b3]] 4: [./a(main+0x428) [0x7476e8]] 3: [./a() [0x55b885]] 2: [./a(__rte_panic+0xcd) [0x7409a7]] 1: [./a(rte_dump_stack+0x32) [0x13a47a2]]\ These are the mellanox drivers installed on my machine: mlx5_ib 393216 0 mlx5_core 1552384 1 mlx5_ib mlxdevm 172032 1 mlx5_core auxiliary 16384 2 mlx5_ib,mlx5_core ib_uverbs 135168 2 rdma_ucm,mlx5_ib tls 73728 1 mlx5_core mlxfw 32768 1 mlx5_core psample 20480 1 mlx5_core ib_core 319488 9 rdma_cm,ib_ipoib,nvidia_peermem,iw_cm,ib_umad,rdma_ucm,ib_uverbs,mlx5_ib,ib_cm mlx_compat 65536 12 rdma_cm,ib_ipoib,mlxdevm,iw_cm,auxiliary,ib_umad,ib_core,rdma_ucm,ib_uverbs,mlx5_ib,ib_cm,mlx5_core pci_hyperv_intf 16384 1 mlx5_core Can you please help me in resolving this error. Thanks, Animesh Tripathi On Fri, Jul 8, 2022 at 11:42 AM animesh tripathi wrote: > Hi Cliff, > > Yes I am running as root > > Thanks, > Animesh Tripathi > > On Fri, Jul 8, 2022, 10:29 AM animesh tripathi > wrote: > >> Hi Cliff, >> >> Please find the output of meson command. >> >> Thanks, >> Animesh Tripathi >> >> On Thu, Jul 7, 2022 at 8:17 PM Cliff Burdick wrote: >> >>> Please paste the output of the meson command. Are you running as root? >>> >>> >>> On Thu, Jul 7, 2022, 06:13 animesh tripathi >>> wrote: >>> >>>> Hi Team, >>>> >>>> I have to run dpdk on mellanox nic. I have compiled dpdk 21.08 with the >>>> following commands: >>>> >>>> meson --prefix=$(pwd)/build build >>>> ninja -C build >>>> ninja -C build install >>>> ldconfig >>>> >>>> While running the application I am getting following error: >>>> >>>> EAL: Detected 24 lcore(s) >>>> EAL: Detected 1 NUMA nodes >>>> EAL: Auto-detected process type: PRIMARY >>>> EAL: Detected static linkage of DPDK >>>> EAL: failed to parse device "0000:b5:00.1" >>>> EAL: Unable to parse device '0000:b5:00.1' >>>> PANIC in nr_dpdk_init(): >>>> Cannot init EAL: No such device >>>> 6: [./a() [0x444179]] >>>> 5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) >>>> [0x7f08e0f2e0b3]] >>>> 4: [./a(main+0x428) [0x4431f8]] >>>> 3: [./a(nr_dpdk_init+0x268) [0x509bd8]] >>>> 2: [./a(__rte_panic+0xcd) [0x43c55e]] >>>> 1: [./a(rte_dump_stack+0x32) [0x539ed2]] >>>> >>>> Also I cannot find mlx5 compiled libs in the dpdk build folder. Please >>>> help me in resolving this issue. >>>> >>>> Thanks, >>>> Animesh Tripathi >>>> >>> --000000000000473bf605e348bd1a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Cliff,

=
The earlier error is resolved now. It was some compilation problem. No= w I am getting some other error:

EAL: Detecte= d 24 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Auto-dete= cted process type: PRIMARY
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/nr_dpdk/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initiali= zed
TELEMETRY: No legacy callbacks, legacy socket not created
EAL: Driver cannot attach the device (0000:b5:00.1)
EAL: F= ailed to attach device on primary process
PANIC in nr_dpdk_init()= :
Network port doesn't exist.6: [./a() [0xbba5aa]]
= 5: [/usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f7d0fae= 40b3]]
4: [./a(main+0x428) [0x7476e8]]
3: [./a() [0x55b= 885]]
2: [./a(__rte_panic+0xcd) [0x7409a7]]
1: [./a(rte= _dump_stack+0x32) [0x13a47a2]]\

These are th= e mellanox drivers installed on my machine:
mlx5_ib=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0393216=C2=A0 0
ml= x5_core=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1552384=C2=A0 1 mlx5_ib
mlxdevm=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A017203= 2=C2=A0 1 mlx5_core
auxiliary=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 16384=C2=A0 2 mlx5_ib,mlx5_core
ib_uverbs=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0135168=C2=A0 2 rdma_ucm,mlx5_ib
=
tls=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 73728=C2=A0 1 mlx5_core
mlxfw=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 32768=C2=A0 1 mlx5_core
psample= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 20480=C2=A0 1 mlx5_= core
ib_core=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0319488=C2=A0 9 rdma_cm,ib_ipoib,nvidia_peermem,iw_cm,ib_umad,rdma_ucm,ib= _uverbs,mlx5_ib,ib_cm
mlx_compat=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A065536=C2=A0 12 rdma_cm,ib_ipoib,mlxdevm,iw_cm,auxiliary,ib= _umad,ib_core,rdma_ucm,ib_uverbs,mlx5_ib,ib_cm,mlx5_core
pci_hype= rv_intf=C2=A0 =C2=A0 =C2=A0 =C2=A0 16384=C2=A0 1 mlx5_core
=
Can you please help me in resolving this error.
Thanks,
Animesh Tripathi

<= /div>

On Fri, Jul 8, 2022 at 11:42 AM animesh tripathi <anitrip.444@gmail.com> wrote:
Hi Cliff,
Yes I am running as root

Thanks,
= Animesh Tripathi=C2=A0

On Fri, Jul 8, 2022, 10:29 AM animesh tripath= i <anitrip.44= 4@gmail.com> wrote:
Hi Cliff,

Please find the ou= tput of meson command.

Thanks,
Animesh T= ripathi

On Thu, Jul 7, 2022 at 8:17 PM Cliff Burdick <shaklee3@gmai= l.com> wrote:
Please paste the output of the meson command. Are yo= u running as root?


On Thu, Jul 7, 2022, 06:13 an= imesh tripathi <anitrip.444@gmail.com> wrote:
Hi Team,

I have to run dpdk on mellan= ox nic. I have compiled dpdk 21.08 with the following commands:=C2=A0
=

meson --prefix=3D$(pwd)/build build
ninj= a -C build
ninja -C build install
ldconfig
<= div>
While running the application I am getting following err= or:

EAL: Detected 24 lcore(s)
EAL: = Detected 1 NUMA nodes
EAL: Auto-detected process type: PRIMARY
EAL: Detected static linkage of DPDK
EAL: failed to parse= device "0000:b5:00.1"
EAL: Unable to parse device '= ;0000:b5:00.1'
PANIC in nr_dpdk_init():
Cannot init= EAL: No such device
6: [./a() [0x444179]]
5: [/lib/x86= _64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f08e0f2e0b3]]
4: [./a(main+0x428) [0x4431f8]]
3: [./a(nr_dpdk_init+0x268) [0x5= 09bd8]]
2: [./a(__rte_panic+0xcd) [0x43c55e]]
1: [./a(r= te_dump_stack+0x32) [0x539ed2]]

Also I canno= t find mlx5 compiled libs in the dpdk build folder. Please help me in resol= ving this issue.

Thanks,
Animesh Tripath= i
--000000000000473bf605e348bd1a--