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 B812AA00C3 for ; Mon, 17 Jan 2022 17:26:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 941AB41C28; Mon, 17 Jan 2022 17:26:32 +0100 (CET) Received: from eu-smtp-delivery-104.mimecast.com (eu-smtp-delivery-104.mimecast.com [185.58.86.104]) by mails.dpdk.org (Postfix) with ESMTP id 0F60A4122E for ; Mon, 17 Jan 2022 17:26:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=radio-canada.ca; s=mimecast20211019; t=1642436790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GiuMgL+1Wur7TSuXeeDfSeFIb0iveA+ng3+8TP6zKvw=; b=DhErX8pnS1d0tEeWBWk7ezTo47YIGBzwR0z/3zcJFBFMsXMrfN21mGLEadMq72BYaXL8pN sE6Bgoim9om4qfv+w3fjXZYgVBYbvoszK91D9s0VQEqOOdlz5Zkb1tL+K6gzXDv2pMTwR1 QUZtH6ah1oClsu4fJ/rDKGYCDVQWtjY= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id uk-mta-95-FjnpcYc6P8Gz4I040thfIw-1; Mon, 17 Jan 2022 16:26:29 +0000 X-MC-Unique: FjnpcYc6P8Gz4I040thfIw-1 Received: by mail-wm1-f71.google.com with SMTP id bg16-20020a05600c3c9000b0034bea12c043so4946541wmb.7 for ; Mon, 17 Jan 2022 08:26:29 -0800 (PST) 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=jLEEOE+SoXePB0VH5mi+M6ucN+bTLBqSuSpuZXp7SqQ=; b=Zf3g6yunfSCpETx7x9PRSWT5x2lBHZjQ6JJArO51y3+W/Qselv1MjdRCjvh2RlUU/F BSrV+Fl91KGZhkezaQTcA8SSxVDVw0RAHYck7Sb0i8LfuPJBleKq52GQpQLLKDxwUHv6 DERPR6fwRMEKg3Vd4nfEPHcBfXgEDGCCN+KQnDb5eudPhJl5Y+qgLr8IvIjb3D11CFEp ffulcBV26CnogxEoFVt5IOhna/NLg2A15UTSQ9Un7jA00ro684vJUPNZTNQ0yNuxfK2u CjzMFiycfjuQPB4O07oUUCC60Xki1FlccXAPYZrtYsoCZs8q8mwBf2fhPwJjxNqEBnvN /nEw== X-Gm-Message-State: AOAM531q7iqy36c0VNlYW9z0ssP4lqcOIOOOCOyvou6RtvF7vnSTkk8I 2SGruy4y0gf9JNNcUeRj4mdnhK/SNkAIUK63wMQaWQCHxGJOmV4egYLvcb+ro7q1YMLAXJx003I TdlKS8QGz5LuR26cuA/I= X-Received: by 2002:adf:e291:: with SMTP id v17mr19803982wri.479.1642436789305; Mon, 17 Jan 2022 08:26:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnU4P0+OSo30+pIDbH59uk1KCwYCEuKWyvnHbh0WKuc57LhR5q1L7rEK6meoi+EW39e3/M81qEas40VC918PY= X-Received: by 2002:adf:e291:: with SMTP id v17mr19803963wri.479.1642436788972; Mon, 17 Jan 2022 08:26:28 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: PATRICK KEROULAS Date: Mon, 17 Jan 2022 11:26:18 -0500 Message-ID: Subject: Re: Trouble bringing up dpdk testpmd with Mellanox ports To: Sindhura Bandi Cc: "users@dpdk.org" , Venugopal Thacahappilly Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUK104A247 smtp.mailfrom=patrick.keroulas@radio-canada.ca X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: radio-canada.ca Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Hello, Try without `--no-pci` in your testpmd command. On Sun, Jan 16, 2022 at 6:08 AM Sindhura Bandi wrote: > > Hi, > > > I'm trying to bring up dpdk-testpmd application using Mellanox connectX-5= ports. With a custom built dpdk, testpmd is not able to detect the ports. > > > OS & Kernel: > > Linux debian-10 4.19.0-17-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86= _64 GNU/Linux > > The steps followed: > > Installed MLNX_OFED_LINUX-4.9-4.0.8.0-debian10.0-x86_64 (./mlnxofedinstal= l --skip-distro-check --upstream-libs --dpdk) > Downloaded dpdk-18.11 source, and built it after making following changes= in config > > CONFIG_RTE_LIBRTE_MLX5_PMD=3Dy > CONFIG_RTE_TEST_PMD_RECORD_CORE_CYCLES=3Dy > CONFIG_RTE_BUILD_SHARED_LIB=3Dy > > When I run testpmd, it is not recognizing any Mellanox ports > > > ######### > root@debian-10:~/dpdk-18.11/myinstall# ./bin/testpmd -l 1-3 -w 82:00.0 -= -no-pci -- --total-num-mbufs 1025 > EAL: Detected 24 lcore(s) > EAL: Detected 2 NUMA nodes > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: No free hugepages reported in hugepages-1048576kB > EAL: Probing VFIO support... > testpmd: No probed ethernet devices > testpmd: create a new mbuf pool : n=3D1025, size=3D21= 76, socket=3D0 > testpmd: preferred mempool ops selected: ring_mp_mc > testpmd: create a new mbuf pool : n=3D1025, size=3D21= 76, socket=3D1 > testpmd: preferred mempool ops selected: ring_mp_mc > Done > No commandline core given, start packet forwarding > io packet forwarding - ports=3D0 - cores=3D0 - streams=3D0 - NUMA support= enabled, MP allocation mode: native > > io packet forwarding packets/burst=3D32 > nb forwarding cores=3D1 - nb forwarding ports=3D0 > Press enter to exit > ########## > > root@debian-10:~# lspci | grep Mellanox > 82:00.0 Ethernet controller: Mellanox Technologies MT28800 Family [Connec= tX-5 Ex] > 82:00.1 Ethernet controller: Mellanox Technologies MT28800 Family [Connec= tX-5 Ex] > root@debian-10:~# ibv_devinfo > hca_id: mlx5_0 > transport: InfiniBand (0) > fw_ver: 16.28.4512 > node_guid: b8ce:f603:00f2:7952 > sys_image_guid: b8ce:f603:00f2:7952 > vendor_id: 0x02c9 > vendor_part_id: 4121 > hw_ver: 0x0 > board_id: DEL0000000004 > phys_port_cnt: 1 > port: 1 > state: PORT_ACTIVE (4) > max_mtu: 4096 (5) > active_mtu: 1024 (3) > sm_lid: 0 > port_lid: 0 > port_lmc: 0x00 > link_layer: Ethernet > > hca_id: mlx5_1 > transport: InfiniBand (0) > fw_ver: 16.28.4512 > node_guid: b8ce:f603:00f2:7953 > sys_image_guid: b8ce:f603:00f2:7952 > vendor_id: 0x02c9 > vendor_part_id: 4121 > hw_ver: 0x0 > board_id: DEL0000000004 > phys_port_cnt: 1 > port: 1 > state: PORT_ACTIVE (4) > max_mtu: 4096 (5) > active_mtu: 1024 (3) > sm_lid: 0 > port_lid: 0 > port_lmc: 0x00 > link_layer: Ethernet > > > I'm not sure where I'm going wrong. Any hints will be much appreciated. > > Thanks, > Sindhu