Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5357017yba; Mon, 13 May 2019 09:28:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkm0DNF2IjRPAvSIbvxB4TRA8ilXXfFUMqL7t4foy5Pw/E+QJAY7oQ4fpa3gwUiSClA8+L X-Received: by 2002:a62:ac0a:: with SMTP id v10mr34947771pfe.57.1557764929549; Mon, 13 May 2019 09:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557764929; cv=none; d=google.com; s=arc-20160816; b=PvqUzqnwewsHOXTNlVga9n0qKEUW9VM5YJ5olUNYdSAz85JHvyF5AOx3QmGTShD5OC +6WhuxLf175iHgoXWj7iT+VxGLEK5nY2Ng/jQehjYiL0nxJamhTbtoB4ppzjXumu84zG wCHn9WR/P/JEFPomCEkIwD08yIaIwV7wcPArUHlvE73HV8+edX2QQikap4MEgfC6JQl8 MvHRJ2Q2zpFIQgkj4dmBASKpE7Nh1NNYlGLOdZzPssAkyRWUElhmsqvuKjpb1gk2u1LB fkXNSKL2eZMoH5i8zHDlGz7mvtM9YyfYo3ek2SJLmQi0WAOTDv/DF8tndC3azIbSWWtI 5fJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lmw8m2PcC49iVQvnEnxuI/mETRA7iB8j56Jy/bAQ+Wo=; b=Gbiv4WQTY0uNKYLABaqIbKACzBlPpdKEhUP9Y9V0RAPSFbUElkLFlscU0PGCobdVta rTP1eh0SHNzp4a6K+3MNEqlW00Tq7LQTtakih9atJO+DHJIBwccKw2/1sRu6J9GWZ16o SE1dmr7I4YbrR0cZsZoBVNtrDIeaEwkZJJ7kddaaiP3iiWW7wMCrs76gMq6ExUNu9c0V BLXZn6luxGBp97UXUlj8zvneorN7onELOZgMJmqRxqVtuoZPvR2SuGoTQ/I5sDL24URY ZkDhsp9/BVCAoRFAyGjs5H9Vd4ErcR1vTpukCGqpRrwnKqXGkbfYhyuW61ofnw1IrArL UzBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=Q1jTmjhz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si9740822pld.142.2019.05.13.09.28.33; Mon, 13 May 2019 09:28:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=Q1jTmjhz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731093AbfEMPEb (ORCPT + 99 others); Mon, 13 May 2019 11:04:31 -0400 Received: from casper.infradead.org ([85.118.1.10]:53256 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730209AbfEMPEa (ORCPT ); Mon, 13 May 2019 11:04:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lmw8m2PcC49iVQvnEnxuI/mETRA7iB8j56Jy/bAQ+Wo=; b=Q1jTmjhz40l91KdKl+IJkHGplw ym+QdE1zGPpm/ylCVzlMkanuTYV43agbp+BADE5rmLYvBSWdsvGZFheRLtIyVmpf2YQJ7O4BEG7Kh aKjwdG4wa1FWaacy23Nq2G3buC+XyLLZoMSgvc2cnz7UNn/K9B5Sc+RHvWemCDREkXbT1HQ2MUfRg BqfqtT3SgkLQCOxvsVKP73MexrsvPOMF8WIs4O3TVUhtLfSERdx+8tQEAK7WZ1RuF/FWAVwlJqD/m 2U9gY3DmYc8LRA8v/FgzZSSI1algA/nk16BIik5ih+A3tQ6qvnK2XQlElCCOVPA7Hr/69AAhMgU+h 4pz3Q33g==; Received: from [179.179.44.200] (helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQCV9-000331-I0; Mon, 13 May 2019 15:04:28 +0000 Date: Mon, 13 May 2019 12:04:23 -0300 From: Mauro Carvalho Chehab To: Changbin Du Cc: bhelgaas@google.com, corbet@lwn.net, linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 11/12] Documentation: PCI: convert endpoint/pci-test-function.txt to reST Message-ID: <20190513120423.159b971f@coco.lan> In-Reply-To: <20190513142000.3524-12-changbin.du@gmail.com> References: <20190513142000.3524-1-changbin.du@gmail.com> <20190513142000.3524-12-changbin.du@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 13 May 2019 22:19:59 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du > Acked-by: Bjorn Helgaas > --- > Documentation/PCI/endpoint/index.rst | 1 + > ...est-function.txt => pci-test-function.rst} | 34 ++++++++++++------- > 2 files changed, 22 insertions(+), 13 deletions(-) > rename Documentation/PCI/endpoint/{pci-test-function.txt => pci-test-function.rst} (84%) > > diff --git a/Documentation/PCI/endpoint/index.rst b/Documentation/PCI/endpoint/index.rst > index 3951de9f923c..b680a3fc4fec 100644 > --- a/Documentation/PCI/endpoint/index.rst > +++ b/Documentation/PCI/endpoint/index.rst > @@ -9,3 +9,4 @@ PCI Endpoint Framework > > pci-endpoint > pci-endpoint-cfs > + pci-test-function > diff --git a/Documentation/PCI/endpoint/pci-test-function.txt b/Documentation/PCI/endpoint/pci-test-function.rst > similarity index 84% > rename from Documentation/PCI/endpoint/pci-test-function.txt > rename to Documentation/PCI/endpoint/pci-test-function.rst > index 5916f1f592bb..63148df97232 100644 > --- a/Documentation/PCI/endpoint/pci-test-function.txt > +++ b/Documentation/PCI/endpoint/pci-test-function.rst > @@ -1,5 +1,10 @@ > - PCI TEST > - Kishon Vijay Abraham I > +.. SPDX-License-Identifier: GPL-2.0 > + > +================= > +PCI Test Function > +================= > + > +:Author: Kishon Vijay Abraham I > > Traditionally PCI RC has always been validated by using standard > PCI cards like ethernet PCI cards or USB PCI cards or SATA PCI cards. > @@ -23,30 +28,31 @@ The PCI endpoint test device has the following registers: > 8) PCI_ENDPOINT_TEST_IRQ_TYPE > 9) PCI_ENDPOINT_TEST_IRQ_NUMBER > > -*) PCI_ENDPOINT_TEST_MAGIC > +* PCI_ENDPOINT_TEST_MAGIC > > This register will be used to test BAR0. A known pattern will be written > and read back from MAGIC register to verify BAR0. > > -*) PCI_ENDPOINT_TEST_COMMAND: > +* PCI_ENDPOINT_TEST_COMMAND > > This register will be used by the host driver to indicate the function > that the endpoint device must perform. > > -Bitfield Description: > +Bitfield Description:: > + > Bit 0 : raise legacy IRQ > Bit 1 : raise MSI IRQ > Bit 2 : raise MSI-X IRQ > Bit 3 : read command (read data from RC buffer) > Bit 4 : write command (write data to RC buffer) > - Bit 5 : copy command (copy data from one RC buffer to another > - RC buffer) > + Bit 5 : copy command (copy data from one RC buffer to another RC buffer) Why not use a table instead? > > -*) PCI_ENDPOINT_TEST_STATUS > +* PCI_ENDPOINT_TEST_STATUS > > This register reflects the status of the PCI endpoint device. > > -Bitfield Description: > +Bitfield Description:: > + > Bit 0 : read success > Bit 1 : read fail > Bit 2 : write success > @@ -57,31 +63,33 @@ Bitfield Description: > Bit 7 : source address is invalid > Bit 8 : destination address is invalid Same here. If you replace the two bitfield descriptions to table: Reviewed-by: Mauro Carvalho Chehab > > -*) PCI_ENDPOINT_TEST_SRC_ADDR > +* PCI_ENDPOINT_TEST_SRC_ADDR > > This register contains the source address (RC buffer address) for the > COPY/READ command. > > -*) PCI_ENDPOINT_TEST_DST_ADDR > +* PCI_ENDPOINT_TEST_DST_ADDR > > This register contains the destination address (RC buffer address) for > the COPY/WRITE command. > > -*) PCI_ENDPOINT_TEST_IRQ_TYPE > +* PCI_ENDPOINT_TEST_IRQ_TYPE > > This register contains the interrupt type (Legacy/MSI) triggered > for the READ/WRITE/COPY and raise IRQ (Legacy/MSI) commands. > > Possible types: > + > - Legacy : 0 > - MSI : 1 > - MSI-X : 2 > > -*) PCI_ENDPOINT_TEST_IRQ_NUMBER > +* PCI_ENDPOINT_TEST_IRQ_NUMBER > > This register contains the triggered ID interrupt. > > Admissible values: > + > - Legacy : 0 > - MSI : [1 .. 32] > - MSI-X : [1 .. 2048] Thanks, Mauro