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 A2B54A00E6 for ; Wed, 10 Jul 2019 23:49:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2F62E1B197; Wed, 10 Jul 2019 23:49:04 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 606D7322C for ; Wed, 10 Jul 2019 23:49:03 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CA026308FC23; Wed, 10 Jul 2019 21:49:02 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-204-39.brq.redhat.com [10.40.204.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 402CF60BFB; Wed, 10 Jul 2019 21:49:00 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: anatoly.burakov@intel.com, jerinj@marvell.com, thomas@monjalon.net Date: Wed, 10 Jul 2019 23:48:47 +0200 Message-Id: <1562795329-16652-1-git-send-email-david.marchand@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Wed, 10 Jul 2019 21:49:02 +0000 (UTC) Subject: [dpdk-dev] [PATCH 0/2] Fixes on IOVA mode selection 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" Following the issues reported by Jerin and the discussion that emerged from it, here are fixes to restore and document the behavior of the EAL and the pci bus driver. I pondered all the arguments and tried to have the less changes possible. I can't find a need for a flag to just announce support of physical addresses from the pmd point of view. So it ended up with something really close to what Jerin had suggested. But the problem is that this is still unfinished wrt the documentation. I will be offline for 10 days and we need this to move forward, so sending anyway. TODO on the second patch: - split it (?), - add documentation on PCI bus considerations, - add more rationals on RTE_IOVA_DC in the commitlog and the documentation, - fix the remaining bugs (hopefully, none), -- David Marchand David Marchand (2): Revert "bus/pci: add Mellanox kernel driver type" eal: fix IOVA mode selection as VA for pci drivers doc/guides/prog_guide/env_abstraction_layer.rst | 31 +++++++++++++++++++++++++ drivers/bus/pci/linux/pci.c | 24 +++++-------------- drivers/bus/pci/pci_common.c | 30 +++++++++++++++++++----- drivers/bus/pci/rte_bus_pci.h | 4 ++-- drivers/net/atlantic/atl_ethdev.c | 3 +-- drivers/net/bnxt/bnxt_ethdev.c | 3 +-- drivers/net/e1000/em_ethdev.c | 3 +-- drivers/net/e1000/igb_ethdev.c | 5 ++-- drivers/net/enic/enic_ethdev.c | 3 +-- drivers/net/fm10k/fm10k_ethdev.c | 3 +-- drivers/net/i40e/i40e_ethdev.c | 3 +-- drivers/net/i40e/i40e_ethdev_vf.c | 2 +- drivers/net/iavf/iavf_ethdev.c | 3 +-- drivers/net/ice/ice_ethdev.c | 3 +-- drivers/net/ixgbe/ixgbe_ethdev.c | 5 ++-- drivers/net/mlx4/mlx4.c | 3 +-- drivers/net/mlx5/mlx5.c | 2 +- drivers/net/nfp/nfp_net.c | 6 ++--- drivers/net/octeontx2/otx2_ethdev.c | 5 ---- drivers/net/qede/qede_ethdev.c | 6 ++--- drivers/raw/ioat/ioat_rawdev.c | 3 +-- lib/librte_eal/common/eal_common_bus.c | 30 +++++++++++++++++++++--- lib/librte_eal/common/include/rte_dev.h | 1 - 23 files changed, 110 insertions(+), 71 deletions(-) -- 1.8.3.1