From patchwork Wed Oct 10 12:08:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafal Kozik X-Patchwork-Id: 46489 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C673C1B485; Wed, 10 Oct 2018 14:08:26 +0200 (CEST) Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) by dpdk.org (Postfix) with ESMTP id 872421B42D for ; Wed, 10 Oct 2018 14:08:25 +0200 (CEST) Received: by mail-lj1-f194.google.com with SMTP id p1-v6so4641022ljg.6 for ; Wed, 10 Oct 2018 05:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xlCwgaKI5AoNtRC3f43w1X0LW6huQu5vjM6LyNdj34A=; b=GJCcFpTv2SbXrH0G5B6ET1vTBYNm/8elE50k4bOACRd0600b9JHdGwkC+M/Rdu1you fNx1q0y9lv0HkmQs1mqWozGsGZMMF93NECk0ZuGgSgp9s17rVaPXPZoB8nsAAiewZvJE xHQFDRV4tp5X7kjL1coycvAQcB+ogLVAFLwy9PQ2LIT8cS+fBHWGT6a7J6n0WL/41E8H 5lrqVFMHQJ5RllDITviHjaRTD4QXe5kAXCq5cfepDl04ZStAPQ3HuTm8R9sof9xNsOHA M2xeIRealE6DOt1VWIbtNgvdimYNUfPN9xD1Wimh1xngDc5dY3ZKBmDPGthmCYlaMuoB FvIw== 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; bh=xlCwgaKI5AoNtRC3f43w1X0LW6huQu5vjM6LyNdj34A=; b=f6TFE73Y9PJJ0MumuCufkrYoR19a0gvvGav1DDvNYOfs63h9Z7L41jcb8Csb/E98Bk OAwQngQxNpmWLQpYB7YAG6BgQHRSHvSeVWHzmascKMTYFvZPMWyyfJiZNNAmETssa/Gn IjiQRo7wpFWkHxU6jaHp3kjnWdRuvpsLlJYbaiGn4UK0GjR7iUHOgxsQkbdtdPQZzmLI roSSSs3z54tPscN2ccjJL8YtZMkUe+syILRNEIFCvoICY/IJImWA5UudhC4hPMfTZ2Pf PxWDZJp/OvYg/TsrwO5vJiDJcwNIA2B5kgx8l79L8dbLGOatTu8RBdrmz1F2aIMzAzbZ KVxQ== X-Gm-Message-State: ABuFfoihkEh3GgtcgmQlSWroosc/pw/E1XtqCRgYL7dfD9cyskmXEj41 HoEwx8hmurgNJn5130NTCgEYzcJKq4kSGQ== X-Google-Smtp-Source: ACcGV63odrv8Tl0rcJEJlSaGfwVE46g0uZxL+85flMmbPrlwci+NM2sD7GzUQ6VErPinNIz2NQIuCQ== X-Received: by 2002:a2e:6e08:: with SMTP id j8-v6mr17181327ljc.61.1539173304778; Wed, 10 Oct 2018 05:08:24 -0700 (PDT) Received: from rafalkozik.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id b64-v6sm1301846ljf.0.2018.10.10.05.08.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Oct 2018 05:08:23 -0700 (PDT) From: Rafal Kozik To: dev@dpdk.org Cc: mw@semihalf.com, mk@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com, matua@amazon.com, igorch@amazon.com, john.mcnamara@intel.com, ferruh.yigit@intel.com, marko.kovacevic@intel.com, zorik@amazon.com, Rafal Kozik , stable@dpdk.org Date: Wed, 10 Oct 2018 14:08:15 +0200 Message-Id: <1539173295-11503-1-git-send-email-rk@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2] doc: update for ENA supported drivers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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 --- v2: Describe cases with and without IOMMU. --- doc/guides/nics/ena.rst | 14 +++++++++++--- doc/guides/nics/features/ena.ini | 1 + 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/guides/nics/ena.rst b/doc/guides/nics/ena.rst index d19912e..77399f4 100644 --- a/doc/guides/nics/ena.rst +++ b/doc/guides/nics/ena.rst @@ -187,11 +187,19 @@ 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 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