Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754593AbYJFQF5 (ORCPT ); Mon, 6 Oct 2008 12:05:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752633AbYJFQFr (ORCPT ); Mon, 6 Oct 2008 12:05:47 -0400 Received: from gate.crashing.org ([63.228.1.57]:39615 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751835AbYJFQFq (ORCPT ); Mon, 6 Oct 2008 12:05:46 -0400 Cc: Adam Litke , linuxppc-dev , Adam Litke , Linux Kernel Mailing List , Linux Memory Management List Message-Id: <1DA7FAFA-0708-4CFC-B721-B09A29F45B3F@kernel.crashing.org> From: Kumar Gala To: Jon Tollefson In-Reply-To: <48EA31D5.70609@linux.vnet.ibm.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: [PATCH] properly reserve in bootmem the lmb reserved regions that cross numa nodes Date: Mon, 6 Oct 2008 10:58:25 -0500 References: <48E23D6C.4030406@linux.vnet.ibm.com> <1222789675.13978.14.camel@localhost.localdomain> <7E5B6DFB-F9DE-4929-8A4F-8011BF817017@kernel.crashing.org> <48EA31D5.70609@linux.vnet.ibm.com> X-Mailer: Apple Mail (2.929.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1036 Lines: 33 On Oct 6, 2008, at 10:42 AM, Jon Tollefson wrote: > Kumar Gala wrote: >> Out of interest how to do you guys represent NUMA regions of memory >> in >> the device tree? >> >> - k > Looking at the source code in numa.c I see at the start of > do_init_bootmem() that parse_numa_properties() is called. It > appears to > be looking at memory nodes and getting the node id from it. It gets > an > associativity property for the memory node and indexes that array > with a > 'min_common_depth' value to get the node id. > > This node id is then used to setup the active ranges in the > early_node_map[]. > > Is this what you are asking about? There are others I am sure who > know > more about it then I though. I was wondering if this was documented anywhere (like in sPAPR)? - k -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/