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 E7168A046B for ; Thu, 25 Jul 2019 11:35:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B1701C2D0; Thu, 25 Jul 2019 11:35:38 +0200 (CEST) Received: from mail-ua1-f67.google.com (mail-ua1-f67.google.com [209.85.222.67]) by dpdk.org (Postfix) with ESMTP id 72A6B1C2CA for ; Thu, 25 Jul 2019 11:35:37 +0200 (CEST) Received: by mail-ua1-f67.google.com with SMTP id o19so19592196uap.13 for ; Thu, 25 Jul 2019 02:35:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=763UmV2OeJVCrLO7JzKBaOr12AfLtqm2Bvzh+w0BNJ8=; b=kn/pbrZWdekgFvdRhLPM3IyQ3T0s4wpwEMLKIXoqJRU/JwpsuTmSb61ISQ8Ri3DApt +jqaupjtGNRO3FDbYm0HOQeegPi74Ni6NQPBww3jyQb6K0eNADALY6oSRAIYbh+ygcX9 +NteILSZdfSNx/4HLX8tlq2S5sTJ+AbPrS6zR6RmLjHRmU9AUE9QpTGHytw0c1j30yZL G6s3lEI8XYAZHwMybLBtOyT48dqwfDIzkO24wISeSdy1YnQurTJO9I7D+VirJdGX1h/b 8CNgbJ2Y+jkoQtAS9qry1tkx0G6FLIV7XK+zmzJ8EvsBIor14sLoFIQnKtN+cEGxRLwA hQfg== X-Gm-Message-State: APjAAAWcfJZijif2lbE1DiGlMpJQOKsQlTSSeAxqMkYjLVLKucBKlTYe hReJmJRj6hrspOzUGAHvbXGayJ3vDl6OdxZv+4ZBvg== X-Google-Smtp-Source: APXvYqx6R/1ihZ1LMBVsJwuM3QF8y+KmnFdjgpI4A9snyJh6dpHAknOCn1XJAlBy/3+WgKh/3u7cvEqAiCBXRfUVGsQ= X-Received: by 2002:ab0:168a:: with SMTP id e10mr8977752uaf.87.1564047336835; Thu, 25 Jul 2019 02:35:36 -0700 (PDT) MIME-Version: 1.0 References: <5d8f83fb7dd574d83a044c6a01e2613798f256c3.1563986790.git.anatoly.burakov@intel.com> <61fe76fd-beb8-6074-32e1-16b47170a6ef@intel.com> In-Reply-To: <61fe76fd-beb8-6074-32e1-16b47170a6ef@intel.com> From: David Marchand Date: Thu, 25 Jul 2019 11:35:25 +0200 Message-ID: To: "Burakov, Anatoly" Cc: dev , Jerin Jacob Kollanukkaran , Thomas Monjalon Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] eal: pick IOVA as PA if IOMMU is not available 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" On Thu, Jul 25, 2019 at 11:31 AM Burakov, Anatoly wrote: > > On 25-Jul-19 9:05 AM, David Marchand wrote: > > On Wed, Jul 24, 2019 at 6:46 PM Anatoly Burakov > > wrote: > >> > >> When IOMMU is not available, /sys/kernel/iommu_groups will not be > >> populated. This is happening since at least 3.6 when VFIO support > >> was added. If the directory is empty, EAL should not pick IOVA as > >> VA as the default IOVA mode. > >> > >> We also assume that VFIO equals IOMMU, so if VFIO support is not > >> compiled, we always assume IOMMU support is not available. > > > > Not sure I agree with this statement. > > What about unknown (from eal pov) kernel drivers? > > Are there any cases where we can use IOVA as VA mode without having VFIO > compiled? If a pmd relies on a kernel driver we don't know in EAL. This is not the case afaik, but I'd prefer we don't mix vfio and iommu. -- David Marchand