Re: [PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-03-10 Thread Hanjun Guo
Hi Matthias, Sorry for the late reply, on a travelling now. On 03/02/2016 10:08 PM, Matthias Brugger wrote: On 23/01/16 10:39, Hanjun Guo wrote: From: Hanjun Guo Introduce a new file to hold ACPI based NUMA information parsing from SRAT and SLIT. SRAT includes the CPU ACPI ID to Proximity

Re: [PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-03-02 Thread Matthias Brugger
On 01/02/16 19:09, Robert Richter wrote: On 23.01.16 17:39:20, Hanjun Guo wrote: @@ -385,10 +386,8 @@ void __init arm64_numa_init(void) { int ret = -ENODEV; -#ifdef CONFIG_OF_NUMA if (!numa_off) - ret = numa_init(arm64_of_numa_init); -#endif + re

Re: [PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-03-02 Thread Matthias Brugger
On 01/02/16 19:09, Robert Richter wrote: On 23.01.16 17:39:20, Hanjun Guo wrote: @@ -385,10 +386,8 @@ void __init arm64_numa_init(void) { int ret = -ENODEV; -#ifdef CONFIG_OF_NUMA if (!numa_off) - ret = numa_init(arm64_of_numa_init); -#endif + re

Re: [PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-03-02 Thread Matthias Brugger
On 23/01/16 10:39, Hanjun Guo wrote: From: Hanjun Guo Introduce a new file to hold ACPI based NUMA information parsing from SRAT and SLIT. SRAT includes the CPU ACPI ID to Proximity Domain mappings and memory ranges to Proximity Domain mapping. SLIT has the information of inter node distance

Re: [PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-02-02 Thread Lorenzo Pieralisi
On Tue, Feb 02, 2016 at 07:30:12PM +0800, Hanjun Guo wrote: [...] > >How about the following (similar to x86)? > > > > > > if (!numa_off) { > >#ifdef CONFIG_ACPI_NUMA > > if (!numa_init(acpi_numa_init)) > > return 0; > >#endif > >#ifdef CONFIG_OF_NUMA > >

Re: [PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-02-02 Thread Hanjun Guo
On 2016/2/2 2:09, Robert Richter wrote: On 23.01.16 17:39:20, Hanjun Guo wrote: @@ -385,10 +386,8 @@ void __init arm64_numa_init(void) { int ret = -ENODEV; -#ifdef CONFIG_OF_NUMA if (!numa_off) - ret = numa_init(arm64_of_numa_init); -#endif + ret =

Re: [PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-02-01 Thread Robert Richter
On 23.01.16 17:39:20, Hanjun Guo wrote: > @@ -385,10 +386,8 @@ void __init arm64_numa_init(void) > { > int ret = -ENODEV; > > -#ifdef CONFIG_OF_NUMA > if (!numa_off) > - ret = numa_init(arm64_of_numa_init); > -#endif > + ret = numa_init(acpi_disabled ? arm64_

Re: [PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-01-27 Thread Hanjun Guo
On 2016/1/27 22:01, Robert Richter wrote: > On 27.01.16 15:12:15, Hanjun Guo wrote: >> On 2016/1/25 18:21, Robert Richter wrote: >>> On 23.01.16 17:39:20, Hanjun Guo wrote: diff --git a/arch/arm64/kernel/acpi_numa.c b/arch/arm64/kernel/acpi_numa.c new file mode 100644 index 000..

Re: [PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-01-27 Thread Robert Richter
On 27.01.16 15:12:15, Hanjun Guo wrote: > On 2016/1/25 18:21, Robert Richter wrote: > > On 23.01.16 17:39:20, Hanjun Guo wrote: > >> diff --git a/arch/arm64/kernel/acpi_numa.c b/arch/arm64/kernel/acpi_numa.c > >> new file mode 100644 > >> index 000..f7f7533 > >> --- /dev/null > >> +++ b/arch/ar

Re: [PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-01-26 Thread Hanjun Guo
On 2016/1/25 18:21, Robert Richter wrote: > On 23.01.16 17:39:20, Hanjun Guo wrote: >> diff --git a/arch/arm64/kernel/acpi_numa.c b/arch/arm64/kernel/acpi_numa.c >> new file mode 100644 >> index 000..f7f7533 >> --- /dev/null >> +++ b/arch/arm64/kernel/acpi_numa.c >> +/* Callback for parsing of

Re: [PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-01-25 Thread Robert Richter
On 23.01.16 17:39:20, Hanjun Guo wrote: > diff --git a/arch/arm64/kernel/acpi_numa.c b/arch/arm64/kernel/acpi_numa.c > new file mode 100644 > index 000..f7f7533 > --- /dev/null > +++ b/arch/arm64/kernel/acpi_numa.c > +/* Callback for parsing of the Proximity Domain <-> Memory Area mappings */

[PATCH v3 05/12] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-01-23 Thread Hanjun Guo
From: Hanjun Guo Introduce a new file to hold ACPI based NUMA information parsing from SRAT and SLIT. SRAT includes the CPU ACPI ID to Proximity Domain mappings and memory ranges to Proximity Domain mapping. SLIT has the information of inter node distances(relative number for access latency). S