doc: Clarify IOMMU usage with "uio-pci" kernel module
PATCH 1/1 doc: Clarify IOMMU usage with "uio-pci" kernel module
When binding the devices used by DPDK to the "uio-pci" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.
The patch clarifies the IOMMU configuration on both x86_64 and arm64 systems.
--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)
doc/guides/linux_gsg/linux_drivers.rst +7 -0
@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices for used DPDK bound to the ``uio-pci`` kernel module, please make + sure that the IOMMU is disabled. We can add ``intel_iommu=off`` or ``amd_iommu=off`` + in ``GRUB_CMDLINE_LINUX`` in grub on x86_64 systems, or add ``iommu.passthrough=1`` + on arm64 system. + Since DPDK release 1.7 onward provides VFIO support, use of UIO is optional for platforms that support using VFIO.
Signature · 1 line
2.7.4
Quoted 10 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of tone.zhang
Sent: Tuesday, September 4, 2018 4:59 PM
To: [email protected]
Cc: nd <[email protected]>
Subject: [dpdk-dev] [PATCH] doc: Clarify IOMMU usage with "uio-pci" kernel module
Quoted 8 lines
When binding the devices used by DPDK to the "uio-pci" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.
The patch clarifies the IOMMU configuration on both
x86_64and arm64 systems.Signed-off-by tone.zhang <[email protected]>
Quoted 28 lines
--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +3
-0@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices for used DPDK bound to the ``uio-pci`` kernel module, pleasemake
+ sure that the IOMMU is disabled. We can add ``intel_iommu=off`` or
``amd_iommu=off``
+ in ``GRUB_CMDLINE_LINUX`` in grub onx86_64systems, or add
``iommu.passthrough=1``doc/guides/linux_gsg/linux_drivers.rst +2
-0+ on arm64 system. + Since DPDK release 1.7 onward provides VFIO support, use of UIO is optionalfor platforms that support using VFIO.
--
2.7.4
Quoted 17 lines · tone.zhang
When binding the devices used by DPDK to the "uio-pci" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.
The patch clarifies the IOMMU configuration on both
x86_64and arm64 systems.Signed-off-by tone.zhang <[email protected]>--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +0
-0
doc/guides/linux_gsg/linux_drivers.rst be loaded as shown below: · line 57
Quoted 10 lines
doc/guides/linux_gsg/linux_drivers.rst +7
-0@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices for used DPDK bound to the ``uio-pci`` kernel module, please make + sure that the IOMMU is disabled. We can add ``intel_iommu=off`` or ``amd_iommu=off`` + in ``GRUB_CMDLINE_LINUX`` in grub on x86_64 systems, or add ``iommu.passthrough=1`` + on arm64 system. +
I think passthrough mode should work on x86 too. I remember running with iommu=pt setting in the kernel in the past.
/Bruce
Quoted 41 lines · Bruce Richardson
Quoted 27 lines · tone.zhang
When binding the devices used by DPDK to the "uio-pci" kernel module,
the IOMMU should be disabled in order not to break the IO transmission
because of the virtual / physical address mapping.The patch clarifies the IOMMU configuration on both
x86_64and arm64
systems.Signed-off-by tone.zhang <[email protected]>---
doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +0
-0@@ -48,6 +48,13 @@ be loaded as shown below:``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``.
For more details see :ref:linux_gsg_binding_kernelbelow.
+.. note::
+Quoted 8 lines
+ If the devices for used DPDK bound to the ``uio-pci`` kernel module, please make
+ sure that the IOMMU is disabled. We can add ``intel_iommu=off`` or ``amd_iommu=off``
+ in ``GRUB_CMDLINE_LINUX`` in grub onx86_64systems, or add ``iommu.passthrough=1``
+ on arm64 system.
+I think passthrough mode should work on x86 too. I remember running with
iommu=pt setting in the kernel in the past.
Quoted 1 line
/Bruce
It does, can confirm.
Signature · 2 lines
Kind regards, Luca Boccassi
-----Original Message-----
From: Luca Boccassi <[email protected]>
Sent: Tuesday, September 4, 2018 6:15 PM
To: Bruce Richardson <[email protected]>; Tone Zhang (Arm Technology China) <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] doc: Clarify IOMMU usage with "uio-pci" kernel module
Quoted 38 lines · Bruce Richardson
Quoted 25 lines · tone.zhang
When binding the devices used by DPDK to the "uio-pci" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.
The patch clarifies the IOMMU configuration on both
x86_64and arm64
systems.Signed-off-by tone.zhang <[email protected]>---
doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +0
-0@@ -48,6 +48,13 @@ be loaded as shown below:``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``.
For more details see :ref:linux_gsg_binding_kernelbelow.
+.. note::
+Quoted 8 lines
+ If the devices for used DPDK bound to the ``uio-pci`` kernel module, please make
+ sure that the IOMMU is disabled. We can add ``intel_iommu=off`` or ``amd_iommu=off``
+ in ``GRUB_CMDLINE_LINUX`` in grub onx86_64systems, or add ``iommu.passthrough=1``
+ on arm64 system.
+I think passthrough mode should work on x86 too. I remember running with iommu=pt setting in the kernel in the past.
Quoted 1 line
/Bruce
It does, can confirm.
--
Kind regards,
Luca Boccassi
@Luca, @Bruce,
Thanks for the comments. I will update the change and push V2. Thanks!
Br,
Tone
Hi Tone,
Quoted 1 line
if the devices for used DPDK bound to the ``uio-pci`` kernel module,
please make
The three kernel modules which can be used for DPDK binding are vfio-pci, uio_pci_generic and igb_uio. Don't you mean here uio_pci_generic ?
Regards,
Rami Rosen
בתאריך יום ג׳, 4 בספט׳ 2018, 11:59, מאת tone.z
Quoted 22 lines
When binding the devices used by DPDK to the "uio-pci" kernel module, the IOMMU should be disabled in order not to break the because of the virtual / physical address mapping.
The patch clarifies the IOMMU configuration on both
x86_64and arm64 systems.Signed-off-by tone.zhang <[email protected]>--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +0
-0@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci``2.7.4
Hi Rami,
Yes, I mean “uio_pci_generic” kernel module.
I will update the change accordingly.
Thanks.
Br,
Tone
From: Rami Rosen <[email protected]>
Sent: Wednesday, September 5, 2018 3:55 AM
To: Tone Zhang (Arm Technology China) <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] doc: Clarify IOMMU usage with "uio-pci" kernel module
Hi Tone,
Quoted 1 line
if the devices for used DPDK bound to the ``uio-pci`` kernel module, please make
The three kernel modules which can be used for DPDK binding are vfio-pci, uio_pci_generic and igb_uio. Don't you mean here uio_pci_generic ?
Regards,
Rami Rosen
בתאריך יום ג׳, 4 בספט׳ 2018, 11:59, מאת tone.z
When binding the devices used by DPDK to the "uio-pci" kernel module, the IOMMU should be disabled in order not to break the because of the virtual / physical address mapping.
The patch clarifies the IOMMU configuration on both x86_64 and arm64 systems.
--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)
doc/guides/linux_gsg/linux_drivers.rst +0 -0
@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci``
2.7.4
Quoted 45 lines · On Wed, 5 Sep 2018 00:20:29 +0000 "Tone Zhang (Arm Technology China)"…
Hi Rami,
Yes, I mean “uio_pci_generic” kernel module.
I will update the change accordingly.
Thanks.
Br,
ToneFrom: Rami Rosen <[email protected]>
Sent: Wednesday, September 5, 2018 3:55 AM
To: Tone Zhang (Arm Technology China) <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] doc: Clarify IOMMU usage with "uio-pci" kernel moduleHi Tone,
Quoted 1 line
if the devices for used DPDK bound to the ``uio-pci`` kernel module, please make
The three kernel modules which can be used for DPDK binding are vfio-pci,
uio_pci_genericandigb_uio. Don't you mean hereuio_pci_generic?Regards,
Rami Rosenבתאריך יום ג׳, 4 בספט׳ 2018, 11:59, מאת tone.z
When binding the devices used by DPDK to the "uio-pci" kernel module, the IOMMU should be disabled in order not to break the because of the virtual / physical address mapping.The patch clarifies the IOMMU configuration on both
x86_64and arm64 systems.Signed-off-by tone.zhang <[email protected]<mailto:[email protected]>>--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +0
-0@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci``
Quoted 1 line
2.7.4
Also, it would be good if documentation was clear in recommending using VFIO instead if IOMMU is present.
-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: Wednesday, September 5, 2018 5:22 PM
To: Tone Zhang (Arm Technology China) <[email protected]>
Cc: Rami Rosen <[email protected]>; [email protected]; nd <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] doc: Clarify IOMMU usage with "uio-pci" kernel module
Quoted 45 lines · On Wed, 5 Sep 2018 00:20:29 +0000 "Tone Zhang (Arm Technology China)"…
Hi Rami,
Yes, I mean “uio_pci_generic” kernel module.
I will update the change accordingly.
Thanks.
Br,
ToneFrom: Rami Rosen <[email protected]>
Sent: Wednesday, September 5, 2018 3:55 AM
To: Tone Zhang (Arm Technology China) <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] doc: Clarify IOMMU usage with "uio-pci" kernel moduleHi Tone,
Quoted 1 line
if the devices for used DPDK bound to the ``uio-pci`` kernel module, please make
The three kernel modules which can be used for DPDK binding are vfio-pci,
uio_pci_genericandigb_uio. Don't you mean hereuio_pci_generic?Regards,
Rami Rosenבתאריך יום ג׳, 4 בספט׳ 2018, 11:59, מאת tone.z
When binding the devices used by DPDK to the "uio-pci" kernel module, the IOMMU should be disabled in order not to break the because of the virtual / physical address mapping.The patch clarifies the IOMMU configuration on both
x86_64and arm64 systems.Signed-off-by tone.zhang <[email protected]<mailto:[email protected]>>--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +0
-0@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci``
Quoted 1 line
2.7.4
Also, it would be good if documentation was clear in recommending using VFIO instead if IOMMU is present.
Hi Stephen,
Yes, according to the description of the "UIO" and "VFIO" in the document, I believe that VFIO is recommended.
BTW, I have update the change to V3 (https://patches.dpdk.org/patch/44295/). Please have a review.
Thanks a lot!
Br,
Tone
PATCH v2 1/1 doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
In reply to tone.zhangIf the devices used for DPDK are bound to the "uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.
The patch clarifies the IOMMU configurations on both x86_64 and arm64 systems.
--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)
doc/guides/linux_gsg/linux_drivers.rst +7 -0
@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module, + please make sure that the IOMMU is disabled. One can add ``intel_iommu=off`` or + ``intel_iommu=pt`` or ``amd_iommu=off`` in GRUB command line on x86_64 systems, + or add ``iommu.passthrough=1`` on arm64 system. + Since DPDK release 1.7 onward provides VFIO support, use of UIO is optional for platforms that support using VFIO.
Signature · 1 line
2.7.4
PATCH v3 1/1 doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
If the devices used for DPDK are bound to the "uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.
The patch clarifies the IOMMU configurations on both x86_64 and arm64 systems.
--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)
doc/guides/linux_gsg/linux_drivers.rst +7 -0
@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module, + please make sure that the IOMMU is disabled. One can add ``intel_iommu=off`` or + ``intel_iommu=pt`` or ``amd_iommu=off`` in GRUB command line on x86_64 systems, + or add ``iommu.passthrough=1`` on arm64 system. + Since DPDK release 1.7 onward provides VFIO support, use of UIO is optional for platforms that support using VFIO.
Signature · 1 line
2.7.4
Re: [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
Quoted 12 lines
-----Original Message-----
From: tone.zhang <[email protected]>
Sent: Wednesday, September 5, 2018 1:18 PM
To: [email protected]
Cc: Gavin Hu (Arm Technology China) <[email protected]>; [email protected]; [email protected]; [email protected]; nd <[email protected]>
Subject: [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
Quoted 8 lines
If the devices used for DPDK are bound to the "
uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.The patch clarifies the IOMMU configurations on both
x86_64and arm64 systems.Signed-off-by tone.zhang <[email protected]>
Quoted 28 lines
--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +4
-0@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module, + please make sure that the IOMMU is disabled. One can add``intel_iommu=off`` or
+ ``intel_iommu=pt`` or ``amd_iommu=off`` in GRUB command line onx86_64systems,doc/guides/linux_gsg/linux_drivers.rst +2
-0+ or add ``iommu.passthrough=1`` on arm64 system. + Since DPDK release 1.7 onward provides VFIO support, use of UIO is optionalfor platforms that support using VFIO.
--
2.7.4
Re: [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
In reply to tone.zhangHello Bruce, Luca, Rami and Stephen,
Could you please help to review the change?
Any comments are welcome.
Thanks a lot!
Br,
Tone
-----Original Message-----
From: dev <[email protected]> On Behalf Of tone.zhang
Sent: Wednesday, September 5, 2018 1:18 PM
To: [email protected]
Cc: Gavin Hu (Arm Technology China) <[email protected]>; [email protected]; [email protected]; [email protected]; nd <[email protected]>
Subject: [dpdk-dev] [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
If the devices used for DPDK are bound to the "uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.
The patch clarifies the IOMMU configurations on both x86_64 and arm64 systems.
--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)
doc/guides/linux_gsg/linux_drivers.rst +7 -1
@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module, + please make sure that the IOMMU is disabled. One can add ``intel_iommu=off`` or + ``intel_iommu=pt`` or ``amd_iommu=off`` in GRUB command line on x86_64 systems, + or add ``iommu.passthrough=1`` on arm64 system. + Since DPDK release 1.7 onward provides VFIO support, use of UIO is optional for platforms that support using VFIO. --
2.7.4
Re: [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
Quoted 32 lines · Tone Zhang (Arm Technology China)
Hello Bruce, Luca, Rami and Stephen,
Could you please help to review the change?
Any comments are welcome.
Thanks a lot!
Br,
Tone-----Original Message-----
From: dev <[email protected]> On Behalf Of tone.zhang
Sent: Wednesday, September 5, 2018 1:18 PM
To: [email protected]
Cc: Gavin Hu (Arm Technology China) <[email protected]>; [email protected]; [email protected]; [email protected]; nd <[email protected]>
Subject: [dpdk-dev] [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel moduleIf the devices used for DPDK are bound to the "
uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.The patch clarifies the IOMMU configurations on both
x86_64and arm64 systems.Signed-off-by tone.zhang <[email protected]>--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +0
-0
doc/guides/linux_gsg/linux_drivers.rst be loaded as shown below: · line 57
Quoted 10 lines
doc/guides/linux_gsg/linux_drivers.rst +7
-0@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module, + please make sure that the IOMMU is disabled. One can add ``intel_iommu=off`` or + ``intel_iommu=pt`` or ``amd_iommu=off`` in GRUB command line on x86_64 systems, + or add ``iommu.passthrough=1`` on arm64 system. +
I'm not really an expert in these IOMMU commands, but for the passthrough option on my systems, I've always used "intel_iommu=on iommu=pt", rather than "intel_iommu=pt". Can someone confirm that the latter works ok, as documented here?
/Bruce
Re: [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
Quoted 65 lines · Bruce Richardson
Quoted 46 lines · Tone Zhang (Arm Technology China)
Hello Bruce, Luca, Rami and Stephen,
Could you please help to review the change?
Any comments are welcome.
Thanks a lot!
Br,
Tone-----Original Message-----
From: dev <[email protected]> On Behalf Of tone.zhang
Sent: Wednesday, September 5, 2018 1:18 PM
To: [email protected]
Cc: Gavin Hu (Arm Technology China) <[email protected]>; bruce.richa [email protected]; [email protected]; [email protected]; nd <nd@arm .com>
Subject: [dpdk-dev] [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel moduleIf the devices used for DPDK are bound to the "
uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.The patch clarifies the IOMMU configurations on both
x86_64and arm64 systems.Signed-off-by tone.zhang <[email protected]>---
doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +0
-0@@ -48,6 +48,13 @@ be loaded as shown below:``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``.
For more details see :ref:linux_gsg_binding_kernelbelow.
+.. note::
+Quoted 8 lines
+ If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module,
+ please make sure that the IOMMU is disabled. One can add ``intel_iommu=off`` or
+ ``intel_iommu=pt`` or ``amd_iommu=off`` in GRUB command line onx86_64systems,
+ or add ``iommu.passthrough=1`` on arm64 system.
+I'm not really an expert in these IOMMU commands, but for the passthrough
option on my systems, I've always used "intel_iommu=on iommu=pt", rather
than "intel_iommu=pt". Can someone confirm that the latter works ok, as
documented here?
Quoted 1 line
/Bruce
Whops you are right, just checked and we use iommu=pt
Signature · 2 lines
Kind regards, Luca Boccassi
Re: [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
Hi Luca and Bruce,
I appreciate for the comments. I ran more test cases in my test bed, and I will update the patch and push v4 soon.
Thanks a lot for your help!
Br,
Tone
-----Original Message-----
From: Luca Boccassi <[email protected]>
Sent: Wednesday, September 19, 2018 7:54 PM
To: Bruce Richardson <[email protected]>; Tone Zhang (Arm Technology China) <[email protected]>
Cc: [email protected]; Gavin Hu (Arm Technology China) <[email protected]>; [email protected]; Stephen Hemminger <[email protected]>; nd <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
Quoted 62 lines · Bruce Richardson
Quoted 46 lines · Tone Zhang (Arm Technology China)
Hello Bruce, Luca, Rami and Stephen,
Could you please help to review the change?
Any comments are welcome.
Thanks a lot!
Br,
Tone-----Original Message-----
From: dev <[email protected]> On Behalf Of tone.zhang
Sent: Wednesday, September 5, 2018 1:18 PM
To: [email protected]
Cc: Gavin Hu (Arm Technology China) <[email protected]>; bruce.richa [email protected]; [email protected]; [email protected]; nd <nd@arm .com>
Subject: [dpdk-dev] [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel moduleIf the devices used for DPDK are bound to the "
uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.The patch clarifies the IOMMU configurations on both
x86_64and arm64 systems.Signed-off-by tone.zhang <[email protected]>---
doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +0
-0@@ -48,6 +48,13 @@ be loaded as shown below:``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``.
For more details see :ref:linux_gsg_binding_kernelbelow.
+.. note::
+Quoted 8 lines
+ If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module,
+ please make sure that the IOMMU is disabled. One can add ``intel_iommu=off`` or
+ ``intel_iommu=pt`` or ``amd_iommu=off`` in GRUB command line onx86_64systems,
+ or add ``iommu.passthrough=1`` on arm64 system.
+I'm not really an expert in these IOMMU commands, but for the passthrough option on my systems, I've always used "intel_iommu=on iommu=pt", rather than "intel_iommu=pt". Can someone confirm that the latter works ok, as documented here?
Quoted 1 line
/Bruce
Whops you are right, just checked and we use iommu=pt
--
Kind regards,
Luca Boccassi
Re: [PATCH v3] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
In reply to tone.zhangQuoted 29 lines · tone.zhang
If the devices used for DPDK are bound to the "
uio_pci_generic" kernel
module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.The patch clarifies the IOMMU configurations on both
x86_64and arm64 systems.Signed-off-by tone.zhang <[email protected]>---
doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +0
-0@@ -48,6 +48,13 @@ be loaded as shown below:``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``.
For more details see :ref:linux_gsg_binding_kernelbelow.
+.. note::
+
+ If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module,
+ please make sure that the IOMMU is disabled. One can add ``intel_iommu=off`` or
Quoted 8 lines
+ ``intel_iommu=pt`` or ``amd_iommu=off`` in GRUB command line on
x86_64systems,
+ or add ``iommu.passthrough=1`` on arm64 system.
+
Since DPDK release 1.7 onward provides VFIO support, use of UIO is optional
for platforms that support using VFIO.
Signature · 2 lines
Kind regards, Luca Boccassi
PATCH v4 1/1 doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
In reply to tone.zhangIf the devices used for DPDK are bound to the "uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.
The patch clarifies the IOMMU configurations on both x86_64 and arm64 systems.
--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)
doc/guides/linux_gsg/linux_drivers.rst +7 -0
@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module, + please make sure that the IOMMU is disabledi or passthrough. One can add + ``intel_iommu=off`` or ``amd_iommu=off`` or ``intel_iommu=on iommu=pt``in GRUB + command line on x86_64 systems, or add ``iommu.passthrough=1`` on arm64 system. + Since DPDK release 1.7 onward provides VFIO support, use of UIO is optional for platforms that support using VFIO.
Signature · 1 line
2.7.4
Re: [PATCH v4] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
Quoted 17 lines · tone.zhang
If the devices used for DPDK are bound to the "
uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.The patch clarifies the IOMMU configurations on both
x86_64and arm64 systems.Signed-off-by tone.zhang <[email protected]>--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +0
-0
doc/guides/linux_gsg/linux_drivers.rst be loaded as shown below: · line 54
Quoted 7 lines
doc/guides/linux_gsg/linux_drivers.rst +4
-0@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module, + please make sure that the IOMMU is disabledi or passthrough. One can add
typo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
doc/guides/linux_gsg/linux_drivers.rst be loaded as shown below: · line 60
Quoted 6 lines
doc/guides/linux_gsg/linux_drivers.rst +3
-0+ ``intel_iommu=off`` or ``amd_iommu=off`` or ``intel_iommu=on iommu=pt``in GRUB + command line on x86_64 systems, or add ``iommu.passthrough=1`` on arm64 system. + Since DPDK release 1.7 onward provides VFIO support, use of UIO is optional for platforms that support using VFIO.
Tone Zhang (Arm Technology China)
Acked-by Bruce RichardsonRe: [PATCH v4] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
Hello Bruce,
Thanks for the comments.
I will update the change and issue v5 soon.
Thanks!
Br,
Tone
-----Original Message-----
From: Bruce Richardson <[email protected]>
Sent: Friday, September 21, 2018 7:20 PM
To: Tone Zhang (Arm Technology China) <[email protected]>
Cc: [email protected]; Gavin Hu (Arm Technology China) <[email protected]>; [email protected]; [email protected]; Honnappa Nagarahalli <[email protected]>; nd <[email protected]>
Subject: Re: [PATCH v4] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
Quoted 18 lines · tone.zhang
If the devices used for DPDK are bound to the "
uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.The patch clarifies the IOMMU configurations on both
x86_64and arm64 systems.Signed-off-by tone.zhang <[email protected]>--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)doc/guides/linux_gsg/linux_drivers.rst +0
-0
doc/guides/linux_gsg/linux_drivers.rst be loaded as shown below: · line 55
Quoted 8 lines
doc/guides/linux_gsg/linux_drivers.rst +5
-0@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module, + please make sure that the IOMMU is disabledi or passthrough. One + can add
typo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Quoted 6 lines
doc/guides/linux_gsg/linux_drivers.rst +3
-0+ ``intel_iommu=off`` or ``amd_iommu=off`` or ``intel_iommu=on iommu=pt``in GRUB + command line on x86_64 systems, or add ``iommu.passthrough=1`` on arm64 system. + Since DPDK release 1.7 onward provides VFIO support, use of UIO isoptional for platforms that support using VFIO.
PATCH v5 1/1 doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
In reply to tone.zhangIf the devices used for DPDK are bound to the "uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.
The patch clarifies the IOMMU configurations on both x86_64 and arm64 systems.
--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)
doc/guides/linux_gsg/linux_drivers.rst +7 -0
@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module, + please make sure that the IOMMU is disabled or passthrough. One can add + ``intel_iommu=off`` or ``amd_iommu=off`` or ``intel_iommu=on iommu=pt``in GRUB + command line on x86_64 systems, or add ``iommu.passthrough=1`` on arm64 system. + Since DPDK release 1.7 onward provides VFIO support, use of UIO is optional for platforms that support using VFIO.
Signature · 1 line
2.7.4
PATCH v6 1/1 doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
If the devices used for DPDK are bound to the "uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.
The patch clarifies the IOMMU configurations on both x86_64 and arm64 systems.
--- doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ 1 file changed, 7 insertions(+)
doc/guides/linux_gsg/linux_drivers.rst +7 -0
@@ -48,6 +48,13 @@ be loaded as shown below: ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_generic``. For more details see :ref:`linux_gsg_binding_kernel` below. +.. note:: + + If the devices used for DPDK are bound to the ``uio_pci_generic`` kernel module, + please make sure that the IOMMU is disabled or passthrough. One can add + ``intel_iommu=off`` or ``amd_iommu=off`` or ``intel_iommu=on iommu=pt``in GRUB + command line on x86_64 systems, or add ``iommu.passthrough=1`` on arm64 system. + Since DPDK release 1.7 onward provides VFIO support, use of UIO is optional for platforms that support using VFIO.
Signature · 1 line
2.7.4
Thomas Monjalon
AppliedRe: [PATCH v6] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module
26/09/2018 07:08, tone.zhang:
Quoted 7 lines
If the devices used for DPDK are bound to the "
uio_pci_generic" kernel module, the IOMMU should be disabled in order not to break the IO transmission because of the virtual / physical address mapping.The patch clarifies the IOMMU configurations on both
x86_64and arm64 systems.
Quoted 7 lines
Signed-off-by tone.zhang <[email protected]>Reviewed-by Honnappa Nagarahalli <[email protected]>Reviewed-by Stephen Hemminger <[email protected]>Reviewed-by Rami Rosen <[email protected]>Acked-by Gavin Hu <[email protected]>Acked-by Bruce Richardson <[email protected]>Acked-by Luca Boccassi <[email protected]>
Applied, thanks