From patchwork Thu Sep 25 09:03:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ganapatrao Kulkarni X-Patchwork-Id: 393279 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 5696B140179 for ; Thu, 25 Sep 2014 19:04:52 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752749AbaIYJEv (ORCPT ); Thu, 25 Sep 2014 05:04:51 -0400 Received: from mail-bn1on0067.outbound.protection.outlook.com ([157.56.110.67]:11072 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752592AbaIYJEv (ORCPT ); Thu, 25 Sep 2014 05:04:51 -0400 Received: from mypc.cavium.com.com (111.93.218.67) by BY2PR07MB456.namprd07.prod.outlook.com (10.141.220.155) with Microsoft SMTP Server (TLS) id 15.0.1034.13; Thu, 25 Sep 2014 09:04:45 +0000 From: Ganapatrao Kulkarni To: , , , CC: , , Subject: [RFC PATCH 2/4] arm/arm64:dt:numa: adding numa node mapping for memory nodes. Date: Thu, 25 Sep 2014 14:33:57 +0530 Message-ID: <1411635840-24038-3-git-send-email-ganapatrao.kulkarni@caviumnetworks.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1411635840-24038-1-git-send-email-ganapatrao.kulkarni@caviumnetworks.com> References: <1411635840-24038-1-git-send-email-ganapatrao.kulkarni@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BY2PR03CA072.namprd03.prod.outlook.com (10.141.249.45) To BY2PR07MB456.namprd07.prod.outlook.com (10.141.220.155) X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY2PR07MB456; X-Forefront-PRVS: 0345CFD558 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(189002)(199003)(4396001)(101416001)(87976001)(36756003)(21056001)(90102001)(88136002)(64706001)(89996001)(10300001)(20776003)(50226001)(81542003)(120916001)(50466002)(86362001)(74502003)(102836001)(48376002)(107046002)(76176999)(83322001)(47776003)(80022003)(79102003)(81342003)(87286001)(77982003)(74662003)(19580395003)(42186005)(85306004)(77156001)(229853001)(33646002)(62966002)(19580405001)(105586002)(97736003)(2201001)(93916002)(106356001)(83072002)(46102003)(77096002)(95666004)(66066001)(31966008)(92566001)(85852003)(92726001)(99396003)(76482002)(104166001)(50986999)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB456; H:mypc.cavium.com.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-OriginatorOrg: caviumnetworks.com Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Adding Documentation for dt binding for memory to numa node mapping. Signed-off-by: Ganapatrao Kulkarni --- Documentation/devicetree/bindings/arm/numa.txt | 60 ++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/numa.txt diff --git a/Documentation/devicetree/bindings/arm/numa.txt b/Documentation/devicetree/bindings/arm/numa.txt new file mode 100644 index 0000000..1cdc6d3 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/numa.txt @@ -0,0 +1,60 @@ +======================================================== +ARM numa id binding description +======================================================== + +======================================================== +1 - Introduction +======================================================== + +The device node property nid (numa node id) can be added +to memory device node to map the range of memory addresses +as defined in property reg. The property nid maps the memory +range to the numa node id, which is used to find the local +and remote pages on numa aware systems. + +======================================================== +2 - nid property +======================================================== +nid is required property of memory device node for +numa enabled platforms. + +|------------------------------------------------------| +|Property Type | Usage | Value Type | Definition | +|------------------------------------------------------| +| nid | R | | Numa Node id | +| | | | for this memory | +|------------------------------------------------------| + +======================================================== +4 - Example memory nodes with numa information +======================================================== + +Example 1 (2 memory nodes, each mapped to a numa node.): + + memory@00000000 { + device_type = "memory"; + reg = <0x0 0x00000000 0x0 0x80000000>; + nid = <0x0>; + }; + + memory@10000000000 { + device_type = "memory"; + reg = <0x100 0x00000000 0x0 0x80000000>; + nid = <0x1>; + }; + +Example 2 (multiple memory ranges in each memory node and mapped to numa node): + + memory@00000000 { + device_type = "memory"; + reg = <0x0 0x00000000 0x0 0x80000000>, + <0x1 0x00000000 0x0 0x80000000>; + nid = <0x0>; + }; + + memory@10000000000 { + device_type = "memory"; + reg = <0x100 0x00000000 0x0 0x80000000>; + reg = <0x100 0x80000000 0x0 0x80000000>; + nid = <0x1>; + };