From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7CDB3A0096 for ; Fri, 7 Jun 2019 20:33:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2900E1BBD1; Fri, 7 Jun 2019 20:33:29 +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 83BEB1BB9D for ; Fri, 7 Jun 2019 20:33:27 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id 83so1581092pgg.8 for ; Fri, 07 Jun 2019 11:33:27 -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:mime-version :content-transfer-encoding; bh=9i1r2V2UWNKgiP5mraU4CAoU/EqXcnU32MvZsp4Gc60=; b=qgMgAl+qZsstZoPajmzQWqieRdFOwKtfxRheGWixLSxJa4ZN84FtTYp3jHpHQIlAso JRZqNFiUiLAF9iW2Q8tPthRIqd73//0cdiPuLxZo5fm5SQOTNo3Zys6l3tpkQWJwx3rY YrFckPy7WUgOU0IJyjslg6CfzkzsYCaJaiLrfMABkCUcjNDNnvRtOrcMEgik/bHC1Faq R/wK2khA/wulG9UY5D00vks6999mx8k7mPoR6A5hgHENF+kRU9gTIqfFzedl0gVRzZJF EvX7xXNLQT8QuDV784LUHw00fCJy1eEME7ytXOLWc7R/aQU8kXJ+MH0Cc58vCN6/GfQj IFqg== 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:mime-version :content-transfer-encoding; bh=9i1r2V2UWNKgiP5mraU4CAoU/EqXcnU32MvZsp4Gc60=; b=ZCymA5zs0xIy5EVxo9sCBkoBpE0O5lu1n946g15iQXoT42JBjzaru+GIE78+HJTMb0 gJKAkZpbGdisdGMVhp4kmJAhN3VETjjOFFPVawnYEaCyGojstT1EHI1DaCw6MvQuvNrP KgtQo/TdG4SLQ7ByBOLzbsEuNU8opvqAe7ZdU7kt4+rRhgejqNwWSJz68zFeqtGqsLto x33Segqgy9G2XElW9d9TDBFBqYTJBob4YlT24NIOTolxmzD0YBtstyCCHHzmJPY91bju dTInKvWLZq7KjFoS09rQht2PUvosmWcUl8Eb5bEOFtPi22yLMhyxtRd0K2HNMjbaH5CF kjRA== X-Gm-Message-State: APjAAAV4ACYVNSwUyz4OH6RXnQVptwN1O8kY3/750ugtcAcc/Q79hag2 CcYDJVE6DStW5Nc7gWZyo8/cnw== X-Google-Smtp-Source: APXvYqwyGuJ1nZ22sNEyKEhp13lNK09tjkpZ8D4CxD50A7lL8cyrfidkS6cZVmgT/PpvvLy6ZSFPyQ== X-Received: by 2002:a63:e304:: with SMTP id f4mr4287392pgh.187.1559932406290; Fri, 07 Jun 2019 11:33:26 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id d4sm2558264pju.19.2019.06.07.11.33.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 07 Jun 2019 11:33:26 -0700 (PDT) Date: Fri, 7 Jun 2019 11:33:24 -0700 From: Stephen Hemminger To: Yongseok Koh , Shahaf Shuler Cc: dev@dpdk.org Message-ID: <20190607113324.25248eba@hermes.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] Please revert mlx IOVA VA mode patch 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" The Netvsc PMD got broken on DPDK 19.08 by a bad patch in Mellanox driver. On a simple setup with SRIOV enabled and using netvsc PMD with the testpmd. It worked in 19.05 and does not work with current master. The probe code gets stuck because netvsc PMD sends a request to host and never sees a response. # ./build/app/testpmd --log-level='pmd.net.netvsc.*:debug' -l 0-3 -n 4 -- --rxq=4 --txq=4 -i EAL: Detected 4 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Probing VFIO support... EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles ! EAL: PCI device 935f:00:02.0 on NUMA socket 0 EAL: probe driver: 15b3:1014 net_mlx5 net_mlx5: can not get IB device "mlx5_0" ports number eth_hn_probe(): >> eth_hn_dev_init(): >> hn_nvs_init(): NVS version 0x60001, NDIS version 6.30 hn_nvs_conn_rxbuf(): connect rxbuff va=0x2200402000 gpad=0xe1e2d hn_nvs_conn_rxbuf(): receive buffer size 1728 count 18811 hn_nvs_conn_chim(): connect send buf va=0x2202302000 gpad=0xe1e2e hn_nvs_conn_chim(): send buffer 16777216 section size:6144, count:2730 (hung) The problem does not occur without SRIOV (or if MLX driver is not compiled in). Doing bisect the problem is caused by: commit 69c06d0e357ed0064b498d510d169603cf7308cd Author: Yongseok Koh Date: Thu May 2 02:07:54 2019 -0700 net/mlx: support IOVA VA mode Set RTE_PCI_DRV_IOVA_AS_VA to driver's drv_flags as device's IOMMU takes virtual address. Cc: stable@dpdk.org Signed-off-by: Yongseok Koh Acked-by: Shahaf Shuler Please either revert or fix this patch ASAP.