[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC PATCH v1 07/21] ARM: NUMA: Parse memory NUMA information
On 02/03/17 15:08, Vijay Kilari wrote: On Thu, Mar 2, 2017 at 8:18 PM, Julien Grall <julien.grall@xxxxxxx> wrote:Hello Vijay, On 02/03/17 12:25, Vijay Kilari wrote:On Mon, Feb 20, 2017 at 11:35 PM, Julien Grall <julien.grall@xxxxxxx> wrote:On 09/02/17 15:56, vijay.kilari@xxxxxxxxx wrote:[...]Rather than reimplementing the wheel, it might be better to hook the parsing in bootfdt.c. This would avoid an extra parsing of the device-tree, duplicate the code and expose primitive for early DT parsing.The process_memory_node() is called only if EFI_BOOT is not enabled. So hooking might not work.This series adds this change (see patch #5) and the code is not set in stone.I have not added process_memory_node() in the patch #5, I have only introduced the check. That's exactly what I said... We should rework the code when it makes sense rather than trying to find a more convolute way.I see two restrictions. 1) If we make a hook from process_memory_node(). This is called much earlier than numa_init(). 2) We cannot move numa_init() before setup_mm(). I didn't ask to move numa_init earlier but moving the parsing earlier. AFAICT, it does not require to allocate memory nor rely on anything initialized big in numa_init but nodes_clear(...). Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |