Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp384267pxf; Wed, 10 Mar 2021 08:13:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGAxvfR3dLIiJImMwe4DTDWvfeJhCtW9xCqTUTM50CiIXQtrnb4y+uZWXZlAAz8Mi5BoXP X-Received: by 2002:a17:906:f56:: with SMTP id h22mr3779433ejj.494.1615392795887; Wed, 10 Mar 2021 08:13:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615392795; cv=none; d=google.com; s=arc-20160816; b=dWte6Ukxe11AaVG74L7O6WUjeTAYj4lPuy4wBLyPZbRGZ7W9zCpYk35RxH8iHdw5Bo 5tF9a5XC4k9HTZJGudFNbNdUTbQzAHTBTZFsSYDUQEmM7oAfnYGOYX5ocGQz0uAhDMVS Stksy5WVUblbkNC0XXDXj3BQRctfV4fnTwqokaDUJedMNPXKotEV9a2qq9UqBiMPTrks w6Ie/YO8aYUY8OQFWP2jq4T7xBqfWJ8yTAy7t2GnB0rv2V/TNhsxL055RrryDdqP7qW/ Ylni9xHWXcbKF6ilp1Of3pa2j+BitJx1GrlsFUPsrDY8WFFXZxTIkVUW1+pCv8Paradb uRfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PswJzuVJEpo2V7rLJvAKEapfrXwbPZ/ywMR3JM+8zp4=; b=BGdlWmPVdqByp5cxQeBjfiD76j3CSiF1XRDJ+2+9antWUsjiuLofwkZWKJteffsoX4 pY1JJAcznDisEP5KRpYy6R4lH/WO95mPghUrjD2uoviQl5xg+fFYC8vxgKk5EsoGVdlq Ou0AqojvWCDNf7NPsCE3hKliH9TSmcgBZ4MGLfeECnL8Q0fpf1EV6S0eUrTEmuLeY6eF sBOf4GjpWnnHhe13/4hwAsxoc4WCUlF4B3Lsel34XO0rjJHPfByKM/dw1WLQcFmZY2Ya xrNZMWDMH4BfcARxpsU5HqEFlJ6gekoeCKaPz3+NVbbYQtzXr//ToZNZKOmoQyekKY9I fuUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KDAlkGOA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si12522976edu.567.2021.03.10.08.12.53; Wed, 10 Mar 2021 08:13:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KDAlkGOA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233406AbhCJQLf (ORCPT + 99 others); Wed, 10 Mar 2021 11:11:35 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:56020 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233404AbhCJQLO (ORCPT ); Wed, 10 Mar 2021 11:11:14 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12AGAlIo078920; Wed, 10 Mar 2021 10:10:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615392647; bh=PswJzuVJEpo2V7rLJvAKEapfrXwbPZ/ywMR3JM+8zp4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KDAlkGOAstSuJcAiMHjA66obcuo850UcsdlmDC3LGNPBYvYtza05Z6fkjfeYZ1B0Q hDW/aNCdzzXYqoF43HqBYbDIAbbCNph+/9cBVbzcfWDQTYxzU2vN1oSSVAzCZURuvc aYKZHlaoW25j5WdOS3zrliC85FmCXQcEEN2Ibr4k= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12AGAlux063711 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Mar 2021 10:10:47 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 10 Mar 2021 10:10:47 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Wed, 10 Mar 2021 10:10:47 -0600 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12AG9ql0100440; Wed, 10 Mar 2021 10:10:40 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Lorenzo Pieralisi , Bjorn Helgaas , Jonathan Corbet , Rob Herring , Arnd Bergmann , Tom Joseph , Jingoo Han , Gustavo Pimentel , Marek Vasut , Yoshihiro Shimoda , Shawn Lin , Heiko Stuebner , Nadeem Athani CC: Greg Kroah-Hartman , , , , , , , , Lokesh Vutla Subject: [PATCH v4 7/7] Documentation: PCI: endpoint/pci-endpoint-cfs: Guide to use SR-IOV Date: Wed, 10 Mar 2021 21:39:43 +0530 Message-ID: <20210310160943.7606-8-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210310160943.7606-1-kishon@ti.com> References: <20210310160943.7606-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Documentation to help users use PCI endpoint to create virtual functions using configfs. An endpoint function is designated as a virtual endpoint function device when it is linked to a physical endpoint function device (instead of a endpoint controller). Signed-off-by: Kishon Vijay Abraham I --- Documentation/PCI/endpoint/pci-endpoint-cfs.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/PCI/endpoint/pci-endpoint-cfs.rst b/Documentation/PCI/endpoint/pci-endpoint-cfs.rst index 696f8eeb4738..56fb33c5e8fd 100644 --- a/Documentation/PCI/endpoint/pci-endpoint-cfs.rst +++ b/Documentation/PCI/endpoint/pci-endpoint-cfs.rst @@ -43,6 +43,7 @@ entries corresponding to EPF driver will be created by the EPF core. .. / ... / ... / + ... / .. / ... / ... / @@ -68,6 +69,7 @@ created) ... subsys_vendor_id ... subsys_id ... interrupt_pin + ... / ... primary/ ... / ... secondary/ @@ -79,6 +81,13 @@ interface should be added in 'primary' directory and symlink of endpoint controller connected to secondary interface should be added in 'secondary' directory. +The directory can have a list of symbolic links +() to other . These symbolic links should +be created by the user to represent the virtual functions that are bound to +the physical function. In the above directory structure is a +physical function and is a virtual function. An EPF device once +it's linked to another EPF device, cannot be linked to a EPC device. + EPC Device ========== @@ -98,7 +107,8 @@ entries corresponding to EPC device will be created by the EPC core. The directory will have a list of symbolic links to . These symbolic links should be created by the user to -represent the functions present in the endpoint device. +represent the functions present in the endpoint device. Only +that represents a physical function can be linked to a EPC device. The directory will also have a *start* field. Once "1" is written to this field, the endpoint device will be ready to -- 2.17.1