From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by dpdk.org (Postfix) with ESMTP id E05B52BA3 for ; Thu, 30 Aug 2018 11:43:40 +0200 (CEST) Received: by mail-wr1-f66.google.com with SMTP id k5-v6so7421574wre.10 for ; Thu, 30 Aug 2018 02:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=DpRQQ3yjclyxTD5RnIngunTmmRlNrMJdfg6/jjFQffw=; b=kmLnyzXfATb0HGRPm2ACjk8I5Ts5QwX40aGjYRVEdfKev1bZnqbTS8OhNkNsK2mfS9 yezJ2Xmdjy1wjKhwp4X4KgQ555T9SmSt3Ups43u+wfpc63u5j+hY5SqONUTQ911rnNJG kRGm9/Jce2ryyF+BKT+7G2MrBfS9HB5g0a+5ZTGvnu5Z4/JMlGoxTSZKIvmul5gWvF5j W7QHX3mYNfW90+VH80JZJmt9EXmB9aFfXjZ/sG5bk/soXBwYvSem7RMLRJzHtsoAw6AQ U9jnUK4ICQrrmHVLGzent+yxZ+oZQGCEIQz409JgdjW1hBFeEj2CVVbirIttT0RBkbl0 UC7Q== 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:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=DpRQQ3yjclyxTD5RnIngunTmmRlNrMJdfg6/jjFQffw=; b=nMLEio6WzyJ9jDxs9sdeHRCBReM9u+cFNdk1yc3mfsg8iEASClGnsVbSPJHQiuXapi xwqeCAwkVbXYQJRZlk7Q8Zhwkr36viexLqRHHTswxKNXyKSpuuqEb+SuE0YlI3wZ6bqg OC/NvKr52RwaaORdGCgOPw0X7zhFWX/WreJTtLAXOkJ9fFw5VPoYbiTp91fNfgPDGlIk 6CBXom9vx9zm5DMwUMbPDFuGsmgO+4Kid/u1/fF3pirn1fwTui1gpsCitKFtlsdWIM2L dhR68rUFz319VirBd2safKnLGz/eiSkNJRIHhWTVeX6GEE9dkiWFit1TtlvZ8cXwokQB 0gUQ== X-Gm-Message-State: APzg51AnTiyNr8ec06pi1YbTi6EYwJhyQ1qkXYiIax8dSigAQ9yY2cqS NzKweufJjKg0RmBPaSaUA93FAA== X-Google-Smtp-Source: ANB0VdauOc8XgH+kCf1taZTmckSQj5o2MXsJgOXxnB2FHjdaZdf8/Xl+uEixk6XQP38ljDPIlicXtA== X-Received: by 2002:a5d:4990:: with SMTP id r16-v6mr7360399wrq.116.1535622220550; Thu, 30 Aug 2018 02:43:40 -0700 (PDT) Received: from bidouze.vm.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 124-v6sm1950210wmk.20.2018.08.30.02.43.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Aug 2018 02:43:39 -0700 (PDT) Date: Thu, 30 Aug 2018 11:43:23 +0200 From: =?iso-8859-1?Q?Ga=EBtan?= Rivet To: "Burakov, Anatoly" Cc: eric zhang , bruce.richardson@intel.com, dev@dpdk.org, Allain.Legacy@windriver.com, Matt.Peters@windriver.com Message-ID: <20180830094323.37xkgud4fz3mflbg@bidouze.vm.6wind.com> References: <1535558289-10336-1-git-send-email-eric.zhang@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH] eal: force IOVA mode to physical 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: , X-List-Received-Date: Thu, 30 Aug 2018 09:43:41 -0000 Hi, On Thu, Aug 30, 2018 at 10:09:04AM +0100, Burakov, Anatoly wrote: > On 29-Aug-18 4:58 PM, eric zhang wrote: > > This patch adds a configuration option to force the IOVA mode to > > physical address (PA). There exists virtual devices that are not > > directly attached to the PCI bus, and therefore the auto detection > > of the IOVA mode based on probing the PCI bus and IOMMU configuration > > may not report the required addressing mode. Having the configuration > > option permits the mode to be explicitly configured in this scenario. > > > > Signed-off-by: eric zhang > > --- > > Defining this at compile-time seems like an overkill. Wouldn't it be better > to just add an EAL command-line option to force IOVA mode to a particular > value? > > -- > Thanks, > Anatoly What is the bus of these devices and why not implement get_iommu_class in it? -- Gaëtan Rivet 6WIND