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 06B5BA00C4 for ; Sat, 16 Jul 2022 00:21:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C7A0D40A87; Sat, 16 Jul 2022 00:21:05 +0200 (CEST) Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) by mails.dpdk.org (Postfix) with ESMTP id 5C09340141 for ; Sat, 16 Jul 2022 00:21:04 +0200 (CEST) Received: by mail-ej1-f41.google.com with SMTP id va17so11348368ejb.0 for ; Fri, 15 Jul 2022 15:21:04 -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=p+aWmqshER8+MHO7H3zxkYOUQpDYKgFTD8kYKYx8JZA=; b=f9eu01fpHh72v3zGRig+Vbv5s+GPChdr9E54P64/7OiBXLgcDIWNgEZ5roNvVtlmHR Z/nLa9EtrDUrl1LneCgDSQhnjalKWYXfb8fwn2zpGo4zO9mkLWrg667CHlDI6yfIGM+7 x2vSpCB2JEmdAn8yW/HeWE+6mulluIoKtVNKyW5swB6XHqRhQM5qoYTik/ViEGW58IXB OM2k2HHFz/tRy/6F/tZCc76Ie+xSj/GPLDpT8H5ckrhBSb2gGLh4irMGzby4ZqhLt7d1 OcDT5qkoAp9ma5eYFpPBDvjZHhf5H1DAXIHOF8by8rJG4dVy9WS66BQNt0X7f36nQdhI oFpA== 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=p+aWmqshER8+MHO7H3zxkYOUQpDYKgFTD8kYKYx8JZA=; b=t/MTQ67IKzxeqxPLLVzn+s8dnXsGaCXx7qEsl5iRnXLyMrpOENSX7SS+ZGeizN5pz3 w2T5/vEDNKED+bxQZUQkjnOBBe17eh+LtrxWkvkKKt50HTAYifUQWByDri0olmTb6yYz uOgmrc1ur7q1YqoiAUlKiRXwi3xPCkPsqPyUVjJW3FLZHJlVzshaSDOX6MMeewXK0BQF 6MKDEcby11VBAmePQfEGDIKAL6I3uPJjuQby26fQn2x4u1IjqeWquO0uSALEbBNEXsOs 9ngEW34BYZcQpB4kf4sg0PHXGhw61ya5FQlBisdgQzv3LcASq/Yc8/gRm+NwOIj99hfw ueZg== X-Gm-Message-State: AJIora+2rw0DEWPTtQ0/gvoIrTU/H9KkNJKDqm53MKDEefigKcN6MXp+ HOlQ2ce8Evu4qWFxNzjXe4FmSrE3ZLTmjOnmg3o2k846 X-Google-Smtp-Source: AGRyM1sFOi/8VgDXVmEf7hFFzVRlWGk/SyYfPxtLYgJbJQFkFZVIZZ0gm3H1vBaPrCUvFLHDDEfv/vr7bVXZllnKa6o= X-Received: by 2002:a17:907:2723:b0:72b:5af3:5a11 with SMTP id d3-20020a170907272300b0072b5af35a11mr15435666ejl.584.1657923664017; Fri, 15 Jul 2022 15:21:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Cliff Burdick Date: Fri, 15 Jul 2022 15:20:52 -0700 Message-ID: Subject: Re: running dpdk on mellanox with dpdk 21.08 To: animesh tripathi Cc: users Content-Type: multipart/alternative; boundary="0000000000000efe3905e3df6fde" 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 --0000000000000efe3905e3df6fde Content-Type: text/plain; charset="UTF-8" Hi Animesh, can you try running testpmd to see if you get the same error? On Mon, Jul 11, 2022 at 11:35 PM animesh tripathi wrote: > Hi Cliff, > > Can you please help me here. > > Thanks, > Animesh Tripathi > > On Fri, Jul 8, 2022, 4:03 PM animesh tripathi > wrote: > >> 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 >>>>>> >>>>> --0000000000000efe3905e3df6fde Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Animesh, can you try running testpmd to see if you get = the same error?

On Mon, Jul 11, 2022 at 11:35 PM animesh tripathi <anitrip.444@gmail.com> wrote:
= Hi Cliff,

Can you please help = me here.

Thanks,
Animesh Tripathi

=
On Fri, Jul 8, 2022, 4:03 PM animesh = tripathi <ani= trip.444@gmail.com> wrote:
Hi Cli= ff,

The earlier error is resolved now. It was some compi= lation problem. Now I am getting some other error:

EAL: Detected 24 lcore(s)
EAL: Detected 1 NUMA nodes
<= div>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: VFI= O support initialized
TELEMETRY: No legacy callbacks, legacy sock= et 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() [0xb= ba5aa]]
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=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0393216=C2= =A0 0
mlx5_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=A0172032=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
i= b_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 2048= 0=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_um= ad,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_c= m,auxiliary,ib_umad,ib_core,rdma_ucm,ib_uverbs,mlx5_ib,ib_cm,mlx5_core
pci_hyperv_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

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 tripathi <anitrip.444@gmail= .com> wrote:
Hi Cliff,

Please find the output of= meson command.

Thanks,
Animesh Tripathi=

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


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

I have to r= un dpdk on mellanox nic. I have compiled dpdk 21.08 with the following comm= ands:=C2=A0

meson --prefix=3D$(pwd)/build bui= ld
ninja -C build
ninja -C build install
ldco= nfig

While running the application I am gett= ing 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) [0x7f08e0f= 2e0b3]]
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
--0000000000000efe3905e3df6fde--