Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754070AbdDSUvj (ORCPT ); Wed, 19 Apr 2017 16:51:39 -0400 Received: from mail-sn1nam01on0068.outbound.protection.outlook.com ([104.47.32.68]:43200 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S969373AbdDSUtG (ORCPT ); Wed, 19 Apr 2017 16:49:06 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; From: Roy Pledge To: , , , , CC: , Roy Pledge Subject: [PATCH v2 03/11] dt-bindings: soc/fsl: Update reserved memory binding for QBMan Date: Wed, 19 Apr 2017 16:48:42 -0400 Message-ID: <1492634930-10765-4-git-send-email-roy.pledge@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1492634930-10765-1-git-send-email-roy.pledge@nxp.com> References: <1492634930-10765-1-git-send-email-roy.pledge@nxp.com> Reply-To: X-EOPAttributedMessage: 0 X-Matching-Connectors: 131371085387583490;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.158.2;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39850400002)(39860400002)(39840400002)(39450400003)(39380400002)(39410400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(106466001)(2950100002)(54906002)(8656002)(105606002)(3450700001)(305945005)(50986999)(15650500001)(4326008)(2906002)(43066003)(76176999)(53936002)(6666003)(77096006)(189998001)(50466002)(47776003)(8676002)(2201001)(5003940100001)(356003)(50226002)(8936002)(48376002)(85426001)(104016004)(5660300001)(81166006)(86362001)(33646002)(38730400002)(36756003)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1PR03MB249;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;MX:1;A:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD023;1:munUkZ0Uv8mS5n4fAzi1utPfRTKTgfbXUDwiFB4kUffGyrUHow/AP7yaVqOlSil7nU9NgJ0GBldi1NWmx4+izrimc5WBHWILm0QIRN902JYVV4T15vSExI3pPoYDoon5hmEnHyQ2JsVSnQuL1L2ZpgFG8B9CR+WltezjOxSLdBAzDv0m2VPd8c2dQ3qhN2fZU+39YRC6ymkKvyYWHkMBQ+eMHW8XSi9Ayl3o8HR2jKxfP1Zokh2IbJM5LJIxjuGPiVD6paqSmJp7W8gypnGCeKTXbT1LaRG6GPSz+/77vsjKaxmkHpWc/joZaofg2KC22nlTHIpHA3/H4LALMFczS8uqHqKolwNcs88TrkZBk/SN9DvKy5KoAZeD1z/8HR83lNL/gTZL2XcSFr2R3o2i2IHMVoMs9hnJX0pwx8N7RiYEH4/FW1emT1RelOdZ7wFoeECaEZeRyD9jxTBQBFAlkXhxYjREYVu/p8QNCQnRIDYKEusBESh+75MeOQXtm3EQdscIEdrfZtEmpQg/kdS5xwufTOwdcKZkC//6xB0dJVqvKtm5vcTFLqsBWBbpS0rNWl9IVPWSSfQ56Pbaeb6ldTLvvtBfZMSVXIwC7C9nDc9miXbCofO4pr9SguizqGPj49jNiKv41FRUUf+uZljUerKDx/2QbX1CxWtwNX2XnnDfVxrlZ2sCSZPGKFXpD1hzgRGUaL9SGvdOrVsKrzBgMLfIIJ9l3hEWRv/wGBklPfYF2emX/4vkkyOoP0R8Wxhy MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 46e4146e-ecb8-4b0c-d002-08d4876580bf X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:BN1PR03MB249; X-Microsoft-Exchange-Diagnostics: 1;BN1PR03MB249;3:VPTogpYJXTJT9sAW+k0ruVhORHB9m9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X9OgZ0K7IFP09TgPqeAIrznIBKKz87y2uHtmL8PmuMUNwdKnBJBOYCi+B4cZrR/dLmp7ugPRNjPqltXnzT2Xx5U7L5NO4qCK0qz4iXy1XSkAzskPuAquitDw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(601004)(2401047)(13023025)(13024025)(13015025)(13018025)(13017025)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123556025)(20161123561025)(20161123565025);SRVR:BN1PR03MB249;BCL:0;PCL:0;RULEID:(400006);SRVR:BN1PR03MB249; X-Microsoft-Exchange-Diagnostics: 1;BN1PR03MB249;4:Utjxrrw/U01efZB459kfzwCmkkvjBUMFmgILAOigI9mLm0qr8MUkoqxsrJPadkfFqno8Ij23XrRpp4/wlEW0sQUBV+p5/EiR9cHXLuiMr7hQlKTtm5msG9T2v7c7yAprqp+YPiYwoPZKCb0I12mNPNcycu1bm3GxwNcYwKODt6wC+09we5uYO/nJy4LMJPeiuWSD8MG9cgy2OIFnaCNxBoTzqmh7yRWL0LVYNjnWtCvuyV4aN2Q3hbSxwlhe4ZydXpWqsb50qXrSXZKRR7J9VVIc+cfELEA2Gs8XD5QP76dSL2OklrF0xVw89brnL2mx5yR4jAIQz0Bq7DBSLP4Hl2ZT/NyXsC7Ab1OLW8truW7rN7pka43+x4DbFnaGaleiagM2HutkO4qNUmuOoCkjrL4IFNmOVEpg/q/jvYehmLWRZcSbXy2pqN/m9bDNzlvw0IdX0ao4Uh7be69TTCC2yoc66zzy5qHhjbRLrwoIV/qj2v2/KQrgtsDzdXLm+KlSi1ZrZanymjt0hM11Fbp7mcz7Q5mSPrnC6gL695cTocDoOarzHFo1WpmYW+3J9F1NhL5TPTsK+uW9f2hpfZkvOGt7DrBkEp0QpPBm+Xm19hikq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Y/eehmhYGkU9Kje9oTQRw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2017 20:48:58.6491 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR03MB249 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3804 Lines: 106 Updates the QMan and BMan device tree bindings for reserved memory nodes. This makes the reserved memory allocation compatiable with the shared-dma-pool usage. Signed-off-by: Roy Pledge --- Documentation/devicetree/bindings/soc/fsl/bman.txt | 11 ++++++----- Documentation/devicetree/bindings/soc/fsl/qman.txt | 18 +++++++++++------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/fsl/bman.txt b/Documentation/devicetree/bindings/soc/fsl/bman.txt index 47ac834..3cd1e2c 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,8 @@ 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" 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 +101,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..8cd20c0 100644 --- a/Documentation/devicetree/bindings/soc/fsl/qman.txt +++ b/Documentation/devicetree/bindings/soc/fsl/qman.txt @@ -74,7 +74,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 +85,8 @@ 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" The QMan PFDR memory node must be named "qman-pfdr" @@ -92,7 +95,8 @@ 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" 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 +121,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