Re: [RFC PATCH 1/2] powerpc/numa: Introduce logical numa id

2020-08-13 Thread Nathan Lynch
Hi Aneesh, "Aneesh Kumar K.V" writes: > "Aneesh Kumar K.V" writes: >> On 8/8/20 2:15 AM, Nathan Lynch wrote: >>> "Aneesh Kumar K.V" writes: On 8/7/20 9:54 AM, Nathan Lynch wrote: > "Aneesh Kumar K.V" writes: >> diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c >>

Re: [RFC PATCH 1/2] powerpc/numa: Introduce logical numa id

2020-08-10 Thread Srikar Dronamraju
* Aneesh Kumar K.V [2020-08-06 16:14:21]: > > > > associativity_to_nid gets called the first time a cpu is being made present > > from offline. So it need not be in boot path. We may to verify if cpu > > hotplug, dlpar, operations are synchronized. For example a memory hotadd and > > cpu hotplug

Re: [RFC PATCH 1/2] powerpc/numa: Introduce logical numa id

2020-08-09 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > On 8/8/20 2:15 AM, Nathan Lynch wrote: >> "Aneesh Kumar K.V" writes: >>> On 8/7/20 9:54 AM, Nathan Lynch wrote: "Aneesh Kumar K.V" writes: > diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c > index e437a9ac4956..6c659aada55b 100644 >

Re: [RFC PATCH 1/2] powerpc/numa: Introduce logical numa id

2020-08-09 Thread Aneesh Kumar K.V
On 8/8/20 2:15 AM, Nathan Lynch wrote: "Aneesh Kumar K.V" writes: On 8/7/20 9:54 AM, Nathan Lynch wrote: "Aneesh Kumar K.V" writes: diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index e437a9ac4956..6c659aada55b 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c

Re: [RFC PATCH 1/2] powerpc/numa: Introduce logical numa id

2020-08-07 Thread Nathan Lynch
"Aneesh Kumar K.V" writes: > On 8/7/20 9:54 AM, Nathan Lynch wrote: >> "Aneesh Kumar K.V" writes: >>> diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c >>> index e437a9ac4956..6c659aada55b 100644 >>> --- a/arch/powerpc/mm/numa.c >>> +++ b/arch/powerpc/mm/numa.c >>> @@ -221,25 +221,51

Re: [RFC PATCH 1/2] powerpc/numa: Introduce logical numa id

2020-08-06 Thread Aneesh Kumar K.V
On 8/7/20 9:54 AM, Nathan Lynch wrote: "Aneesh Kumar K.V" writes: diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index e437a9ac4956..6c659aada55b 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c @@ -221,25 +221,51 @@ static void

Re: [RFC PATCH 1/2] powerpc/numa: Introduce logical numa id

2020-08-06 Thread Nathan Lynch
"Aneesh Kumar K.V" writes: > diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c > index e437a9ac4956..6c659aada55b 100644 > --- a/arch/powerpc/mm/numa.c > +++ b/arch/powerpc/mm/numa.c > @@ -221,25 +221,51 @@ static void initialize_distance_lookup_table(int nid, > } > } > >

Re: [RFC PATCH 1/2] powerpc/numa: Introduce logical numa id

2020-08-06 Thread Aneesh Kumar K.V
Srikar Dronamraju writes: > * Aneesh Kumar K.V [2020-08-02 19:51:41]: >> Srikar Dronamraju writes: >> > * Aneesh Kumar K.V [2020-07-31 16:49:14]: >> > >> > >> > If its just to eliminate node 0, then we have 2 other probably better >> > solutions. >> > 1. Dont mark node 0 as spl (currently

Re: [RFC PATCH 1/2] powerpc/numa: Introduce logical numa id

2020-08-04 Thread Srikar Dronamraju
* Aneesh Kumar K.V [2020-08-02 19:51:41]: > Srikar Dronamraju writes: > > * Aneesh Kumar K.V [2020-07-31 16:49:14]: > > > > > > If its just to eliminate node 0, then we have 2 other probably better > > solutions. > > 1. Dont mark node 0 as spl (currently still in mm-tree and a result in > >

Re: [RFC PATCH 1/2] powerpc/numa: Introduce logical numa id

2020-08-02 Thread Aneesh Kumar K.V
Srikar Dronamraju writes: > * Aneesh Kumar K.V [2020-07-31 16:49:14]: > >> We use ibm,associativity and ibm,associativity-lookup-arrays to derive the >> numa >> node numbers. These device tree properties are firmware indicated grouping of >> resources based on their hierarchy in the platform.

Re: [RFC PATCH 1/2] powerpc/numa: Introduce logical numa id

2020-07-31 Thread Srikar Dronamraju
* Aneesh Kumar K.V [2020-07-31 16:49:14]: > We use ibm,associativity and ibm,associativity-lookup-arrays to derive the > numa > node numbers. These device tree properties are firmware indicated grouping of > resources based on their hierarchy in the platform. These numbers (group id) > are >

[RFC PATCH 1/2] powerpc/numa: Introduce logical numa id

2020-07-31 Thread Aneesh Kumar K.V
We use ibm,associativity and ibm,associativity-lookup-arrays to derive the numa node numbers. These device tree properties are firmware indicated grouping of resources based on their hierarchy in the platform. These numbers (group id) are not sequential and hypervisor/firmware can follow different