From patchwork Fri Mar 5 05:04:10 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: 393469 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp120130jai; Thu, 4 Mar 2021 21:05:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkrBQcxU7kM12Cp5zzjdhqOwkg4V2WWOGox7F2PvblxuBCiyQ5DHf7nTbeL7kSDdem68P1 X-Received: by 2002:a17:906:ad96:: with SMTP id la22mr777572ejb.237.1614920743187; Thu, 04 Mar 2021 21:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614920743; cv=none; d=google.com; s=arc-20160816; b=XtJvuAgagMcO5ai9kK6a+P2eP/6dRppG9IBn0RPYaW2uzK27Q7wihmpa2H1ujUlLyW HweBgXzXz1vmvsvP/vqlnVx6OQm9HXuk8N0+szC8RJoyfu3vEOriTuHHnodMqeYtEMJ+ ngVzNvPMJ88QS0dGuDt4X++dOjJvTntSTxtluN6QgE3jt+MGRjJITAbOpoyoUSHVzLpA Tzv581QFXVHGzynXlFtPpIIeU9dJxAnRrg6b8F6WKtMFqjBxkJh0tzPYgDYsouS1J46I 8qT91Los47rA7YFYqhQla4JNtEnwnjLB/UD5JNeAN9T4APthj8lN8yHDid3FYWqzWHQY ZxkA== 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=STuRPOefiOBAsZWg0V0eoDMriXbwI0+2lm74CsLwVnDz8dwQ4PoMvEol8CE9OErSps TWi8eH36c3LVgOWH0L+NUyLGXQlm78sSQQxm1pO0FaYXb2ndXEU6t5rLg3Gk3HFAGTck qqz61V9lkWihqfrAQx8gKAz09+nDJKhORt+aKVpZLSZCotD7vSU5HDGdkoa4k5iX+pdG lYuZXQZ/Jj7uQotdSGYYAuYU2b/tmOlK49WIOSPKxgpuB0cPYtFnDy2VxnC+MrKTV4m5 fgzTZ5t8FzE5VKrQTYYdUWzuuPi07NiUioFi+7RSI2WyEtNj1F44+t4VxRQU6p6hS3KX TpJA== 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 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 s17si913034edd.576.2021.03.04.21.05.43; Thu, 04 Mar 2021 21:05:43 -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=galF1hDS; 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 S229716AbhCEFFm (ORCPT + 6 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 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