From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by dpdk.org (Postfix) with ESMTP id 5B4FA2BCE for ; Mon, 15 Oct 2018 13:52:30 +0200 (CEST) Received: by mail-wm1-f67.google.com with SMTP id y144-v6so19247435wmd.4 for ; Mon, 15 Oct 2018 04:52:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zAIIRHYV4pk582bD7dG7nAh2qoNEZQFibBTNB7VQczU=; b=jjh9yvUv5PsBoBvhrg48UU5idt42sbpeXIyAf18E3SGSMqd5ghY1/F5SnSvW1dKTmW ETxXAIS+2vcLsBorZGTorvsZ872nCyVlRWA1juPD+O8GUTf31kvplss7zkn6XdMOi4h7 pi1DTB5rRv4WslSPfyqa6Bwgt5XSzwhPA4YKkbdzYLY4MH2TF1KNlY0QpYlhxzqBpGXx bP8yAwsR566KpfK1mbUTBMVNZeTnLzzEI9jctfmIYE7TkgbYQ9ZJ/9XWAdkSE8A8gLDt 4fjTxANmkRA9cToukP4CTxpUgJEYo+l8ZXtWNsuyq7eHpbpJYyMnRmMfABz/JEZ02c0I J0pg== X-Gm-Message-State: ABuFfoiZsIyf5NB9ksTV8VmkwJiKd0NM9r1Z4c+k+GAYltT6phIbJ/tr EVOMxettzDYEM8KaBV7p9nHEIM2R X-Google-Smtp-Source: ACcGV63H5R7ocJ1lHBy4+rUeP3tc2c2lmjqzVlH/yh4+hiGq3iQbICg2KdCaQlf/yG6RcUB2zSwHAQ== X-Received: by 2002:a1c:1c13:: with SMTP id c19-v6mr12174269wmc.85.1539604349889; Mon, 15 Oct 2018 04:52:29 -0700 (PDT) Received: from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556]) by smtp.gmail.com with ESMTPSA id l4-v6sm11782657wrb.92.2018.10.15.04.52.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Oct 2018 04:52:28 -0700 (PDT) From: Luca Boccassi To: Rafal Kozik Cc: Zorik Machulsky , Michal Krawczyk , dpdk stable Date: Mon, 15 Oct 2018 12:51:41 +0100 Message-Id: <20181015115144.27626-21-bluca@debian.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181015115144.27626-1-bluca@debian.org> References: <20181003162121.16364-1-bluca@debian.org> <20181015115144.27626-1-bluca@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'doc: add VFIO in ENA guide' has been queued to LTS release 16.11.9 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: Mon, 15 Oct 2018 11:52:30 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.9 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/17/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. Luca Boccassi --- >>From 19b650abdc9bb1f7eac08a8d7fcf78c8e8cf55b2 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 073b35ae2a..9062d7bf03 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 74969fd068..d607fcc321 100644 --- a/doc/guides/nics/features/ena.ini +++ b/doc/guides/nics/features/ena.ini @@ -22,5 +22,6 @@ Inner L4 checksum = Y Basic stats = Y Extended stats = Y Linux UIO = Y +Linux VFIO = Y x86-32 = Y x86-64 = Y -- 2.19.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-10-15 12:48:35.152218755 +0100 +++ 0021-doc-add-VFIO-in-ENA-guide.patch 2018-10-15 12:48:34.601096017 +0100 @@ -1,12 +1,13 @@ -From 4d0155db76da10b4e549b5b8814962748bcf2192 Mon Sep 17 00:00:00 2001 +From 19b650abdc9bb1f7eac08a8d7fcf78c8e8cf55b2 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 @@ -17,7 +18,7 @@ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/guides/nics/ena.rst b/doc/guides/nics/ena.rst -index d19912e9b0..695960d4c9 100644 +index 073b35ae2a..9062d7bf03 100644 --- a/doc/guides/nics/ena.rst +++ b/doc/guides/nics/ena.rst @@ -187,11 +187,20 @@ Prerequisites @@ -45,10 +46,10 @@ 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 691c1e3d37..aa6f05a714 100644 +index 74969fd068..d607fcc321 100644 --- a/doc/guides/nics/features/ena.ini +++ b/doc/guides/nics/features/ena.ini -@@ -23,5 +23,6 @@ Inner L4 checksum = Y +@@ -22,5 +22,6 @@ Inner L4 checksum = Y Basic stats = Y Extended stats = Y Linux UIO = Y