Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2160754pxy; Mon, 2 Aug 2021 22:06:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgMUMoW9++P3DovHxfmaBFg26FD9R/iERV27V6F+U7PVsn3vVqx6VpyODOoGekzIFrZjWH X-Received: by 2002:a92:d292:: with SMTP id p18mr51547ilp.286.1627967203456; Mon, 02 Aug 2021 22:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627967203; cv=none; d=google.com; s=arc-20160816; b=azX9yjw7i29KOdr28kSMhGX1SuYVhfpVwuw8xqxNQng3FHFIrZk2vkeCX/HQpLcwnk kXT4j5QNVZ5qfz6l9C8xnp0bwUj7w/sKh4PC81aF6YAOvD1lfPiSpITcw3PrjhQc2uTl beCmpd6LyF+2xDAhPju07VGg3CVxPnCfwlRHjcsvb+tECIcfAx2NOTgfkIDgAqLoP/Xo vvuS1i+WpMJuk+nxYNgOs0wXS/Az+kc2rplZGeiKW99ZAyuYYtYxS2onIlm1dtK0hmI8 AfMd5ZkbZiSUOfTldgUj+vRHeLewKcOvZMUTkKYYSpDsXVvOgiKLmXDXNY2PKU9fiGoI Kv9g== 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=poueu/euKtfcqbr8LzsTcjIQ1wgv6v/lzsChvHScOeU=; b=Xyy7a/+QNcNa+14gyRXBhOEWvuBSpyboIGCrqRM/0jkbDCFLLiw3uE829irtk5b0Wv GgY1JAGlHx+RvK9ViLLM4MOmQ3w0o0NuDa3XZBM+iE8AQRgNe3g7+HJiti5AvwRR7zYZ 3UhY6TCMAfkbo4ZH/iuYonAqfEAjZxFxfKrm+25T9VkPe9CNly1+6vaY9vu6hrnUZJU/ E25EreFS8g5xC1dgPqheD3OoRCn1pUyrA1Fbrvh/DSMfL1Kxu8hOAVApLiei/2hRPUwm 17NPR49d55P9BE5Zc3QiJR9G0+BkB0je3OW6QUf5NS6W5U9pjZVx5vAwiskCkrFJEj5f nCqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dqFKAytl; 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 p16si14144630ilj.162.2021.08.02.22.06.31; Mon, 02 Aug 2021 22:06:43 -0700 (PDT) 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=dqFKAytl; 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 S234096AbhHCFFL (ORCPT + 99 others); Tue, 3 Aug 2021 01:05:11 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:52150 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234078AbhHCFFJ (ORCPT ); Tue, 3 Aug 2021 01:05:09 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 17354cUI094582; Tue, 3 Aug 2021 00:04:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1627967078; bh=poueu/euKtfcqbr8LzsTcjIQ1wgv6v/lzsChvHScOeU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=dqFKAytlSoqOZPGPIUUoqkgu711aa3ExmfYm1xDURmwSgWY4iLzvUwIxEW3bAvo3E Ye3ascMO/mODZu15TvxwcN0aUsNXvgkbghpjZkvUsdLy9dk9Q9ahdYiKSr7a/2hF4/ O7IlBnseLwWYkK0m67DFVh60TiuAveG2L0xZIqro= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 17354cpX007313 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Aug 2021 00:04:38 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) 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; Tue, 3 Aug 2021 00:04:38 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE103.ent.ti.com (10.64.6.24) 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; Tue, 3 Aug 2021 00:04:38 -0500 Received: from a0393678-ssd.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 17353BeX090231; Tue, 3 Aug 2021 00:04:30 -0500 From: Kishon Vijay Abraham I To: Lorenzo Pieralisi , Bjorn Helgaas , Rob Herring , Tom Joseph , Jingoo Han , Gustavo Pimentel , Marek Vasut , Yoshihiro Shimoda , Shawn Lin , Heiko Stuebner CC: Jonathan Corbet , Arnd Bergmann , Greg Kroah-Hartman , , , , , , , , , Lokesh Vutla Subject: [PATCH v7 7/7] Documentation: PCI: endpoint/pci-endpoint-cfs: Guide to use SR-IOV Date: Tue, 3 Aug 2021 10:33:10 +0530 Message-ID: <20210803050310.27122-8-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210803050310.27122-1-kishon@ti.com> References: <20210803050310.27122-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 db609b97ad58..fb73345cfb8a 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