From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) by dpdk.org (Postfix) with ESMTP id D82F5E5D for ; Tue, 19 Dec 2017 08:14:02 +0100 (CET) Received: by mail-wr0-f172.google.com with SMTP id h1so17378429wre.12 for ; Mon, 18 Dec 2017 23:14:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4PD63Ru5Ta73bN0kipjWWRj8Cmfdv7KoY36UXhUS170=; b=PDw+s6esoKUIrLNttR4L903FacqvO3HmFXDIfpOBFAtrLwCTt0UleaPpHg6+surD6m iuENjog7+6vo+7HHK8vdwRXsOKnI8FKHiJ7hBCV/X1mhmkBqk/RXYXK+gCCSWmChdVhJ NhnzPNQMMMX92X6NMGNOwIygY5Gn3MFXcDPxSgmKlFzYSrjJoqYzrWRVv9rPap5wH1vp 5Y8414RPYBOFdlM7Sivft+sKdGlN77HgUI6pBj/QMgVON/au4FA/2dU14IZ/kSpn92k8 RcCIQzgGtHQ7d8a/bfIjDR7fvvDQYtcIdR8bC5cMFEV60vlMXBVJ7bMZjiInR473Aqw1 inDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4PD63Ru5Ta73bN0kipjWWRj8Cmfdv7KoY36UXhUS170=; b=SIuDQKO7w73zlm29vTL35X20SrCuCKq95naDiarjx1oP9EzWjBV4bAO+f5X2GYIkkK 8XUoXyVTlwKbmd1iGTxHKlrLKU0B9uKMvHQY0nRmlhLEPnOiebz/oq3QyNqzSjLluO6e YO6MBMaSbq35fhid3PB7ScGyHDSJqKc0Als9qgspJ50ySUhF0kmg1mgOE7HKu5qCuQrM 9TnzXXtSFax/Nbd6H2lKCo2q2MIUC2/4v9EnLTWGHRcHqFYVL/zo5clvYidU5wVN4eJp SwiGP/Fja5GzgwrqAM0kx1jbi/I0l9OALRdPvS8JLmHBif+WPmldzX27owLTumPawTMO GdfQ== X-Gm-Message-State: AKGB3mLllgBA1A7tdz3XLvJTIbB7xOQoni3ameFs2ZhmQoNiTzZOhnwZ YPS/THhuYWo8wNQdm+0cAJ9RosdBoP/ECzimPgNXlA== X-Google-Smtp-Source: ACJfBouJXA6osNju0XNz5QAD+MoCjp1tIPalWMuZqI/mGUTV9v4COyc2eEfFn5l58ASNE/W3GokwDcJkq0tLYgHQKBE= X-Received: by 10.223.176.52 with SMTP id f49mr3635657wra.105.1513667642527; Mon, 18 Dec 2017 23:14:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.142.161 with HTTP; Mon, 18 Dec 2017 23:14:01 -0800 (PST) From: Hui Ling Date: Tue, 19 Dec 2017 15:14:01 +0800 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-users] DPDK mlx4 PMD on Azure VM X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2017 07:14:03 -0000 Hi Folks, I am trying to get DPDK up and running on my Azure VM. Per instructions from MS, I need to install DPDK with mlx4 PMD. I was able to compile but it doesn't seem to run correctly. I installed DPDK 17.11 on Ubuntu 16.04. And I downloaded MLNX OFED 4.2-1.2.0.0 and installed up-stream libs with ./mlnxofedinstall --guest --dpdk --upstream-libs MLX4 PMD in DPDK doesn't seem to work with lib from ubuntu repository and install OFED allows me to compile DPDK mlx4 PMD without any compilation problem. Then I tried to see if the mlx4 PMD works or not by running: root@myVM: ./build/app/testpmd -l 1-2 -n 4 -w 0003:00:02.0 -w 0004:00:02.0 -- --rxq=2 --txq=2 -i EAL: Detected 4 lcore(s) EAL: 2 hugepages of size 1073741824 reserved, but no mounted hugetlbfs found for that size EAL: Probing VFIO support... EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles ! EAL: PCI device 0003:00:02.0 on NUMA socket 0 EAL: probe driver: 15b3:1004 net_mlx4 PMD: mlx4.c:465: mlx4_pci_probe(): PCI information matches, using device "mlx4_2" (VF: true) PMD: mlx4.c:492: mlx4_pci_probe(): 1 port(s) detected PMD: mlx4.c:586: mlx4_pci_probe(): port 1 MAC address is 00:0d:3a:f9:08:0b EAL: PCI device 0004:00:02.0 on NUMA socket 0 EAL: probe driver: 15b3:1004 net_mlx4 PMD: mlx4.c:465: mlx4_pci_probe(): PCI information matches, using device "mlx4_3" (VF: true) PMD: mlx4.c:492: mlx4_pci_probe(): 1 port(s) detected PMD: mlx4.c:586: mlx4_pci_probe(): port 1 MAC address is 00:0d:3a:f9:23:63 Interactive-mode selected USER1: create a new mbuf pool : n=155456, size=2176, socket=0 Configuring Port 0 (socket 0) PMD: mlx4_rxq.c:811: mlx4_rx_queue_setup(): 0xde0740: MR creation failure: Operation not permitted Fail to configure port 0 rx queues EAL: Error - exiting with code: 1 Cause: Start ports failed This is where I am having problem: I already ran testpmd with root so I should have all the permission I need. And yet the error status indicates: PMD: mlx4_rxq.c:811: mlx4_rx_queue_setup(): 0xde0740: MR creation failure: Operation not permitted Is this because I am running on Azure VM? I also tried to run DPDK 17.11 on Ubuntu 17.10. It didn't work either. the testpmd hangs during "configuring Port 0" forever. Can someone from MS or Mellanox help me figure out why? and how to make mlx4 PMD work on Azure VM? Thank you!