Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1107311yba; Wed, 24 Apr 2019 15:16:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzf+V5f9LzplSEmklOL0Dx8NVjHyUd7NdkI39njsCuZNmsV/sL83Hevr1q1FPA7CGVqsu22 X-Received: by 2002:a62:2a44:: with SMTP id q65mr3976630pfq.226.1556144165432; Wed, 24 Apr 2019 15:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556144165; cv=none; d=google.com; s=arc-20160816; b=xvXJ7y/NaalzBpCqQwT8aWmbbdB4d/cUq4gaCMbFDELY1UtPrg3UAjcnylgDY0psuT ocd6sf98qbDLzwjSg2+EfP40iq0aa9bB5F5wOaZx/PkNhMM01Mb/FloIjiZKQ/4A+1A4 MtET1sXvyxSnsnhlaljy3PV1IxZsJVJ170Pz03pWf+txBuUnZcNsdVFKkZSLkhdQXS6l +zTFRxtExdLQFvv65h2W9peBjyaaa2E+1x16DeRZLWbvSImWPWEHCaqySqu0oJ3RSDVO M+yvkp8K8FLZLHqlBIdjOlpt0i6xBnV6tVFhnjtkYjVI5wYZvC9zylqrHtytgePmYR2r bJBw== 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=EquihUCty+ZcFfE5dWtYBS32BiOe8KzbeB7dO0oQ3KI=; b=mI22caVc9mktZikIaPIy2FY4jX60pRBaE4z4PN5Y3GdhulZaW4oVZm11hXNHFJL7AK 2y9NNG9jJAWihGlhcVzn1oo1PUGH6c978EwnG8FV5kMG6Hr2/i7iR/Mvt2ONauFiOxjk pLr7msZ2kfCSlREWQpNH8MFBqY32rxg/8GqMFSGHHRs3VoHewQLpA+ugpFyVpDR2pkkU KTWK+c4mzurAGTIy894n8WglBoI4CNnb1URrFSpt3JXq1M5D84o6SqUNGM8qkYEVlpft jcaXuZdnbFSQT6o9Qch1WdEtb0AD9FnpqTuR5x5sfSne6dusl5wdQpOhiLOQEHWICDnf prgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=WH6CgPHt; 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 k8si19508237plt.354.2019.04.24.15.15.49; Wed, 24 Apr 2019 15:16:05 -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=WH6CgPHt; 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 S1733052AbfDXQ7D (ORCPT + 99 others); Wed, 24 Apr 2019 12:59:03 -0400 Received: from casper.infradead.org ([85.118.1.10]:36700 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730844AbfDXQ7D (ORCPT ); Wed, 24 Apr 2019 12:59:03 -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=EquihUCty+ZcFfE5dWtYBS32BiOe8KzbeB7dO0oQ3KI=; b=WH6CgPHtXHsiSC0oRrWer8MaVG VPqRt3ery5umY4lIPzwecIIsD3vjzlhJe9vR0krUDJYaHJ2gLfNKD+CFtPEzZH5MYDMQXZpRFYlom pFh6nojZ4kkw6fdGGpbrW0gek0MFf7aHPzBeLUKeUciNJ6O992UELDEOwg2KhYPvWEZVa6agg4ku5 sBUfW5N5uOR7Rcvz5XwHhZ3IBdzdw6gLtZUbkvhIkCVHYazsJ2rMa0k/MmeVZgNWCGV5iFqNdI0ru KQvp/pkSK1tAOvlfLP/EdMoV4plpKp0ExniykHkladzTJIxDWnJjw3V2CgSBXZYjukWFn/WzYAF0f qlZgC3Gg==; Received: from 177.17.136.231.dynamic.adsl.gvt.net.br ([177.17.136.231] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJLEY-0005rG-Kg; Wed, 24 Apr 2019 16:58:59 +0000 Date: Wed, 24 Apr 2019 13:58:52 -0300 From: Mauro Carvalho Chehab To: Changbin Du Cc: Jonathan Corbet , Bjorn Helgaas , rjw@rjwysocki.net, linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, fenghua.yu@intel.com, linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH v4 35/63] Documentation: PCI: convert endpoint/pci-test-function.txt to reST Message-ID: <20190424135852.08810789@coco.lan> In-Reply-To: <20190423162932.21428-36-changbin.du@gmail.com> References: <20190423162932.21428-1-changbin.du@gmail.com> <20190423162932.21428-36-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 Wed, 24 Apr 2019 00:29:04 +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} | 32 +++++++++++-------- > 2 files changed, 20 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..ba02cddcec37 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 Same comment as on a previous patch. I suspect that the author's intention for all stuff under Documentation/PCI/endpoint/ (or perhaps this is due tothe markup language he uses) is to have: *) foo as a chapter, e. g. the right conversion would be, instead: PCI_ENDPOINT_TEST_MAGIC ======================= (same applies to the other similar markups here and on other files under the endpoint/ directory) > > 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) Please use a table instead: 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) ===== ======================================================= > > -*) 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,17 +63,17 @@ Bitfield Description: > Bit 7 : source address is invalid > Bit 8 : destination address is invalid Same here: Bitfield Description: ===== ============================== Bit 0 read success Bit 1 read fail Bit 2 write success Bit 3 write fail Bit 4 copy success Bit 5 copy fail Bit 6 IRQ raised Bit 7 source address is invalid Bit 8 destination address is invalid ===== ============================== > > -*) 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. > @@ -77,7 +83,7 @@ Possible types: You need a blank line before - MSI, in order to not use a bold font for "Possible types:". > - MSI : 1 > - MSI-X : 2 > > -*) PCI_ENDPOINT_TEST_IRQ_NUMBER > +* PCI_ENDPOINT_TEST_IRQ_NUMBER > > This register contains the triggered ID interrupt. > Same here: ou need a blank line on this text: Admissible values: + - Legacy : 0 - MSI : [1 .. 32] - MSI-X : [1 .. 2048] In order to avoid using bold font for "Admissible values". Thanks, Mauro