From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 12B273798 for ; Tue, 2 Oct 2018 11:59:21 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Oct 2018 02:59:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,331,1534834800"; d="scan'208";a="93848546" Received: from aburakov-mobl1.ger.corp.intel.com (HELO [10.237.220.113]) ([10.237.220.113]) by fmsmga004.fm.intel.com with ESMTP; 02 Oct 2018 02:59:12 -0700 To: eric zhang , john.mcnamara@intel.com, hemant.agrawal@nxp.com, Thomas Monjalon , John McNamara Cc: allain.legacy@windriver.com, matt.peters@windriver.com, dev@dpdk.org References: <1538409290-24998-1-git-send-email-eric.zhang@windriver.com> From: "Burakov, Anatoly" Message-ID: Date: Tue, 2 Oct 2018 10:59:11 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1538409290-24998-1-git-send-email-eric.zhang@windriver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] doc: update the doc for adding EAL option 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: Tue, 02 Oct 2018 09:59:22 -0000 Hi Eric, Ferruh has already mention that this should be part of the patch adding the --iova-mode flag, not separate (or at the very least be in the same patchset!). In addition, the commit headline is very vague. Suggested rewording: doc: document --iova-mode EAL flag On 01-Oct-18 4:54 PM, eric zhang wrote: > This patch updates Programmer's Guide and EAL parameter guides > to show EAL option "--iova-mode" support. > > Signed-off-by: eric zhang > --- > doc/guides/prog_guide/env_abstraction_layer.rst | 8 ++++++++ > doc/guides/testpmd_app_ug/run_app.rst | 4 ++++ > 2 files changed, 12 insertions(+) > > diff --git a/doc/guides/prog_guide/env_abstraction_layer.rst b/doc/guides/prog_guide/env_abstraction_layer.rst > index d362c92..a47fb38 100644 > --- a/doc/guides/prog_guide/env_abstraction_layer.rst > +++ b/doc/guides/prog_guide/env_abstraction_layer.rst > @@ -321,6 +321,14 @@ Misc Functions > > Locks and atomic operations are per-architecture (i686 and x86_64). > > +IOVA Mode Configuration > +~~~~~~~~~~~~~~~~~~~~~~~ > + > +Auto detection of the IOVA mode, based on probing the PCI bus and IOMMU configuration, may not report > +the desired addressing mode when virtual devices that are not directly attached to the PCI bus are present. > +To facilitate forcing the IOVA mode to a specific value the EAL command line option ``--iova-mode=mode`` can > +be used to select either physical addressing('pa') or virtual addressing('va'). Presumably this isn't only applicable to PCI bus, but can be any bus, correct? > + > Memory Segments and Memory Zones (memzone) > ------------------------------------------ > > diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst > index f301c2b..be2911c 100644 > --- a/doc/guides/testpmd_app_ug/run_app.rst > +++ b/doc/guides/testpmd_app_ug/run_app.rst > @@ -133,6 +133,10 @@ See the DPDK Getting Started Guides for more information on these options. I wanted to ask why are you adding this to testpmd user guide, as this is an EAL parameter, not a testpmd parameter, but as far as i can tell, there isn't a central location where we document all EAL flags. +Thomas, John This looks like a gap in our documentation. There should be a place where we can describe all EAL parameters. Since they can be OS-specific, it probably should be somewhere under Linux/FreeBSD GSG. Thoughts? > > Use malloc instead of hugetlbfs. > > +* ``--iova-mode=mode`` Current style is to list all valid values, like this: ``--iova-mode `` > + > + Force IOVA mode to a specific value. Valid values are 'pa' or 'va'. > + > > Testpmd Command-line Options > ---------------------------- > -- Thanks, Anatoly