Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2617619pxj; Mon, 17 May 2021 06:01:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4iiHudYJc1NcvC/g8T31uzc8FEJNE4Ggc8HUl92xFsVoNkwvfFGz11HntdwqHsRJ6dAcP X-Received: by 2002:a05:651c:1068:: with SMTP id y8mr49087385ljm.59.1621256477495; Mon, 17 May 2021 06:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621256477; cv=none; d=google.com; s=arc-20160816; b=q3VweUVGUj485Sqo3braClrKWxOB4a8Lm1LC0IeM4o73ENvq4omcTkoYYOV18kc83a fW9dpALRfDxxWjQ6lGEbLYbvk7HyhRvcJAszH6+DV0qzdhrwgjBDxbXQjB+HrjWNHd3k 5nXcY5HtLde7YsojLPcHhkaHfAXB/32uwaifJJ+JxwQCOUTivav6h0+uueERISPJhgxw CWctdv1Rgin1H29Ene5lL3ynuLKa8XX4JRl7SxACVZIDnzR5Xs6eQ0i/iAE+cerniGuu Jn9lJGLKtpKsl0AJ+EOPrI0dCjEXHqefrzu07SUGZIrBlFWZp5csBw/UCIMgf3FgE66w Xe/w== 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=l2yl5iMSW+h5kw5wXnecCGl4wJHQr2EmHkuAWn40aI+VBJvwb/qKx/faTHVwp623kO LIyQPqos6gUd8JF5W0GZDJGEEllQjDonw5opulYGznqlE2zXYMmH3wE5HUU4tMXIABCQ JEClT2egMyu3IqtmqQrh/pHSidV95ABjYN2QRkGUlKFO6fZNVDq6OYZ/Gn6XTt01A7na MmT+0Bn4/GaQMi1uwtjWV60zNFW/FLbLIpf9SnwINcnUvsnREq1PaenGNZRDM0OUx86S IGH04cnF6fIPq/YQv3o5P2mj9EpMQVfcMzSx2kAiW2qaLMC5sd2gort56ExPzUZ3Z/tT vAZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YLRY+8Ff; 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 f13si14032225eje.90.2021.05.17.06.00.53; Mon, 17 May 2021 06:01:17 -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=YLRY+8Ff; 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 S235519AbhEQHue (ORCPT + 99 others); Mon, 17 May 2021 03:50:34 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:40588 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235535AbhEQHuO (ORCPT ); Mon, 17 May 2021 03:50:14 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 14H7mbEP115682; Mon, 17 May 2021 02:48:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1621237717; bh=PswJzuVJEpo2V7rLJvAKEapfrXwbPZ/ywMR3JM+8zp4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YLRY+8FfTx/HoaXGt+NEz6R9M5rxLuquJUAk/sxt8tkZ9Qz7gwTMOHY3KefYswRcH HB0arP15VCWEmmlbuRFDoqobtz2sKvJ0xf5T3uQ4S7dNFslHyX9DTaUrPnDgx3uGUd WXOSae3bKDo2if4DPWO03jx4yZSuRENrTBN6grCY= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 14H7mbjN008730 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 May 2021 02:48:37 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 17 May 2021 02:48:36 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE115.ent.ti.com (10.64.6.36) 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; Mon, 17 May 2021 02:48:36 -0500 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 14H7lOck007607; Mon, 17 May 2021 02:48:29 -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 , , , , , , , , Kishon Vijay Abraham I , Lokesh Vutla Subject: [PATCH v6 7/7] Documentation: PCI: endpoint/pci-endpoint-cfs: Guide to use SR-IOV Date: Mon, 17 May 2021 13:17:23 +0530 Message-ID: <20210517074723.10212-8-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210517074723.10212-1-kishon@ti.com> References: <20210517074723.10212-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