From patchwork Wed Mar 10 16:09:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 396762 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp503131jai; Wed, 10 Mar 2021 08:12:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEzXa4ai5wwEFqmhHZR8mK8aqCc5d/9qdoLI2OTDc7QI5fQQVoencuuz7XDz+A00s5mBu4 X-Received: by 2002:a05:6402:1383:: with SMTP id b3mr4190396edv.374.1615392724914; Wed, 10 Mar 2021 08:12:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615392724; cv=none; d=google.com; s=arc-20160816; b=sOqEnK0N83w8Vgpjn0gejYVsvoPCODDZqHhJ10NAOhFB0pM3PaSn4W4Q7B4rdSKnKW 73rKuZwzUUEPgDM3xz7FlnzHB97QEEe/M/qAliMI11nlObQrXcDPt7ELKi6ksXWsTD6N unuFq44FiYEoHpMF+HqJ1yT+cf7L9gQgIpbXG0IiQTMp0ZL/1WEoeW8nYny2pZeEXH5G YywNXYL5PRwj44exeu1b8dBjIiwd9DR9vFzQx15mKfzxFXkH65z1bu0CC0IMsvz/4jwX rFAfNdUI63L9Wa68ie6mP9hq9Fs1L2OAmglGluSXujZUNgDO68xT9OosyC2L+IU2ioDC 3y2g== 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=wOMohI1hzOQ80xyrRmG5yUGHdbLIr13orvmND0Hpc7/FXEbQziHBBeUGZDQtuW4tFD MVHCta9nM3dp3WHt29AnBjeaWyBFhHd86C0uMqxqpeLnbS4Vu66yp/AfShRv4ikwt07z 6TS8PrZwOMC6K/6mFNkqYUeYyMzQMYC1pLAqVMaiSo+AcVZr7wYt1+kWZY5owGwc1K/o z/E9xE0xcG94XhYV86EnkkLPGEFZRRkZnkmtYE8qlFGfDBbTC2z7YHOXzF5NcVhniRjK MiKVVFr9HsjQWoWnarjuN0bMgj83HKjAexc7hcLE3KrWfFq/BIBeJUoUIUYFhNf6VvpI GEhg== 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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 rn25si8164962ejb.250.2021.03.10.08.12.04; Wed, 10 Mar 2021 08:12:04 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S233425AbhCJQLd (ORCPT + 6 others); Wed, 10 Mar 2021 11:11:33 -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 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) -- 2.17.1 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