Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1743773pxb; Thu, 4 Mar 2021 21:06:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUDXTZPi/17J3fXlCkfrC2RJg4/Hyn/jh2O+hrdR/Y2dhNpTahZeJ9arkaXqbx23ifac55 X-Received: by 2002:aa7:c3cd:: with SMTP id l13mr7557551edr.52.1614920811878; Thu, 04 Mar 2021 21:06:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614920811; cv=none; d=google.com; s=arc-20160816; b=XNDoyBrq2+hQ5KdLOYzD6Zh7rZdZbMwWgM6mbWsUuzfNSScc85Uuqdyrdamzjt62Ut tdo09JeT+7ixFf8S/oTLzLCoyhf5xVMcCZixx8jbBJVzuisDppJVzK7XtWN/v9Nen+IF UgOWxBJRaU2b6WSU5NE9JZTXuWPUe91ibXJHmRFBa0xuZXN6VmiG7uJiqrK64xFVTJiS scXFqRp+mBcXduR2opXFfWz8I7Bc0TuWRkXCdjyYaAShn2bqFlpFLPhc39CFw5gvvEPU CLXS6ksZ10eZ6e/w7Dy6kLyiBTvvVtkLowvIrpvk1RGY6vJX9+3c/0vRfeDMYZ01h2C5 uUCg== 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=La8MVGMbjueYYhjcG1yRlXsewur77gNHPJzS6XS9RZBozNx/6kDylAPYZZN7WtaJ7X RR+0NFiDwvAaab/XRUMqz7RDae0RdElrjxjewH5VY1RTWv+bJaJr/jq6DQUXk1VpJeq9 SKW1KZwAwcZ3qxhgE6Vs4+9ta6nDDE3/FQDhwfJ21q8ZlIw+n7WBLei6HphMkLf3YXlX frU15lphiDnKp/ziUdtiIzwEkTtCPIaz5KykegUJslWXuZ3ssV0U2So026P/aNIYn4ZC 3ZqKB5sclYZzoroAhAyIebyXOxF0kkziXrQ0cgxBw+kW1ZI40LzBlv0zMjdReD9+WZCw TRow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=galF1hDS; 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 jw5si761955ejc.103.2021.03.04.21.06.29; Thu, 04 Mar 2021 21:06:51 -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=galF1hDS; 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 S229740AbhCEFFm (ORCPT + 99 others); Fri, 5 Mar 2021 00:05:42 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:41320 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbhCEFFl (ORCPT ); Fri, 5 Mar 2021 00:05:41 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12555IMB125585; Thu, 4 Mar 2021 23:05:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1614920718; bh=PswJzuVJEpo2V7rLJvAKEapfrXwbPZ/ywMR3JM+8zp4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=galF1hDSGYo5AiK1GQzq18N9xdhnaKS4ZsR0R3liPXzfpbIUZGRU+Cd4uIiVBrll4 E8qqybUJ9EAVaswmX6XhFdiwwicUvxqTEDFCfrmdAlOyRDYB54onv2HyOevKg/MtWt Bp1ibl5OdBNt4StefrvhdG4OGhgU8jl8ZxNi/jlM= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12555IEt013649 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 4 Mar 2021 23:05:18 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 4 Mar 2021 23:05:18 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) 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.1979.3 via Frontend Transport; Thu, 4 Mar 2021 23:05:18 -0600 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12554D9C116197; Thu, 4 Mar 2021 23:05:11 -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 v3 7/7] Documentation: PCI: endpoint/pci-endpoint-cfs: Guide to use SR-IOV Date: Fri, 5 Mar 2021 10:34:10 +0530 Message-ID: <20210305050410.9201-8-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210305050410.9201-1-kishon@ti.com> References: <20210305050410.9201-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