Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751786AbdIUSgy (ORCPT ); Thu, 21 Sep 2017 14:36:54 -0400 Received: from mail-he1eur01on0057.outbound.protection.outlook.com ([104.47.0.57]:43136 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751737AbdIUSgv (ORCPT ); Thu, 21 Sep 2017 14:36:51 -0400 From: Leo Li To: Rob Herring , "mark.rutland@arm.com" CC: "oss@buserror.net" , Madalin-cristian Bucur , "catalin.marinas@arm.com" , "linux@armlinux.org.uk" , "arnd@arndb.de" , Roy Pledge , "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: RE: [v5 04/12] dt-bindings: soc/fsl: Update reserved memory binding for QBMan Thread-Topic: [v5 04/12] dt-bindings: soc/fsl: Update reserved memory binding for QBMan Thread-Index: AQHTML5Mte8wbVOM1UCF4TiS8p6uFKK/ro8g Date: Thu, 21 Sep 2017 18:36:47 +0000 Message-ID: References: <1505767187-4596-1-git-send-email-roy.pledge@nxp.com> <1505767187-4596-5-git-send-email-roy.pledge@nxp.com> In-Reply-To: <1505767187-4596-5-git-send-email-roy.pledge@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=leoyang.li@nxp.com; x-originating-ip: [192.88.168.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM4PR0401MB1761;6:MG+focB0/MZEeLRehSOtg8c1rJLTsKbzDBeb5U0nrgh/+e0dT8qV8DZDg4Uo+5AINbW1FdrwMJfGL7FNMeiH0AvGCb92LMldlDYeat0FNWdBmBaN4EWdtqW9O4DE/nN7Xd7TwVPCZBdrPCV35uZ7dnaIg8Zv5+Tlvxnui2BQ0LRmagGPYneMDK3qE23dZwnj6n7SQDV88LDfBycSejhcFBbueUnLeKy7iBk518kCgu6JdRk3IK0NEICeAwgIjjqNOL/Oh28tj564xoTdN+hkyjFIZEamzNkuOuQhK77126YQR0Jdn7QZKFpFmrmec92hDD6Wzi3pmssliZA0Yos12w==;5:jE+mKvpCmqi/t95jUpucFHtSI3zPuS2IHrptjoAixxq76TTdfl8ufGYPmfDbkf06zR/VQ9mqrtjGwq1pcR1Jv++RzZDgvb1B+aDF+VXFTc9hXCmpMqrUvwbn17URixnnU8/lMqQga2ZdBlqXxnktzQ==;24:V9tOv8HKTc5WDhUSt7C3b/CH5bVIxlYtJgcn2wna4r4QPCeOlItFlWVi3QTUtAYP4oyRDO8CTkp1T/FHg1RRZnZjreMvACH4VjZCWdQu8tg=;7:SsjJF9lN+sJCUVUWUSkdPEHav0uTkpTcL5J2+Ur9q60UqbYWAKUmnDM4j+IeXyq86Uq9vhPDVlRkS/YdcVGa9ujcRUSNJ2FK1whsrOMC6GkPfMwOo3HsBAe2P2oWlgEik2YZbwRS2umkc7fHqoe+LqnFWSNNnpS6mjkLTB5qfy88yVlTpy+V/ajFrcq1A2pJ53KoqSKD0fJDAoETKNF4iwBfk3GBtNNWO0CA6ZU1HGU= x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(6009001)(376002)(39860400002)(346002)(377454003)(199003)(189002)(13464003)(7416002)(86362001)(3280700002)(5250100002)(66066001)(5660300001)(2950100002)(14454004)(7696004)(76176999)(54356999)(2501003)(229853002)(50986999)(6246003)(106356001)(7736002)(8676002)(53936002)(8936002)(81166006)(15650500001)(101416001)(53546010)(97736004)(105586002)(305945005)(74316002)(3660700001)(478600001)(9686003)(81156014)(189998001)(33656002)(4326008)(102836003)(3846002)(6116002)(25786009)(2900100001)(110136005)(68736007)(316002)(6436002)(54906003)(99286003)(6506006)(55016002)(2906002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM4PR0401MB1761;H:AM4PR0401MB1699.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-correlation-id: 7a8a0882-c7b3-4662-2486-08d5011fb74b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:AM4PR0401MB1761; x-ms-traffictypediagnostic: AM4PR0401MB1761: x-exchange-antispam-report-test: UriScan:(180628864354917)(9452136761055)(65623756079841)(185117386973197)(227817650892897)(258649278758335)(21532816269658); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:AM4PR0401MB1761;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:AM4PR0401MB1761; x-forefront-prvs: 04371797A5 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2017 18:36:47.2624 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0401MB1761 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v8LIax4c025200 Content-Length: 5412 Lines: 157 > -----Original Message----- > From: Roy Pledge [mailto:roy.pledge@nxp.com] > Sent: Monday, September 18, 2017 3:40 PM > To: Leo Li ; linuxppc-dev@lists.ozlabs.org; linux-arm- > kernel@lists.infradead.org; linux-kernel@vger.kernel.org; > devicetree@vger.kernel.org > Cc: oss@buserror.net; Madalin-cristian Bucur ; > catalin.marinas@arm.com; linux@armlinux.org.uk; arnd@arndb.de; > mark.rutland@arm.com; Roy Pledge > Subject: [v5 04/12] dt-bindings: soc/fsl: Update reserved memory binding for > QBMan > > Updates the QMan and BMan device tree bindings for reserved memory > nodes. This makes the reserved memory allocation compatible with > the shared-dma-pool usage. > > Signed-off-by: Roy Pledge Hi Rob and Mark, Would you help to review this binding patch and ACK if it is ok? Regards, Leo > --- > Documentation/devicetree/bindings/soc/fsl/bman.txt | 12 +++++----- > Documentation/devicetree/bindings/soc/fsl/qman.txt | 26 ++++++++++++++++- > ----- > 2 files changed, 26 insertions(+), 12 deletions(-) > > diff --git a/Documentation/devicetree/bindings/soc/fsl/bman.txt > b/Documentation/devicetree/bindings/soc/fsl/bman.txt > index 47ac834..48eed14 100644 > --- a/Documentation/devicetree/bindings/soc/fsl/bman.txt > +++ b/Documentation/devicetree/bindings/soc/fsl/bman.txt > @@ -65,8 +65,8 @@ to the respective BMan instance > BMan Private Memory Node > > BMan requires a contiguous range of physical memory used for the backing > store > -for BMan Free Buffer Proxy Records (FBPR). This memory is reserved/allocated > as a > -node under the /reserved-memory node > +for BMan Free Buffer Proxy Records (FBPR). This memory is reserved/allocated > as > +a node under the /reserved-memory node. > > The BMan FBPR memory node must be named "bman-fbpr" > > @@ -75,7 +75,9 @@ PROPERTIES > - compatible > Usage: required > Value type: > - Definition: Must inclide "fsl,bman-fbpr" > + Definition: PPC platforms: Must include "fsl,bman-fbpr" > + ARM platforms: Must include "shared-dma-pool" > + as well as the "no-map" property > > The following constraints are relevant to the FBPR private memory: > - The size must be 2^(size + 1), with size = 11..33. That is 4 KiB to > @@ -100,10 +102,10 @@ The example below shows a BMan FBPR dynamic > allocation memory node > ranges; > > bman_fbpr: bman-fbpr { > - compatible = "fsl,bman-fbpr"; > - alloc-ranges = <0 0 0x10 0>; > + compatible = "shared-mem-pool"; > size = <0 0x1000000>; > alignment = <0 0x1000000>; > + no-map; > }; > }; > > diff --git a/Documentation/devicetree/bindings/soc/fsl/qman.txt > b/Documentation/devicetree/bindings/soc/fsl/qman.txt > index 556ebb8..ee96afd 100644 > --- a/Documentation/devicetree/bindings/soc/fsl/qman.txt > +++ b/Documentation/devicetree/bindings/soc/fsl/qman.txt > @@ -60,6 +60,12 @@ are located at offsets 0xbf8 and 0xbfc > Value type: > Definition: Reference input clock. Its frequency is half of the > platform clock > +- memory-regions > + Usage: Required for ARM > + Value type: > + Definition: List of phandles referencing the QMan private memory > + nodes (described below). The qman-fqd node must be > + first followed by qman-pfdr node. Only used on ARM > > Devices connected to a QMan instance via Direct Connect Portals (DCP) must > link > to the respective QMan instance > @@ -74,7 +80,9 @@ QMan Private Memory Nodes > > QMan requires two contiguous range of physical memory used for the backing > store > for QMan Frame Queue Descriptor (FQD) and Packed Frame Descriptor Record > (PFDR). > -This memory is reserved/allocated as a nodes under the /reserved-memory > node > +This memory is reserved/allocated as a node under the /reserved-memory > node. > + > +For additional details about reserved memory regions see reserved-memory.txt > > The QMan FQD memory node must be named "qman-fqd" > > @@ -83,7 +91,9 @@ PROPERTIES > - compatible > Usage: required > Value type: > - Definition: Must inclide "fsl,qman-fqd" > + Definition: PPC platforms: Must include "fsl,qman-fqd" > + ARM platforms: Must include "shared-dma-pool" > + as well as the "no-map" property > > The QMan PFDR memory node must be named "qman-pfdr" > > @@ -92,7 +102,9 @@ PROPERTIES > - compatible > Usage: required > Value type: > - Definition: Must inclide "fsl,qman-pfdr" > + Definition: PPC platforms: Must include "fsl,qman-pfdr" > + ARM platforms: Must include "shared-dma-pool" > + as well as the "no-map" property > > The following constraints are relevant to the FQD and PFDR private memory: > - The size must be 2^(size + 1), with size = 11..29. That is 4 KiB to > @@ -117,16 +129,16 @@ The example below shows a QMan FQD and a PFDR > dynamic allocation memory nodes > ranges; > > qman_fqd: qman-fqd { > - compatible = "fsl,qman-fqd"; > - alloc-ranges = <0 0 0x10 0>; > + compatible = "shared-dma-pool"; > size = <0 0x400000>; > alignment = <0 0x400000>; > + no-map; > }; > qman_pfdr: qman-pfdr { > - compatible = "fsl,qman-pfdr"; > - alloc-ranges = <0 0 0x10 0>; > + compatible = "shared-dma-pool"; > size = <0 0x2000000>; > alignment = <0 0x2000000>; > + no-map; > }; > }; > > -- > 2.7.4