Skip to contentSkip to conversation

doc: update the doc for adding EAL option

PATCH In review eric zhang 4 participants 6 messages Oct 1, 2018 – Oct 3, 2018

lore
Share & tools
lore

eric zhang

author
#0 lore raw

PATCH 1/1 doc: update the doc for adding EAL option

This patch updates Programmer's Guide and EAL parameter guides to show EAL option "--iova-mode" support.

---
 doc/guides/prog_guide/env_abstraction_layer.rst | 8 ++++++++
 doc/guides/testpmd_app_ug/run_app.rst           | 4 ++++
 2 files changed, 12 insertions(+)
doc/guides/prog_guide/env_abstraction_layer.rst +8 -0
index d362c92..a47fb38 100644
@@ -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').
+
 Memory Segments and Memory Zones (memzone)
 ------------------------------------------
 
doc/guides/testpmd_app_ug/run_app.rst +4 -0
index f301c2b..be2911c 100644
@@ -133,6 +133,10 @@ See the DPDK Getting Started Guides for more information on these options.
 
     Use malloc instead of hugetlbfs.
 
+*   ``--iova-mode=mode``
+
+    Force IOVA mode to a specific value. Valid values are 'pa' or 'va'.
+
 
 Testpmd Command-line Options
 ----------------------------
Signature · 1 line
2.7.4
#1 lore raw

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

Quoted 14 lines · eric zhang

This patch updates Programmer's Guide and EAL parameter guides to show EAL option "--iova-mode" support.

---
  doc/guides/prog_guide/env_abstraction_layer.rst | 8 ++++++++
  doc/guides/testpmd_app_ug/run_app.rst           | 4 ++++
  2 files changed, 12 insertions(+)
doc/guides/prog_guide/env_abstraction_layer.rst +0 -0
index d362c92..a47fb38 100644

doc/guides/prog_guide/env_abstraction_layer.rst Misc Functions · line 330

Quoted 10 lines
doc/guides/prog_guide/env_abstraction_layer.rst +7 -0
@@ -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?

doc/guides/testpmd_app_ug/run_app.rst See the DPDK Getting Started Guides for more information on these options.

Quoted 9 lines
doc/guides/prog_guide/env_abstraction_layer.rst +1 -0
+
  Memory Segments and Memory Zones (memzone)
  ------------------------------------------
 
doc/guides/testpmd_app_ug/run_app.rst +0 -0
index f301c2b..be2911c 100644
@@ -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?

doc/guides/testpmd_app_ug/run_app.rst See the DPDK Getting Started Guides for more information on these options. · line 136

Quoted 4 lines
doc/guides/testpmd_app_ug/run_app.rst +1 -0
      Use malloc instead of hugetlbfs.
 
+*   ``--iova-mode=mode``

Current style is to list all valid values, like this:

``--iova-mode <pa|va>``

Quoted 7 lines
doc/guides/testpmd_app_ug/run_app.rst +3 -0
+
+    Force IOVA mode to a specific value. Valid values are 'pa' or 'va'.
+
 
  Testpmd Command-line Options
  ----------------------------
 
Signature · 2 lines
Thanks,
Anatoly
#2 lore raw

02/10/2018 11:59, Burakov, Anatoly:

Quoted 3 lines

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?

I agree

#3 lore raw
Quoted 6 lines · Thomas Monjalon

02/10/2018 11:59, Burakov, Anatoly:

Quoted 3 lines

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?

I agree

+1

author
#4 lore raw
In reply to Burakov, Anatoly
Quoted 3 lines · Anatoly

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!).

OK. I will generate version 3 which has one patchset includes code and document patches.

Quoted 4 lines

In addition, the commit headline is very vague. Suggested rewording:

doc: document --iova-mode EAL flag

ok.

Quoted 20 lines · eric zhang
Quoted 20 lines

This patch updates Programmer's Guide and EAL parameter guides to show EAL option "--iova-mode" support.

---
  doc/guides/prog_guide/env_abstraction_layer.rst | 8 ++++++++ doc/guides/testpmd_app_ug/run_app.rst           | 4 ++++

  2 files changed, 12 insertions(+)
doc/guides/prog_guide/env_abstraction_layer.rst +0 -0
index d362c92..a47fb38 100644
@@ -321,6 +321,14 @@ Misc Functions

    Locks and atomic operations are per-architecture (i686 and x86_64). +IOVA Mode Configuration
+~~~~~~~~~~~~~~~~~~~~~~~

doc/guides/prog_guide/env_abstraction_layer.rst +2 -0
+
+Auto detection of the IOVA mode, based on probing the PCI bus and 

IOMMU configuration, may not report

Quoted 8 lines
Quoted 6 lines

+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?

It should be applicable to any bus since it would override the result from whatever bus scheme. Do you suggest to not mention "PCI bus" in the description?

Quoted 12 lines
Quoted 10 lines

+
  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

doc/guides/testpmd_app_ug/run_app.rst +0 -0
@@ -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.

That's the place that I can find where most eal command-line options are addressed.

Quoted 11 lines

+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?

Quoted 2 lines

        Use malloc instead of hugetlbfs.
  +*   ``--iova-mode=mode``

Current style is to list all valid values, like this:

``--iova-mode <pa|va>``

Maybe like "--iova-mode=<pa|va>" to comply with code

Quoted 9 lines
Quoted 7 lines
doc/guides/testpmd_app_ug/run_app.rst +3 -0
+
+    Force IOVA mode to a specific value. Valid values are 'pa' or 'va'.
+

    Testpmd Command-line Options
  ----------------------------

#5 lore raw
Quoted 42 lines · Eric Zhang
Quoted 3 lines · Anatoly

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!).

OK. I will generate version 3 which has one patchset includes code and document patches.

Quoted 4 lines

In addition, the commit headline is very vague. Suggested rewording:

doc: document --iova-mode EAL flag

ok.

Quoted 20 lines · eric zhang
Quoted 20 lines

This patch updates Programmer's Guide and EAL parameter guides to show EAL option "--iova-mode" support.

---
  doc/guides/prog_guide/env_abstraction_layer.rst | 8 ++++++++ doc/guides/testpmd_app_ug/run_app.rst           | 4 ++++

  2 files changed, 12 insertions(+)
doc/guides/prog_guide/env_abstraction_layer.rst +0 -0
index d362c92..a47fb38 100644
@@ -321,6 +321,14 @@ Misc Functions

    Locks and atomic operations are per-architecture (i686 and x86_64). +IOVA Mode Configuration
+~~~~~~~~~~~~~~~~~~~~~~~

doc/guides/prog_guide/env_abstraction_layer.rst +2 -0
+
+Auto detection of the IOVA mode, based on probing the PCI bus and 

IOMMU configuration, may not report

Quoted 8 lines
Quoted 6 lines

+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?

Quoted 2 lines

It should be applicable to any bus since it would override the result from whatever bus scheme. Do you suggest to not mention "PCI bus" in the description?

Yes, that is what i was implying. Sorry i didn't make it clear enough.

Quoted 12 lines
Quoted 12 lines
Quoted 10 lines

+
  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

doc/guides/testpmd_app_ug/run_app.rst +0 -0
@@ -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.

Quoted 1 line

That's the place that I can find where most eal command-line options are addressed.

Yes. For now it's OK to put it into testpmd documentation. We'll fix this problem later.

Quoted 5 lines
Quoted 5 lines

+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?

Quoted 7 lines
Quoted 6 lines
Quoted 2 lines

        Use malloc instead of hugetlbfs.
  +*   ``--iova-mode=mode``

Current style is to list all valid values, like this:

``--iova-mode <pa|va>``

Maybe like "--iova-mode=<pa|va>" to comply with code

Code actually doesn't care if you put a "=" sign there :) It is better to follow style the rest of documentation has.

Quoted 11 lines
Quoted 9 lines
Quoted 7 lines
doc/guides/testpmd_app_ug/run_app.rst +3 -0
+
+    Force IOVA mode to a specific value. Valid values are 'pa' or 'va'.
+

    Testpmd Command-line Options
  ----------------------------

Signature · 2 lines
Thanks,
Anatoly