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 DD39CA04C7; Mon, 25 Nov 2019 11:22:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B6E562952; Mon, 25 Nov 2019 11:22:45 +0100 (CET) Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) by dpdk.org (Postfix) with ESMTP id E500B28EE for ; Mon, 25 Nov 2019 11:22:44 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 4F5F862B2; Mon, 25 Nov 2019 05:22:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 25 Nov 2019 05:22:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=TTKfgdhTAZMXL/ZPi8J/cdlwvVrwkrkUwS9h9pQZt0M=; b=EupVScj+XtLO SVI5cFES4Du6LsvyPCE/+Pw+jnAdgs1+WBQxE7bbvibx1QgN/reGGLyh0DAR9Rb6 Yt3hKv0aoAII0lW4/lVfzz4p72lreRypgThInCBeLscYxoFsLT6rxax9FJiJTL/Q nhLc12bzdKZonmGaA3Hu0DVojWqwNLI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=TTKfgdhTAZMXL/ZPi8J/cdlwvVrwkrkUwS9h9pQZt 0M=; b=ohs9OePLmACO44Xb6t4dlT28nWQ8cOtTG7rRD1WB5U2GbMiZUK6dP3RxS r4UjmG2D+rUR0852i9uD+glVAPsmHz8VnTtShiCkhfeEIjvMYzkjLyyObsMiBd8f jpz+zDmWn+D+A/kTnVNu3IoyeIQiLgdADk+4CTBq6CkO0NHoZgR0r/bc6cJtgbCI zz1Wycujyo/mUbIRZ0N8XfT6d+v99JxL/gVGKOWhXQdhvVghC8twtCrcx7flSurf 2QGAKBaoOmGfDBlrTn/EE5L9BMbIZQPZNb2Je3MMqecKQA2LFM+cCEeU2V6afZko jwoRypiHjQHJbcibZI2d2+Ldct8IA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeiuddgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecuff homhgrihhnpeguphgukhdrohhrghenucfkphepjeejrddufeegrddvtdefrddukeegnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtne cuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 5494C8005C; Mon, 25 Nov 2019 05:22:39 -0500 (EST) From: Thomas Monjalon To: Ferruh Yigit Cc: david.marchand@redhat.com, ajit.khaparde@broadcom.com, alejandro.lucero@netronome.com, anatoly.burakov@intel.com, beilei.xing@intel.com, bruce.richardson@intel.com, dev@dpdk.org, hyonkim@cisco.com, igor.russkikh@aquantia.com, jerinj@marvell.com, jingjing.wu@intel.com, john.mcnamara@intel.com, johndale@cisco.com, kirankumark@marvell.com, konstantin.ananyev@intel.com, marko.kovacevic@intel.com, matan@mellanox.com, ndabilpuram@marvell.com, pavel.belous@aquantia.com, qi.z.zhang@intel.com, qiming.yang@intel.com, rmody@marvell.com, shahafs@mellanox.com, shshaikh@marvell.com, somnath.kotur@broadcom.com, viacheslavo@mellanox.com, wenzhuo.lu@intel.com, xiao.w.wang@intel.com, yskoh@mellanox.com Date: Mon, 25 Nov 2019 11:22:38 +0100 Message-ID: <9486799.kn5VEkfAUu@xps> In-Reply-To: <20191125093313.61700-1-ferruh.yigit@intel.com> References: <1563800213-29839-3-git-send-email-david.marchand@redhat.com> <20191125093313.61700-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v4 2/4] eal: fix IOVA mode selection as VA for PCI drivers 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" 25/11/2019 10:33, Ferruh Yigit: > It looks like DPDK application initialized as IOVA=VA, > and the new device is bound to 'igb_uio' which forces it to PA, > fails on above check. Do you mean this use case was not tested earlier with DPDK 19.08? > I would like to get your comment on the issue. > > For the OvS mode, hopefully binding the device to 'vfio-pci' > can be a solution, but for the cases we don't have that option, > can/should we force the DPDK to PA mode after initialization? I think this is expected, because VA is the new default since 19.08: http://doc.dpdk.org/guides/rel_notes/release_19_08.html#new-features In case, there is no constraint on initialization, we have to decide which mode is preferred. Previously PA was preferred. For the sake of modernity (and because it fits with some new devices), the preference has been changed to VA. If igb_uio device is used at initialization, the PA mode should be used. If igb_uio (PA-only) device is hotplugged, no luck! If VA-only device is hotplugged, it works! I think this change is one step in deprecating igb_uio.