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 ADAF6A0C4D for ; Fri, 13 Aug 2021 09:03:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8C8C140DF4; Fri, 13 Aug 2021 09:03:02 +0200 (CEST) Received: from mx0a-00000d04.pphosted.com (mx0a-00000d04.pphosted.com [148.163.149.245]) by mails.dpdk.org (Postfix) with ESMTP id D773D40151 for ; Fri, 13 Aug 2021 09:03:00 +0200 (CEST) Received: from pps.filterd (m0102887.ppops.net [127.0.0.1]) by mx0a-00000d04.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17D725Oj030761 for ; Fri, 13 Aug 2021 00:02:59 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stanford.edu; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=pps05272020; bh=gd7/QaX4Wg/LfxdCosL8jCTZtoJmtO1hjv0ffmXV0Nw=; b=oeSPrbZUCNYcwC4cnuac8PxRsLB4zNoBIRk0DVCLuGHLalJaVU3D74ApmTraAKWQq3c/ JW5HLyjXwvheuIyxE6zxR0VU3EGYwEvVnFeVb/tqAchG4IdFxt4tPAVmpvTNLeHvXvuF 4UbR5sgEVSGctFICIpXYL2x4CSmba1l/zPfSXL3qliX+Tn6YU2wj9goyQg6N9qNwo7jW WC6UxjjzMYenSjiUfW6g83Zlfbtxzuq7O77/v3AUcL/YtJvEjAr0shoObOA5PnxZkV6P bMLKQlMhXDq+DuaqmmYuQMbJxOWMKttv8dUHhn7NOfpddA4XelkLnWPY8j8FAh01Ra06 Lw== Received: from mx0b-00000d03.pphosted.com (mx0b-00000d03.pphosted.com [148.163.153.234]) by mx0a-00000d04.pphosted.com with ESMTP id 3abym7ddrk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 13 Aug 2021 00:02:59 -0700 Received: from pps.filterd (m0190090.ppops.net [127.0.0.1]) by mx0a-00000d03.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17D72YT7000615 for ; Fri, 13 Aug 2021 00:02:58 -0700 Received: from mx0a-00000d06.pphosted.com (mx0a-00000d06.pphosted.com [148.163.135.119]) by mx0a-00000d03.pphosted.com with ESMTP id 3a9sre1q72-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 13 Aug 2021 00:02:58 -0700 Received: from pps.filterd (m0167936.ppops.net [127.0.0.1]) by mx0a-00000d06.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17D6kGAt019319 for ; Fri, 13 Aug 2021 00:02:57 -0700 Received: from smtp.stanford.edu (smtp6.stanford.edu [171.67.219.73]) by mx0a-00000d06.pphosted.com with ESMTP id 3a9p06yg2e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 13 Aug 2021 00:02:57 -0700 Received: from mail-il1-f182.google.com (mail-il1-f182.google.com [209.85.166.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: gerryw) by smtp.stanford.edu (Postfix) with ESMTPSA id EAC4A406AC for ; Fri, 13 Aug 2021 00:02:56 -0700 (PDT) Received: by mail-il1-f182.google.com with SMTP id w6so4841052ill.3 for ; Fri, 13 Aug 2021 00:02:56 -0700 (PDT) X-Gm-Message-State: AOAM533ePgdWDNozUgY2u3kFWCl9qO29pVxzZ2B51J2uneOFnwxrANSn ksgxqvvlaBEwmLa0z7Vgtd+CjvvHx37fQwGLoSM= X-Google-Smtp-Source: ABdhPJxihPDOAsoaczjbaUJviO2NqLHx2jtWqlQH5BFMeFTaY3ItR5cBkYVrrhPoxsHAx7c97gGFQXKA/RZ4NAEZyZc= X-Received: by 2002:a92:dd88:: with SMTP id g8mr853678iln.158.1628838176359; Fri, 13 Aug 2021 00:02:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Gerry Wan Date: Fri, 13 Aug 2021 00:02:45 -0700 X-Gmail-Original-Message-ID: Message-ID: To: PATRICK KEROULAS Cc: users@dpdk.org x-proofpoint-stanford-dir: outbound X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-13_01:2021-08-12, 2021-08-13 signatures=0 X-Proofpoint-ORIG-GUID: JJLo6zpvFS5Vy0JwUoLieRexkWVNBRJv X-Proofpoint-GUID: JJLo6zpvFS5Vy0JwUoLieRexkWVNBRJv X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-13_01:2021-08-12, 2021-08-13 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=100 suspectscore=0 clxscore=1015 phishscore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 mlxlogscore=999 spamscore=0 impostorscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108130043 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-users] Building mlx5 with rdma-core/OFED 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 Sender: "users" I was able to get things to work with rdma-core by completely deleting my DPDK build directory and building from scratch, not just clean. The latest OFED (5.4) also works with kernel 5.4.0-80-generic, in case others are also having similar issues and cannot use rdma-core. On Tue, Aug 3, 2021 at 7:24 AM PATRICK KEROULAS < patrick.keroulas@radio-canada.ca> wrote: > Have you checked that: > - the missing symbols like `mlx5dv_dr_action_create_default_miss` are > defined in mlx5dv.h? > - there is no other mlx5dv.h from previous version installed somewhere? > > I recommend to keep the package versions provided for your distro and > downgrade dpdk if necessary. > > > On Mon, Aug 2, 2021 at 4:18 PM Gerry Wan wrote: > > > > I am running Ubuntu 20.04, and the mlx5dv.h is indeed in > `/usr/include/infiniband/`. > > > > The steps I take to build DPDK are > > $ meson --prefix=$DPDK_PATH build > > $ cd build > > $ sudo ninja install -> fails here > > $ sudo ldconfig > > > > How can I install the correct versions of rdma-core and libibverbs? > > > > On Mon, Aug 2, 2021 at 12:59 PM PATRICK KEROULAS < > patrick.keroulas@radio-canada.ca> wrote: > >> > >> I guess you're running Focal or Groovy release so rdma-core and > libibverbs > >> are >v28: https://launchpad.net/rdma-core > >> For this version, your missing symbols are defined: > >> > https://github.com/linux-rdma/rdma-core/blob/stable-v28/providers/mlx5/mlx5dv.h > >> I expect this header to be installed in `/usr/include/infiniband/`. > >> Please verify. > >> > >> Maybe something wrong with ninja, try meson or make. > >> > >> On Mon, Aug 2, 2021 at 2:35 PM Gerry Wan wrote: > >> > > >> > How did you install these packages? Are there extra environment > variables I need to set? > >> > After running the OFED uninstall script, > >> > > >> > apt-get install rdma-core > >> > apt-get install libibverbs-dev > >> > > >> > both work fine, but ninja install now fails on > >> > > >> > [1/1756] Linking target drivers/librte_common_mlx5.so.21.1. > >> > FAILED: drivers/librte_common_mlx5.so.21.1 > >> > cc -o drivers/librte_common_mlx5.so.21.1 'drivers/a715181@ > @rte_common_mlx5@sha/meson-generated_.._rte_common_mlx5.pmd.c.o' > 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_devx_cmds.c.o' > 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common.c.o' > 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common_mp.c.o' > 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common_mr.c.o' > 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_malloc.c.o' > 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common_pci.c.o' > 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common_devx.c.o' > 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_nl.c.o' > 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_common_os.c.o' > 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_common_verbs.c.o' > 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o' > -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group > -Wl,-soname,librte_common_mlx5.so.21 -Wl,--no-as-needed -pthread -lm -ldl > -lnuma lib/librte_hash.so.21.1 lib/librte_eal.so.21.1 > lib/librte_kvargs.so.21.1 lib/librte_telemetry.so.21.1 > lib/librte_ring.so.21.1 lib/librte_rcu.so.21.1 lib/librte_pci.so.21.1 > drivers/librte_bus_pci.so.21.1 lib/librte_net.so.21.1 > lib/librte_mbuf.so.21.1 lib/librte_mempool.so.21.1 > -Wl,--version-script=/home/gerryw/dpdk/dpdk-21.02/drivers/common/mlx5/version.map > /usr/lib/x86_64-linux-gnu/libmlx5.so > /usr/lib/x86_64-linux-gnu/libibverbs.so -Wl,--end-group > '-Wl,-rpath,$ORIGIN/../lib:$ORIGIN/' > -Wl,-rpath-link,/home/gerryw/dpdk/dpdk-21.02/build/lib > -Wl,-rpath-link,/home/gerryw/dpdk/dpdk-21.02/build/drivers > >> > /usr/bin/ld: drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: > in function `mlx5_glue_dv_create_flow_action_aso': > >> > mlx5_glue.c:(.text+0x21f): undefined reference to > `mlx5dv_dr_action_create_aso' > >> > /usr/bin/ld: drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: > in function `mlx5_glue_dr_action_create_dest_array': > >> > mlx5_glue.c:(.text+0x23b): undefined reference to > `mlx5dv_dr_action_create_dest_array' > >> > /usr/bin/ld: drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: > in function `mlx5_glue_dr_create_flow_action_sampler': > >> > mlx5_glue.c:(.text+0x25b): undefined reference to > `mlx5dv_dr_action_create_flow_sampler' > >> > /usr/bin/ld: drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: > in function `mlx5_glue_dv_alloc_pp': > >> > mlx5_glue.c:(.text+0x28b): undefined reference to `mlx5dv_pp_alloc' > >> > /usr/bin/ld: drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: > in function `mlx5_glue_dr_create_flow_action_default_miss': > >> > mlx5_glue.c:(.text+0x4bb): undefined reference to > `mlx5dv_dr_action_create_default_miss' > >> > /usr/bin/ld: drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: > in function `mlx5_glue_dv_free_pp': > >> > mlx5_glue.c:(.text+0x277): undefined reference to `mlx5dv_pp_free' > >> > /usr/bin/ld: drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: > in function `mlx5_glue_dr_reclaim_domain_memory': > >> > mlx5_glue.c:(.text+0x2a7): undefined reference to > `mlx5dv_dr_domain_set_reclaim_device_memory' > >> > /usr/bin/ld: drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: > in function `mlx5_glue_devx_port_query': > >> > mlx5_glue.c:(.text+0x325): undefined reference to > `mlx5dv_query_devx_port' > >> > /usr/bin/ld: drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: > in function `mlx5_glue_dv_create_flow_action_dest_devx_tir': > >> > mlx5_glue.c:(.text+0x545): undefined reference to > `mlx5dv_dr_action_create_dest_devx_tir' > >> > /usr/bin/ld: drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: > in function `mlx5_glue_dr_create_flow_action_pop_vlan': > >> > mlx5_glue.c:(.text+0x655): undefined reference to > `mlx5dv_dr_action_create_pop_vlan' > >> > /usr/bin/ld: drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: > in function `mlx5_glue_dr_create_flow_action_push_vlan': > >> > mlx5_glue.c:(.text+0x665): undefined reference to > `mlx5dv_dr_action_create_push_vlan' > >> > /usr/bin/ld: drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: > in function `mlx5_glue_dr_create_flow_action_dest_port': > >> > mlx5_glue.c:(.text+0x685): undefined reference to > `mlx5dv_dr_action_create_dest_ib_port' > >> > collect2: error: ld returned 1 exit status > >> > [2/1756] Compiling C object 'drivers/a715181@ > @tmp_rte_mempool_octeontx@sta/mempool_octeontx_octeontx_fpavf.c.o'. > >> > ninja: build stopped: subcommand failed. > >> > > >> > > >> > On Mon, Aug 2, 2021 at 6:24 AM PATRICK KEROULAS < > patrick.keroulas@radio-canada.ca> wrote: > >> >> > >> >> > >> >> Hello Gerry, > >> >> I went through this a while ago and had to properly remove > everything related > >> >> to OFED with the uninstaller. Then, install rdma-core and > libibverbs-dev which > >> >> includes infiniband/mlx5dv.h IIRC. > >> >> Regards, > >> >> Patrick > >> >> > >> >> On Sun, Aug 1, 2021 at 8:23 PM Gerry Wan > wrote: > >> >>> > >> >>> I recently tried to reinstall MLX OFED 5.2-2.2.0.0 on my bare metal > machine > >> >>> Ubuntu 20.04 (previously using the command ./mlnxofedinstall --dpdk > >> >>> --upstream-libs --with-mft --with-kernel-mft). However, it now > fails with > >> >>> the message > >> >>> > >> >>> Checking SW Requirements... > >> >>> Removing old packages... > >> >>> Uninstalling the previous version of MLNX_OFED_LINUX > >> >>> Installing new packages Installing mft-4.16.1... > >> >>> Installing ofed-scripts-5.2... > >> >>> Installing mstflint-4.15.0... > >> >>> Installing mlnx-ofed-kernel-utils-5.2... > >> >>> Installing mlnx-ofed-kernel-dkms-5.2... > >> >>> Failed to install mlnx-ofed-kernel-dkms DEB > >> >>> Collecting debug info... > >> >>> See > /tmp/MLNX_OFED_LINUX.9221.logs/mlnx-ofed-kernel-dkms.debinstall.log > >> >>> > >> >>> It appears that my kernel version got upgraded to 5.4.0-80-generic > which I > >> >>> think may be the issue. I've also tried to install using > >> >>> --add-kernel-support --kernel 5.4.0-80-generic, with no luck. > >> >>> > >> >>> The DPDK website says that rdma-core is now recommended over OFED, > but the > >> >>> documentation for how to use it isn't very clear to me. I've tried > to > >> >>> install it via > >> >>> > >> >>> apt-get install rdma-core > >> >>> > >> >>> as well as running the quick start script listed here: > >> >>> https://github.com/linux-rdma/rdma-core, but DPDK installation > still fails > >> >>> with > >> >>> > >> >>> ../drivers/common/mlx5/linux/mlx5_glue.h:15:10: fatal error: > >> >>> infiniband/mlx5dv.h: No such file or directory > >> >>> 15 | #include > >> >>> > >> >>> Any advice on getting the mlx5 drivers to work again would be > helpful! > >> > >