Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp534054pxb; Thu, 19 Aug 2021 05:38:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygccJqCUXnMOAznLlJbNirJFGsx9eJ0kwdkmYgt1pR8S8/nUS7qrpZzfcVhECB6wHdoGZI X-Received: by 2002:aa7:d916:: with SMTP id a22mr16051363edr.158.1629376690495; Thu, 19 Aug 2021 05:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629376690; cv=none; d=google.com; s=arc-20160816; b=Ym9GgF46lPXOolFDqjyRfeDWlyLEFkyPPW1LV70BCpiJx5cQP5FRhih4yg7H5uTZlj 1z9ZMBHvgJmDcko25wrFoos8P/k/GNFyQI16ebecohjyDdGfNlJkNNCN0XdzTjPbfzQZ jscaKy/6pBT82ghhJq1jb1wB+xF1MItksEVgYNxKdkFSrrAxppqqss4NIRYQabnn6y3y 1CyotMXHjXnENapOSZlFMC2IwgACG0fPkRCCz5SXtxagNYNonKZ5GKlLF6fsyHdQPZS2 Yr93AsxgnGowHUOwVQUJEYIaV7ufSaDSiuEC+xnItlDUtM1aSf/SL92C2n0kwceuq7r9 5kQQ== 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=mSZKXhhsLLxYQf/gpxRICXJcy5aFaJt1ExzVXMoAOl8uf0Ir/Ipss4V1ASqjvh1rek 2/8QQO6o/uB/U0V8wDYwC6jbp4HdehGZk1hP66rH+H00z/DfqXvhRDIL93FjEy7p1rzX khRuHMC6yFY75rC2yHOw5LPJpgYyBAy83VB0QzT2K4X/cyIMiwnP5i7VrunFXOthodNv ZGBjvn6bwuOKzlhZQQazBVjdTTidhRIVF8S4CEWwJXy5EFA9AJIZQ5b2rTokYinIXzmx V4d2+Qje6s8qaEQMoqd2/X4KVKtkaJIb5eb2vs8RcavAljsDEZQzsGL4wsLEoU3ou4Hf UCmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZO3lyeAp; 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 b8si3075849eds.569.2021.08.19.05.37.38; Thu, 19 Aug 2021 05:38:10 -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=ZO3lyeAp; 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 S239865AbhHSMfy (ORCPT + 99 others); Thu, 19 Aug 2021 08:35:54 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37444 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239899AbhHSMfx (ORCPT ); Thu, 19 Aug 2021 08:35:53 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 17JCYqMd032825; Thu, 19 Aug 2021 07:34:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1629376492; bh=poueu/euKtfcqbr8LzsTcjIQ1wgv6v/lzsChvHScOeU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ZO3lyeAp/+ym6hviOL+iomxGGyQI32S9tJNCKz70lGObJ05m3i051CPdwOBtpOSzH oCrtIw/S/Omrt8DwCOyIGLZFO8tZv4lezJ0u0tZ16nNWnS2NAFCfTV/VXwJ1AZbTll 0y93YdwVt9YFrEiKU0nccDh8JxtoiOupvRIDO62c= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 17JCYqkM057235 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 19 Aug 2021 07:34:52 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) 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; Thu, 19 Aug 2021 07:34:51 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE110.ent.ti.com (10.64.6.31) 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; Thu, 19 Aug 2021 07:34:52 -0500 Received: from a0393678-ssd.dal.design.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 17JCXlZW035715; Thu, 19 Aug 2021 07:34:45 -0500 From: Kishon Vijay Abraham I To: Lorenzo Pieralisi , Bjorn Helgaas , Jonathan Corbet , Rob Herring , Arnd Bergmann CC: Greg Kroah-Hartman , Tom Joseph , Jingoo Han , Gustavo Pimentel , Marek Vasut , Yoshihiro Shimoda , Shawn Lin , Heiko Stuebner , , , , , , , , Kishon Vijay Abraham I Subject: [PATCH v9 8/8] Documentation: PCI: endpoint/pci-endpoint-cfs: Guide to use SR-IOV Date: Thu, 19 Aug 2021 18:03:43 +0530 Message-ID: <20210819123343.1951-9-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210819123343.1951-1-kishon@ti.com> References: <20210819123343.1951-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