Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4050266yba; Tue, 23 Apr 2019 14:16:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgGUbAjffcZnDteEQR/XnD8hfDOdDect92AMU69R+XItOUH3hRhK5oPn0/Ryc+GXzgAOWs X-Received: by 2002:a63:d043:: with SMTP id s3mr26187973pgi.359.1556054171737; Tue, 23 Apr 2019 14:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556054171; cv=none; d=google.com; s=arc-20160816; b=EIUL7M0HRJXyns1TkX6vrSGfETcQELROrLTQjDdUfKo8gBmEOE5GbJAQeVcBoGt9Zp UXGgI/991xjskhvkqwHmgAx3BUiKGU+Ikvp51wRnewvGiHhYTqAdgQCbjZhwFZqHjlEG iKvlJXersoMzlnyT3R/9FiHlSQDlAZIVjrSVnonKZSkF+z5K9a6YSIzoJQhPjSWAyGZ5 tYE8oQgdGChvn6whnAeAsgTQx88nisf8U1vDN1Xq/4HQwhv9FDdmTe7SvHcwxf00ZfVn O8doU27nm0Rdlj3Aysrgyflgv+nL/Y5zx49XzMbVOtny64cZWgGCbqGYmHOmbMZ1XhTu 4XqA== 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=hTGDBgd+f+9t75xdg2kpPSeHSPz3XSe9d3maOhynR+I=; b=kuDQREhRdT6sQPdn3pU8EuA0xhl35eictxqXkoWso01RimhYGNv/S+iKNENe8zos4c FG2QZh6YMEo4JPdb6vFSSvmfRqCpZVeu3C5x7UNLVHirB6mC0eZeramuZfVZSti1CiUY gkBfBwrQU7eixPn/Hy3PgGDd+eEmoUF1+7K53t35AB8RQ2n8pHrDdzayUIDb2Gby/TqM S8OU6FLBzy/boruFXashhzpHvXC0Tk22vxvroBNefgQCGUkfsWPirTxKPxkMi1F2fD9b 8AxkYYJB3KnHYpHMxTJdvrLwxZTw5k5ckd09BJoTjL28C08VJz0BEkRUHEwXkURP4k1R C6Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=CRj0BqMb; 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 f92si5896283plf.124.2019.04.23.14.15.54; Tue, 23 Apr 2019 14:16:11 -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=CRj0BqMb; 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 S1727532AbfDWVPD (ORCPT + 99 others); Tue, 23 Apr 2019 17:15:03 -0400 Received: from casper.infradead.org ([85.118.1.10]:39150 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfDWVPC (ORCPT ); Tue, 23 Apr 2019 17:15:02 -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=hTGDBgd+f+9t75xdg2kpPSeHSPz3XSe9d3maOhynR+I=; b=CRj0BqMb4HZdXyx4qv1l554gFf dajp+cCQkGn1MURrw1GL1TpYdveA2LEGXKojaUBR/u17WPrsOWKseUqYoOM1Bqvq3r34MWXPlrlVb sEYXN12ImDzQN57S7kAsmIHVrSnfqPeF38nL2AMbFHNele5JJLUEHlZFv7ZM/UGbCHw4SS3oNs2w3 iZ9WPkfvCQsHQjzBFX/9IxQWLJq9rqzxio6VoXtzVNw6FqjDoz3wiFmTbC74nxF4aJniYlQc/2T1P Wimt8YKrSP7C88Hb7dWEXr5PqWpC7TIdwTF4ary3D4NgWI2QxdlGDz33VjbGEDLZW4XjIa7o4WMNZ hu+L72tA==; 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 1hJ2kj-0003zU-El; Tue, 23 Apr 2019 21:14:57 +0000 Date: Tue, 23 Apr 2019 18:14:50 -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 14/63] Documentation: ACPI: move dsd/graph.txt to firmware-guide/acpi and convert to reST Message-ID: <20190423181450.3120530d@coco.lan> In-Reply-To: <20190423162932.21428-15-changbin.du@gmail.com> References: <20190423162932.21428-1-changbin.du@gmail.com> <20190423162932.21428-15-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=UTF-8 Content-Transfer-Encoding: quoted-printable 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:28:43 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. >=20 > Signed-off-by: Changbin Du Reviewed-by: Mauro Carvalho Chehab > --- > .../acpi/dsd/graph.rst} | 157 +++++++++--------- > Documentation/firmware-guide/acpi/index.rst | 1 + > 2 files changed, 81 insertions(+), 77 deletions(-) > rename Documentation/{acpi/dsd/graph.txt =3D> firmware-guide/acpi/dsd/gr= aph.rst} (56%) >=20 > diff --git a/Documentation/acpi/dsd/graph.txt b/Documentation/firmware-gu= ide/acpi/dsd/graph.rst > similarity index 56% > rename from Documentation/acpi/dsd/graph.txt > rename to Documentation/firmware-guide/acpi/dsd/graph.rst > index b9ce910781dc..e0baed35b037 100644 > --- a/Documentation/acpi/dsd/graph.txt > +++ b/Documentation/firmware-guide/acpi/dsd/graph.rst > @@ -1,8 +1,11 @@ > -Graphs > +.. SPDX-License-Identifier: GPL-2.0 > =20 > +=3D=3D=3D=3D=3D=3D > +Graphs > +=3D=3D=3D=3D=3D=3D > =20 > _DSD > ----- > +=3D=3D=3D=3D > =20 > _DSD (Device Specific Data) [7] is a predefined ACPI device > configuration object that can be used to convey information on > @@ -30,7 +33,7 @@ hierarchical data extension array on each depth. > =20 > =20 > Ports and endpoints > -------------------- > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =20 > The port and endpoint concepts are very similar to those in Devicetree > [3]. A port represents an interface in a device, and an endpoint > @@ -38,9 +41,9 @@ represents a connection to that interface. > =20 > All port nodes are located under the device's "_DSD" node in the hierarc= hical > data extension tree. The data extension related to each port node must b= egin > -with "port" and must be followed by the "@" character and the number of = the port > -as its key. The target object it refers to should be called "PRTX", wher= e "X" is > -the number of the port. An example of such a package would be: > +with "port" and must be followed by the "@" character and the number of = the > +port as its key. The target object it refers to should be called "PRTX",= where > +"X" is the number of the port. An example of such a package would be:: > =20 > Package() { "port@4", PRT4 } > =20 > @@ -49,7 +52,7 @@ data extension key of the endpoint nodes must begin with > "endpoint" and must be followed by the "@" character and the number of t= he > endpoint. The object it refers to should be called "EPXY", where "X" is = the > number of the port and "Y" is the number of the endpoint. An example of = such a > -package would be: > +package would be:: > =20 > Package() { "endpoint@0", EP40 } > =20 > @@ -62,85 +65,85 @@ of that port shall be zero. Similarly, if a port may = only have a single > endpoint, the number of that endpoint shall be zero. > =20 > The endpoint reference uses property extension with "remote-endpoint" pr= operty > -name followed by a reference in the same package. Such references consis= t of the > +name followed by a reference in the same package. Such references consis= t of > the remote device reference, the first package entry of the port data ex= tension > reference under the device and finally the first package entry of the en= dpoint > -data extension reference under the port. Individual references thus appe= ar as: > +data extension reference under the port. Individual references thus appe= ar as:: > =20 > Package() { device, "port@X", "endpoint@Y" } > =20 > -In the above example, "X" is the number of the port and "Y" is the numbe= r of the > -endpoint. > +In the above example, "X" is the number of the port and "Y" is the numbe= r of > +the endpoint. > =20 > The references to endpoints must be always done both ways, to the > remote endpoint and back from the referred remote endpoint node. > =20 > -A simple example of this is show below: > +A simple example of this is show below:: > =20 > Scope (\_SB.PCI0.I2C2) > { > - Device (CAM0) > - { > - Name (_DSD, Package () { > - ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > - Package () { > - Package () { "compatible", Package () { "nokia,smia" } }, > - }, > - ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), > - Package () { > - Package () { "port@0", PRT0 }, > - } > - }) > - Name (PRT0, Package() { > - ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > - Package () { > - Package () { "reg", 0 }, > - }, > - ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), > - Package () { > - Package () { "endpoint@0", EP00 }, > - } > - }) > - Name (EP00, Package() { > - ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > - Package () { > - Package () { "reg", 0 }, > - Package () { "remote-endpoint", Package() { \_SB.PCI0.ISP, "port@4= ", "endpoint@0" } }, > - } > - }) > - } > + Device (CAM0) > + { > + Name (_DSD, Package () { > + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > + Package () { > + Package () { "compatible", Package () { "nokia,smia"= } }, > + }, > + ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), > + Package () { > + Package () { "port@0", PRT0 }, > + } > + }) > + Name (PRT0, Package() { > + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > + Package () { > + Package () { "reg", 0 }, > + }, > + ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), > + Package () { > + Package () { "endpoint@0", EP00 }, > + } > + }) > + Name (EP00, Package() { > + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > + Package () { > + Package () { "reg", 0 }, > + Package () { "remote-endpoint", Package() { \_SB.PCI= 0.ISP, "port@4", "endpoint@0" } }, > + } > + }) > + } > } > =20 > Scope (\_SB.PCI0) > { > - Device (ISP) > - { > - Name (_DSD, Package () { > - ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), > - Package () { > - Package () { "port@4", PRT4 }, > - } > - }) > - > - Name (PRT4, Package() { > - ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > - Package () { > - Package () { "reg", 4 }, /* CSI-2 port number */ > - }, > - ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), > - Package () { > - Package () { "endpoint@0", EP40 }, > - } > - }) > - > - Name (EP40, Package() { > - ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > - Package () { > - Package () { "reg", 0 }, > - Package () { "remote-endpoint", Package () { \_SB.PCI0.I2C2.CAM0, = "port@0", "endpoint@0" } }, > - } > - }) > - } > + Device (ISP) > + { > + Name (_DSD, Package () { > + ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), > + Package () { > + Package () { "port@4", PRT4 }, > + } > + }) > + > + Name (PRT4, Package() { > + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > + Package () { > + Package () { "reg", 4 }, /* CSI-2 port number */ > + }, > + ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), > + Package () { > + Package () { "endpoint@0", EP40 }, > + } > + }) > + > + Name (EP40, Package() { > + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > + Package () { > + Package () { "reg", 0 }, > + Package () { "remote-endpoint", Package () { \_SB.PC= I0.I2C2.CAM0, "port@0", "endpoint@0" } }, > + } > + }) > + } > } > =20 > Here, the port 0 of the "CAM0" device is connected to the port 4 of > @@ -148,27 +151,27 @@ the "ISP" device and vice versa. > =20 > =20 > References > ----------- > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =20 > [1] _DSD (Device Specific Data) Implementation Guide. > - , > + http://www.uefi.org/sites/default/files/resources/_DSD-implementatio= n-guide-toplevel-1_1.htm, > referenced 2016-10-03. > =20 > -[2] Devicetree. , referenced 2016-10-03. > +[2] Devicetree. http://www.devicetree.org, referenced 2016-10-03. > =20 > [3]=C2=A0Documentation/devicetree/bindings/graph.txt > =20 > [4] Device Properties UUID For _DSD. > - , > + http://www.uefi.org/sites/default/files/resources/_DSD-device-proper= ties-UUID.pdf, > referenced 2016-10-04. > =20 > [5] Hierarchical Data Extension UUID For _DSD. > - , > + http://www.uefi.org/sites/default/files/resources/_DSD-hierarchical-= data-extension-UUID-v1.1.pdf, > referenced 2016-10-04. > =20 > [6] Advanced Configuration and Power Interface Specification. > - , > + http://www.uefi.org/sites/default/files/resources/ACPI_6_1.pdf, > referenced 2016-10-04. > =20 > [7] _DSD Device Properties Usage Rules. > - Documentation/acpi/DSD-properties-rules.txt > + :doc:`../DSD-properties-rules` > diff --git a/Documentation/firmware-guide/acpi/index.rst b/Documentation/= firmware-guide/acpi/index.rst > index bedcb0b242a2..f81cfbcb6878 100644 > --- a/Documentation/firmware-guide/acpi/index.rst > +++ b/Documentation/firmware-guide/acpi/index.rst > @@ -8,6 +8,7 @@ ACPI Support > :maxdepth: 1 > =20 > namespace > + dsd/graph > enumeration > osi > method-customizing Thanks, Mauro