From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafal Kozik Subject: [PATCH] doc: update for ENA supported drivers Date: Fri, 5 Oct 2018 11:02:53 +0200 Message-ID: <1538730173-7444-1-git-send-email-rk@semihalf.com> Cc: mw@semihalf.com, mk@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com, matua@amazon.com, igorch@amazon.com, ferruh.yigit@intel.com, john.mcnamara@intel.com, marko.kovacevic@intel.com, zorik@amazon.com, Rafal Kozik , stable@dpdk.org To: dev@dpdk.org Return-path: Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) by dpdk.org (Postfix) with ESMTP id 45C704C9F for ; Fri, 5 Oct 2018 11:03:32 +0200 (CEST) Received: by mail-lj1-f193.google.com with SMTP id 203-v6so10889533ljj.13 for ; Fri, 05 Oct 2018 02:03:32 -0700 (PDT) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Acked-by: Michal Krawczyk --- doc/guides/nics/ena.rst | 12 +++++++++--- doc/guides/nics/features/ena.ini | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/guides/nics/ena.rst b/doc/guides/nics/ena.rst index d19912e..0dfefc6 100644 --- a/doc/guides/nics/ena.rst +++ b/doc/guides/nics/ena.rst @@ -187,11 +187,17 @@ 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. + +#. If vfio-pci driver is used please make sure noiommu mode is enabled: + 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 691c1e3..aa6f05a 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.7.4