From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4BBB9A317C for ; Thu, 17 Oct 2019 17:11:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4123D1E8EF; Thu, 17 Oct 2019 17:11:49 +0200 (CEST) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 04D071E8E3 for ; Thu, 17 Oct 2019 17:11:46 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id w3so1534817pgt.5 for ; Thu, 17 Oct 2019 08:11:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W3FX4TtEcTMtE7Xt4mBV78I4s5mmgUOpJrOZfHmvvIU=; b=u06a9KDMtX9nP/qxASdA1/hBrqZCxXnmp+yFfvehasUIFQVwPEzVyWy0a4VC0v+OAY SW+rur1CLBWjDFq3r7+TAwurHkXGdUPM45QwC/9ERKwm83fJONpd6vRe29vpQ61RVcNc BaPjnGwn63NX2bgzpMANR7uLBQ4PNdLbGMO57gwlLKiu/GS+t1AEAyU0z38iGUBVzR83 Ll9xCEt/UFICCnjyq6N48scTJBLTXcCAWlXT134iL3bNoKsMO+hvAXC9Om9QK72yfsvm EPmmtpIG0x2GsjaSebY+czw1KlR+e55Prvs5pn30W7CaWr8cKmOgr6qbEnB8GtbpCLDu bQMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W3FX4TtEcTMtE7Xt4mBV78I4s5mmgUOpJrOZfHmvvIU=; b=mgZRDJiNLMYnfWuZ6yYlNRhttDMA9Y0hglOpsoF1OZoPeylZYr6A4YDAEbg+Zh9qSc YK2Wtf6FXh9S6UZMKStxPzc7oycsADKcmjhC+MyvAf6DxqdHQnDfBBvZHcVmwlMqt6sV 6+JviRWVFhGALCa9z9fUWOzem+DWezgG1aA3JR7YXNMdQphyYDkQxw2WAzEds4rNJtii LnuC9Rk9lrEoQ6MWoYdfR4Mp1SAJYVN+rZmFM6EYdlkZBprx+/mNgmS6WicGev2f/hQR S2X6Les3z+98WyMR3Nws9K/hWz2ymr+eArVFec/2jdTXlrWs0E2xubwx/E0lh1mX94DB x89A== X-Gm-Message-State: APjAAAWK5L79rGXjUePX4MkqVQqFHah6WUpFLeFOLu147611huPJezgV 5RHilXEjcr4g0gSQgASbrowjeg== X-Google-Smtp-Source: APXvYqw4TxyVWXdwohpuwQ+xJYbqfORVPdNEBwTePOOcfNIT1l0wUacbYyP2Hc0dakLsQx0iEqbtoQ== X-Received: by 2002:a17:90a:37c5:: with SMTP id v63mr4788408pjb.3.1571325105873; Thu, 17 Oct 2019 08:11:45 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 64sm2975552pfx.31.2019.10.17.08.11.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 08:11:45 -0700 (PDT) Date: Thu, 17 Oct 2019 08:11:38 -0700 From: Stephen Hemminger To: vikram T Cc: dev@dpdk.org Message-ID: <20191017081138.79f49809@hermes.lan> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] rte_eth_dev_count_avail() returns 0 with the MLX5 NIC card X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 17 Oct 2019 18:37:09 +0530 vikram T wrote: > Hi, > I am facing an issue with rte_eth_dev_count_avail() returns 0 on the MLX5 > NIC card. > "dpdk-devbind.py -s" says that the interface is bound to mlx5_core. ( Need > not be bounded to igb_uio) > > *# /var/cache/ocsm/dpdk/dpdk-18.11/usertools/dpdk-devbind.py -s* > > Network devices using kernel driver > =================================== > 0000:02:00.0 'NetXtreme BCM5720 Gigabit Ethernet PCIe 165f' if=em1 drv=tg3 > unused=igb_uio *Active* > 0000:02:00.1 'NetXtreme BCM5720 Gigabit Ethernet PCIe 165f' if=em2 drv=tg3 > unused=igb_uio > 0000:08:00.0 'MT27700 Family [ConnectX-4] 1013' if=p2p1 drv=mlx5_core > unused=igb_uio > 0000:08:00.1 'MT27700 Family [ConnectX-4] 1013' if=p2p2 drv=mlx5_core > unused=igb_uio > 0000:41:00.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' if=p1p1 > drv=i40e unused=igb_uio > 0000:41:00.1 'Ethernet Controller X710 for 10GbE SFP+ 1572' if=p1p2 > drv=i40e unused=igb_uio > > No 'Crypto' devices detected > ============================ > > No 'Eventdev' devices detected > ============================== > > No 'Mempool' devices detected > ============================= > > No 'Compress' devices detected > ============================== > > *# ibv_devinfo* > hca_id: mlx5_0 > transport: InfiniBand (0) > fw_ver: 12.25.1020 > node_guid: 506b:4b03:00db:fe0a > sys_image_guid: 506b:4b03:00db:fe0a > vendor_id: 0x02c9 > vendor_part_id: 4115 > hw_ver: 0x0 > board_id: MT_2150110033 > 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: 12.25.1020 > node_guid: 506b:4b03:00db:fe0b > sys_image_guid: 506b:4b03:00db:fe0a > vendor_id: 0x02c9 > vendor_part_id: 4115 > hw_ver: 0x0 > board_id: MT_2150110033 > phys_port_cnt: 1 > port: 1 > state: PORT_DOWN (1) > max_mtu: 4096 (5) > active_mtu: 1024 (3) > sm_lid: 0 > port_lid: 0 > port_lmc: 0x00 > link_layer: Ethernet > > > # *mst start* > Starting MST (Mellanox Software Tools) driver set > Loading MST PCI module - Success > Loading MST PCI configuration module - Success > Create devices > -W- Missing "lsusb" command, skipping MTUSB devices detection > Unloading MST PCI module (unused) - Success > *# mst status* > MST modules: > ------------ > MST PCI module is not loaded > MST PCI configuration module loaded > > MST devices: > ------------ > /dev/mst/mt4115_pciconf0 - PCI configuration cycles access. > domain:bus:dev.fn=0000:08:00.0 > addr.reg=88 data.reg=92 cr_bar.gw_offset=-1 > Chip revision is: 00 > > > * # ls -d /sys/class/net/*/device/infiniband_verbs/uverbs* | cut -d / -f 5* > p2p1 > p2p2 > > However testpmd works fine here; > *# ./testpmd -l 8-15 -n 4 -w 08:00.0 -w 08:00.1 -- --rxq=2 --txq=2 -i* > EAL: Detected 32 lcore(s) > EAL: Detected 2 NUMA nodes > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: Probing VFIO support... > EAL: VFIO support initialized > EAL: PCI device 0000:08:00.0 on NUMA socket 0 > EAL: probe driver: 15b3:1013 net_mlx5 > EAL: PCI device 0000:08:00.1 on NUMA socket 0 > EAL: probe driver: 15b3:1013 net_mlx5 > Interactive-mode selected > testpmd: create a new mbuf pool : n=203456, size=2176, > socket=0 > testpmd: preferred mempool ops selected: ring_mp_mc > testpmd: create a new mbuf pool : n=203456, size=2176, > socket=1 > testpmd: preferred mempool ops selected: ring_mp_mc > Configuring Port 0 (socket 0) > Port 0: 50:6B:4B:DB:FE:0A > Configuring Port 1 (socket 0) > Port 1: 50:6B:4B:DB:FE:0B > Checking link statuses... > Done > testpmd> Killed > > > Is anything missing here for API rte_eth_dev_count_avail() not working > here. Guidance to resolve from this blocking issue is much appreciated. > Let me know if any other input/info is required. > > Thanks in advance > Regards > Vikram Mellanox driver does not need or want to be bound to igb_uio. It is a bifurcated driver.