From patchwork Wed Oct 27 15:37:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Burakov X-Patchwork-Id: 103061 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 01569A0C47; Wed, 27 Oct 2021 17:39:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7AE9940DDA; Wed, 27 Oct 2021 17:39:14 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 97F55407FF for ; Wed, 27 Oct 2021 17:39:12 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10150"; a="227645229" X-IronPort-AV: E=Sophos;i="5.87,187,1631602800"; d="scan'208";a="227645229" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2021 08:37:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,187,1631602800"; d="scan'208";a="497916407" Received: from silpixa00401191.ir.intel.com ([10.55.128.95]) by orsmga008.jf.intel.com with ESMTP; 27 Oct 2021 08:37:15 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Bruce Richardson , Bernard Iremonger Date: Wed, 27 Oct 2021 15:37:14 +0000 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 1/1] doc: clarify VFIO doc for built-in modules X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Currently, the documentation only contains instructions for enabling SRIOV support for VFIO compiled as a module, but doesn't have any instructions on how to do the same for cases where VFIO is built-in. Add these instructions. Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson Acked-by: Bernard Iremonger --- doc/guides/linux_gsg/linux_drivers.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/linux_gsg/linux_drivers.rst b/doc/guides/linux_gsg/linux_drivers.rst index c6b6881ea2..2dd711bb37 100644 --- a/doc/guides/linux_gsg/linux_drivers.rst +++ b/doc/guides/linux_gsg/linux_drivers.rst @@ -65,6 +65,12 @@ The token will be used for all PF and VF ports within the application. sudo modprobe vfio-pci enable_sriov=1 + Alternatively, pass the ``enable_sriov`` parameter through the ``sysfs`` if the module is already loaded or is built-in: + + .. code-block:: console + + echo 1 | sudo tee /sys/module/vfio_pci/parameters/enable_sriov + #. Bind the PCI devices to ``vfio-pci`` driver .. code-block:: console