From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id B500D1B518 for ; Fri, 30 Nov 2018 00:14:15 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from yskoh@mellanox.com) with ESMTPS (AES256-SHA encrypted); 30 Nov 2018 01:20:08 +0200 Received: from scfae-sc-2.mti.labs.mlnx (scfae-sc-2.mti.labs.mlnx [10.101.0.96]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id wATNCW80032075; Fri, 30 Nov 2018 01:14:13 +0200 From: Yongseok Koh To: Rafal Kozik Cc: Zorik Machulsky , Michal Krawczyk , dpdk stable Date: Thu, 29 Nov 2018 15:10:54 -0800 Message-Id: <20181129231202.30436-60-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181129231202.30436-1-yskoh@mellanox.com> References: <20181129231202.30436-1-yskoh@mellanox.com> Subject: [dpdk-stable] patch 'doc: add VFIO in ENA guide' has been queued to LTS release 17.11.5 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2018 23:14:16 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.5 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/01/18. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. If the code is different (ie: not only metadata diffs), due for example to a change in context or macro names, please double check it. Thanks. Yongseok --- >>From 0c520d2924c494d589ee2d06b36634f7ab0eb196 Mon Sep 17 00:00:00 2001 From: Rafal Kozik Date: Wed, 10 Oct 2018 14:08:15 +0200 Subject: [PATCH] doc: add VFIO in ENA guide [ upstream commit 4d0155db76da10b4e549b5b8814962748bcf2192 ] Add instruction how to bind ENA to VFIO-PCI driver. Fixes: cf8a122c296a ("ena: introduce documentation") Signed-off-by: Zorik Machulsky Signed-off-by: Rafal Kozik Acked-by: Michal Krawczyk --- doc/guides/nics/ena.rst | 15 ++++++++++++--- doc/guides/nics/features/ena.ini | 1 + 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/guides/nics/ena.rst b/doc/guides/nics/ena.rst index d19912e9b..695960d4c 100644 --- a/doc/guides/nics/ena.rst +++ b/doc/guides/nics/ena.rst @@ -187,11 +187,20 @@ Prerequisites ------------- #. Prepare the system as recommended by DPDK suite. This includes environment - variables, hugepages configuration, tool-chains and configuration + variables, hugepages configuration, tool-chains and configuration. -#. Insert igb_uio kernel module using the command 'modprobe igb_uio' +#. ENA PMD can operate with ``vfio-pci`` or ``igb_uio`` driver. -#. Bind the intended ENA device to igb_uio module +#. Insert ``vfio-pci`` or ``igb_uio`` kernel module using the command + ``modprobe vfio-pci`` or ``modprobe igb_uio`` respectively. + +#. For ``vfio-pci`` users only: + Please make sure that ``IOMMU`` is enabled in your system, + or use ``vfio`` driver in ``noiommu`` mode:: + + echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode + +#. Bind the intended ENA device to ``vfio-pci`` or ``igb_uio`` module. At this point the system should be ready to run DPDK applications. Once the diff --git a/doc/guides/nics/features/ena.ini b/doc/guides/nics/features/ena.ini index 691c1e3d3..aa6f05a71 100644 --- a/doc/guides/nics/features/ena.ini +++ b/doc/guides/nics/features/ena.ini @@ -23,5 +23,6 @@ Inner L4 checksum = Y Basic stats = Y Extended stats = Y Linux UIO = Y +Linux VFIO = Y x86-32 = Y x86-64 = Y -- 2.11.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-11-29 15:01:47.877018828 -0800 +++ 0060-doc-add-VFIO-in-ENA-guide.patch 2018-11-29 15:01:45.143959000 -0800 @@ -1,12 +1,13 @@ -From 4d0155db76da10b4e549b5b8814962748bcf2192 Mon Sep 17 00:00:00 2001 +From 0c520d2924c494d589ee2d06b36634f7ab0eb196 Mon Sep 17 00:00:00 2001 From: Rafal Kozik Date: Wed, 10 Oct 2018 14:08:15 +0200 Subject: [PATCH] doc: add VFIO in ENA guide +[ upstream commit 4d0155db76da10b4e549b5b8814962748bcf2192 ] + Add instruction how to bind ENA to VFIO-PCI driver. Fixes: cf8a122c296a ("ena: introduce documentation") -Cc: stable@dpdk.org Signed-off-by: Zorik Machulsky Signed-off-by: Rafal Kozik