Re: [Xen-devel] [RFC PATCH v3 15/24] ARM: NUMA: DT: Add CPU NUMA support

2017-07-26 Thread Stefano Stabellini
On Wed, 26 Jul 2017, Julien Grall wrote: > Hi Stefano, > > On 25/07/17 20:06, Stefano Stabellini wrote: > > On Tue, 25 Jul 2017, Julien Grall wrote: > > > On 25/07/17 19:48, Stefano Stabellini wrote: > > > > On Tue, 25 Jul 2017, Julien Grall wrote: > > > > > On 25/07/17 07:47, Vijay Kilari wrote:

Re: [Xen-devel] [RFC PATCH v3 15/24] ARM: NUMA: DT: Add CPU NUMA support

2017-07-26 Thread Julien Grall
Hi Stefano, On 25/07/17 20:06, Stefano Stabellini wrote: On Tue, 25 Jul 2017, Julien Grall wrote: On 25/07/17 19:48, Stefano Stabellini wrote: On Tue, 25 Jul 2017, Julien Grall wrote: On 25/07/17 07:47, Vijay Kilari wrote: void numa_failed(void) { numa_off = true; init_dt_numa_di

Re: [Xen-devel] [RFC PATCH v3 15/24] ARM: NUMA: DT: Add CPU NUMA support

2017-07-25 Thread Stefano Stabellini
On Tue, 25 Jul 2017, Julien Grall wrote: > On 25/07/17 19:48, Stefano Stabellini wrote: > > On Tue, 25 Jul 2017, Julien Grall wrote: > > > On 25/07/17 07:47, Vijay Kilari wrote: > > > > > > void numa_failed(void) > > > > > > { > > > > > > numa_off = true; > > > > > > init_dt_numa_distan

Re: [Xen-devel] [RFC PATCH v3 15/24] ARM: NUMA: DT: Add CPU NUMA support

2017-07-25 Thread Julien Grall
On 25/07/17 19:48, Stefano Stabellini wrote: On Tue, 25 Jul 2017, Julien Grall wrote: On 25/07/17 07:47, Vijay Kilari wrote: void numa_failed(void) { numa_off = true; init_dt_numa_distance(); node_distance_fn = NULL; +init_cpu_to_node(); +} + +void __init numa_set_cpu_nod

Re: [Xen-devel] [RFC PATCH v3 15/24] ARM: NUMA: DT: Add CPU NUMA support

2017-07-25 Thread Stefano Stabellini
On Tue, 25 Jul 2017, Julien Grall wrote: > On 25/07/17 07:47, Vijay Kilari wrote: > > > > void numa_failed(void) > > > > { > > > > numa_off = true; > > > > init_dt_numa_distance(); > > > > node_distance_fn = NULL; > > > > +init_cpu_to_node(); > > > > +} > > > > + > > > > +void

Re: [Xen-devel] [RFC PATCH v3 15/24] ARM: NUMA: DT: Add CPU NUMA support

2017-07-25 Thread Julien Grall
On 25/07/17 07:47, Vijay Kilari wrote: void numa_failed(void) { numa_off = true; init_dt_numa_distance(); node_distance_fn = NULL; +init_cpu_to_node(); +} + +void __init numa_set_cpu_node(int cpu, unsigned int nid) +{ +if ( !node_isset(nid, processor_nodes_parsed) || ni

Re: [Xen-devel] [RFC PATCH v3 15/24] ARM: NUMA: DT: Add CPU NUMA support

2017-07-24 Thread Vijay Kilari
Hi Julien, On Mon, Jul 24, 2017 at 4:54 PM, Julien Grall wrote: > Hi Vijay, > > > On 18/07/17 12:41, vijay.kil...@gmail.com wrote: >> >> From: Vijaya Kumar K >> >> For each cpu, update cpu_to_node[] with node id from >> the numa-node-id DT property. Also, initialize cpu_to_node[] >> with node 0.

Re: [Xen-devel] [RFC PATCH v3 15/24] ARM: NUMA: DT: Add CPU NUMA support

2017-07-24 Thread Julien Grall
Hi Vijay, On 18/07/17 12:41, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K For each cpu, update cpu_to_node[] with node id from the numa-node-id DT property. Also, initialize cpu_to_node[] with node 0. Add macros to access cpu_to_node[] information. Signed-off-by: Vijaya Kumar K --- v3

[Xen-devel] [RFC PATCH v3 15/24] ARM: NUMA: DT: Add CPU NUMA support

2017-07-18 Thread vijay . kilari
From: Vijaya Kumar K For each cpu, update cpu_to_node[] with node id from the numa-node-id DT property. Also, initialize cpu_to_node[] with node 0. Add macros to access cpu_to_node[] information. Signed-off-by: Vijaya Kumar K --- v3: - Dropped numa_add_cpu declaration from asm-arm/numa.h -