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 B48FEA046B for ; Tue, 23 Jul 2019 12:25:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 372B71BFC4; Tue, 23 Jul 2019 12:25:48 +0200 (CEST) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id C76C01BFC0 for ; Tue, 23 Jul 2019 12:25:46 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 7B5445F2; Tue, 23 Jul 2019 06:25:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 23 Jul 2019 06:25:45 -0400 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=u71FDBrp6QKN1JR6x2voPDPyuSN8Vn8XS5JhPXps/4c=; b=rjSjUOvtRuIg B90JxJEOi2n1D5gNUNxd7KgeYBHqMOziKwt3kqjPOi7a344cHaIDhhmm5aedPWh6 So4W4pTaRnv4woIRgWNfOABGkDmGACdYXNv0QSlsBpiZVMcyGzUUejA321hK6uRl rodLpPnkfWRTf9ybT8LjIfuMJ8O7p9o= 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=fm3; bh=u71FDBrp6QKN1JR6x2voPDPyuSN8Vn8XS5JhPXps/ 4c=; b=uBvCYmTvf2dQ6R9V1wuI9oSyEdF78Rz11J55RqcvC9vQ37szFH+r0PUxf 8+5v/hJiwMT602SRO5P+x8grYb8tvU4JVhzRR7oWF3btgowZpCEJu7C90leZZFtg ydlHhSWU5fDxXUK9bv2Ufvj5toWyQMRmuup6YviPaG5AcvF9Br1cwnW4nRP10Xjh kWQFWuwZltWoOkK0PFURGNNcD5gHSzCUldOxJANz6nM8OxGleYiQRD/JNiNs/xCX R9fldjvevjBES9Lg2lVinjEr+xg10r828qmXPC2SCRKoods+LX3V8p30Friid3/T hfYIkuET07xhH40hgf4wOKAk1aP6A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrjeekgddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd 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 99028380085; Tue, 23 Jul 2019 06:25:43 -0400 (EDT) From: Thomas Monjalon To: "Burakov, Anatoly" Cc: Jerin Jacob Kollanukkaran , "Stojaczyk, Dariusz" , David Marchand , "dev@dpdk.org" Date: Tue, 23 Jul 2019 12:25:42 +0200 Message-ID: <1862469.LujG46irEj@xps> In-Reply-To: <3397bb38-115b-40e8-c208-006fa5dd7405@intel.com> References: <1562795329-16652-1-git-send-email-david.marchand@redhat.com> <3397bb38-115b-40e8-c208-006fa5dd7405@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v4 0/4] 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" 23/07/2019 11:57, Burakov, Anatoly: > A machine without an IOMMU shouldn't have picked IOVA as VA in the first > place. Perhaps this is something we could fix? I'm not sure how to > detected that condition though, i don't think there's a mechanism to > know that for sure. Some kernels create a "iommu" sysfs directories, but > i'm not too sure if they're 1) there for older kernels we support, and > 2) always there. [..] > On my machine, "/sys/devices/virtual/iommu" exists when IOMMU is > enabled, but doesn't exist if it isn't ("/sys/class/iommu" exists in > both cases, but is empty when IOMMU is disabled). Perhaps we could go > off that? Yes, good idea. We need to check how these sysfs entries are managed, and how old they are by looking at Linux code history.