Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752336AbcCAQ5r (ORCPT ); Tue, 1 Mar 2016 11:57:47 -0500 Received: from mail-bn1on0089.outbound.protection.outlook.com ([157.56.110.89]:28393 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751805AbcCAQ5o (ORCPT ); Tue, 1 Mar 2016 11:57:44 -0500 Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=caviumnetworks.com; Message-ID: <56D5C9FF.8020500@caviumnetworks.com> Date: Tue, 1 Mar 2016 08:57:35 -0800 From: David Daney User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Rob Herring CC: David Daney , Will Deacon , "linux-arm-kernel@lists.infradead.org" , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , "devicetree@vger.kernel.org" , Ard Biesheuvel , Frank Rowand , Grant Likely , Catalin Marinas , Matt Fleming , "linux-efi@vger.kernel.org" , Ganapatrao Kulkarni , Robert Richter , "linux-kernel@vger.kernel.org" , David Daney Subject: Re: [PATCH v11 08/10] dt, numa: Add NUMA dt binding implementation. References: <1455930799-5371-1-git-send-email-ddaney.cavm@gmail.com> <1455930799-5371-9-git-send-email-ddaney.cavm@gmail.com> <20160223193651.GA8491@rob-hp-laptop> <56CFA9CA.6090803@caviumnetworks.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [64.2.3.194] X-ClientProxiedBy: SN2PR07CA002.namprd07.prod.outlook.com (10.255.174.19) To BN4PR07MB2131.namprd07.prod.outlook.com (25.164.63.13) X-Microsoft-Exchange-Diagnostics: 1;BN4PR07MB2131;2:lq82iSKnZgUDsw0FzINfizC25/ovowTpOcYr5oYBgod/FfHDRSWvKDBtzAqfE4vB0sHyGEr+WzwzkvohVK0wprtA/lS9p5Vj0quGSxjfA9sX6zih7AtEtBj0mm3QyuarRA6Jw/8S/Mgfid1guoAcbQ==;3:nVkO/Wj1UzTscvVTe4d7p6Z1SDrEz2RufxR/yECSlwbXqvkpzKr8S16gKjKBqaPektPeE9DVXNL8RMUqVmRCvIoBLfFdk6yxwjvLcztaRL18fPmVnofre0OozhPhIG+u;25:f9U4W1mHuXrmUiP8LOpMZ+1p6A3s1xoQxe6rQDW2RFQ2LKDSlnbBsMgS8M1gLXO2zNlb3LJtFtbWwIrq4I1szcbj8pHjFMi4KJ4RsF12h1jXYl4Niy6sjH/3+6/O4LD9my8N4l/M21BBZnB3lBsSm0+fmCSrc5JfEoVvexauRmALV8KEMpV5M3Cew1H2+640yryHKzhg369X0pJZIDVb7WkcU94tGdJC5zPabB9hnRyhM5Qec3VKd7my/TH+c81hlRo/xPQvzdxD5eiTizSubQ1D8c+THrt3CjYihl0a0hTdzcVQRhRaoDjRvZTai3vF39v7vuNzkBWmhbNgIfaAbA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN4PR07MB2131; X-MS-Office365-Filtering-Correlation-Id: 87bc133b-b867-47da-5434-08d341f299ab X-Microsoft-Exchange-Diagnostics: 1;BN4PR07MB2131;20:IzvYinPUB0ybd5l9kCo9Bor2ue4Cgh+mnH3zY0I/ESoK2pQevI7C3hLbKjGqZVSLbMNQb/lUQIMff5h8RgC+ouk/S4suvhZ+5DBLfeJZl4vxR5IkVhkGNl2PGVPzlKACFp+g1/tZpO2F2/LsF+9d1/ZR9MxshA/DWY4yJ+EMBiqVe/NQKsGvJLdVOMP/DF7lhXmY31/tofgoKnH/clD1XipPGL9iJEkZFvvALt0m8SUsMOOEoN1Lp1z4af6oS746w14tVYTHuhaceuUWjKiVxeoeIVG82/ehh5CsKETFrVy79IAKo1M3M8Hk+tHIkT8vIIbsHvpZHSpBujOqU5zcQ2KheUiqPsRHMVNBrmBxUtZiS/B8dcrUS4CDBBIskA8uFc4YOfKV4O0/I94c9c7v3cScw1lMNdqtHxJx583roF3crBhxdN2PKYcKWVPX5PJpgE6tfuIn1XHaNXvu15cLDhZhDwMhfY2EVnwu4P0XKCXJHbM0TY8MEwNvhOBoh4KCg5vJx4YQphmrWeSbd3BRhdNTvUjojlDRILxu+3PUtfELocYGQIRLpez2vIJzcToOsGr/94xj/GDVAu1BPd3q9Ij6jbhRYCdCbXwJprAc/TE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001);SRVR:BN4PR07MB2131;BCL:0;PCL:0;RULEID:;SRVR:BN4PR07MB2131; X-Microsoft-Exchange-Diagnostics: 1;BN4PR07MB2131;4:vCZ0uPRG45FC2Fhz+M0bCqvw3iLxXaYHx/ZY44tbkFf6xky/ZRwniB8ICRHwEVpr0ltlproVgVL/KkdV2I3tCb8Esz+DgzoqqS1ehBjTSj3zQG5LnBB9xxY6baDDCpefQ1L5J+YdBPrv8aqCL/IGkftXr2VQwHN4/te2V63fFNiRrZbz0olojLoT5qk3C2OIAka1bkixtSXE7BcziZxkeP7GqdMLwJXdO553Hb24bAmfDebFzdaQ0xHHA9FTB2KWplCMTr7PhLG7ESDdg7W+rujKmUtOhiggkRs88YzjmNZkMngJO2sJf+bb8xQ7Y12GpSlwi6m8zL1fTWuFyR18a13+cpNrwlidqFd3U7wWtYie34EGkdJ9GLsvqQos2MGU X-Forefront-PRVS: 086831DFB4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(24454002)(479174004)(377454003)(65806001)(76176999)(65816999)(189998001)(36756003)(47776003)(110136002)(2906002)(5008740100001)(230700001)(64126003)(586003)(33656002)(15975445007)(3846002)(77096005)(6116002)(1096002)(19580405001)(2950100001)(19580395003)(5001960100004)(81156009)(42186005)(53416004)(66066001)(50466002)(4001350100001)(4326007)(50986999)(54356999)(92566002)(40100003)(83506001)(87266999)(23676002)(93886004)(122386002)(87976001)(5004730100002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN4PR07MB2131;H:dl.caveonetworks.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjRQUjA3TUIyMTMxOzIzOlVJeFB4dXFKbzNUVkxpZXV2eGxwSVcxS2xR?= =?utf-8?B?a1ROejNVR3RzcmdEQlhOZEphVkNORm5aaVc3bTVRNkZWb2luc2wwbVhvS01U?= =?utf-8?B?N1oxNUdnSmYyZ3dkalIwRkgrTHZGWEk2b1pyL2t2TFI2cDE0WjE1UjV5Nmow?= =?utf-8?B?YU9uR0RScGFOdE54dGUwYlZmN080KzdUR0psbnZudWw2MkNjZm5hWXVSVUZC?= =?utf-8?B?T0t0SXRKbnBYdXI4VjQ3RjY3TDNlZDh1UzArbzcwV0R1MXZnZGV0eEVMWFgr?= =?utf-8?B?V3YveGZONUdnWHRZOGVOYUh2QVJNaW1TZUJRUU9NRXFEdWc0U1h4dTZuekJ4?= =?utf-8?B?b2kwcUxIWW9KT2x5cVo2Ulc1YkRpeVAwYVZibzZYNkk5SjM2aTZ0M0E1TWMw?= =?utf-8?B?dE12UDJCNHJrSERod0YwOGN1NTVVNkQ5NHJ2T1QvMXQ1TGJxM2plMjlUOVRZ?= =?utf-8?B?YkJ2K25Td29WRUlMNHJFS3ZzOHRRNjBGNDhDdFBmaTltdzRsRTFsenBXQmNQ?= =?utf-8?B?QnFBUFRGb016MTlsVSs3a2VXVENrR01paGUrM2Ywc3J5MEthWGwrVUFDQUF2?= =?utf-8?B?a3RVekpFeWtIVG52c2hqV1M4UnpNK2ZBNXRiTng3ODE5eHhBOFExSW04RjFR?= =?utf-8?B?TW5DS1NlaGUyRzZBRFloeVF2WlJUUFBaTEs1eWFmY3ovR3VVN0JHb2pJRWRH?= =?utf-8?B?NDdrNGdaRGR4V0hoTG04SHFFZVhpbmw1YkRzeHJCbmpP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64H9Xu/rOcXictdUElEL+JYlgDo1dRshHzXg7JbfS1arZEzGlZrlAQrj1rCF9UQcwqyJymEDuOq6rLu4Q70av2th2LTlEuq0uId16aA2iCxHZb5sWTkjZeseiLKiw8qJ9OdINJQ==;24:TxIHzu7145iEHaCVrwIpiPFsS74p1RWWLqIp/B7SR0wuo8IcQxdcqOFurqI2Ifmdwp+BIm40uZzlf4BTyuemOqK3+FUJJ2fVJPeZ5HcfVY4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2016 16:57:38.9623 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN4PR07MB2131 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1543 Lines: 50 On 03/01/2016 08:47 AM, Rob Herring wrote: > On Thu, Feb 25, 2016 at 7:26 PM, David Daney wrote: >> On 02/23/2016 11:36 AM, Rob Herring wrote: >>> >>> On Fri, Feb 19, 2016 at 05:13:17PM -0800, David Daney wrote: >>>> >>>> From: Ganapatrao Kulkarni >>>> >>>> ADD device tree node parsing for NUMA topology using device >>>> "numa-node-id" property distance-map. >>> >>> >>> I still want an adequate explanation why NUMA setup cannot be done with >>> an unflattened tree. PowerPC manages to do that and should have a >>> similar init flow being memblock based, so I would expect arm64 can too. >> >> >> Many things could be done. Really, we want to know what *should* be done. >> >> In the context of the current arm64 memory initialization we (more or less) >> do: >> >> 1) early_init_fdt_scan_reserved_mem(); >> 2) memory_present() >> 3) sparse_init() >> 4) other things >> 5) unflatten_device_tree() >> >> We are already reading information out of the FDT at #1. >> >> This patch set adds a step between 1 and 2 where we read NUMA information >> out of the FDT. > > The dependency on unflattening is that memblock is up and we can > allocate a chunk from it. Isn't that dependency met by step 1 No. > or is > there a dependency on sparsemem (or something else)? Will Deacon talked about this over here: https://lkml.org/lkml/2016/2/26/782 I am happy to modify the patch set, but I don't want to get stuck as an intermediary between two opposing blocs. David Daney