Re: [PATCH v7 10/17] ARM64 / ACPI: Parse MADT for SMP initialization

2015-01-20 Thread Lorenzo Pieralisi
On Tue, Jan 20, 2015 at 01:09:55PM +, Hanjun Guo wrote: [...] > >> +{ > >> + int cpu; > >> + > >> + if (mpidr == INVALID_HWID) { > >> + pr_info("Skip MADT cpu entry with invalid MPIDR\n"); > >> + return -EINVAL; > >> + } > >> + > >> +

Re: [PATCH v7 10/17] ARM64 / ACPI: Parse MADT for SMP initialization

2015-01-20 Thread Hanjun Guo
Hi Lorenzo, Sorry for the late reply, I was updating this patch according to your comments and see if it works, inline reply below. On 2015年01月17日 02:18, Lorenzo Pieralisi wrote: Hi Hanjun, On Wed, Jan 14, 2015 at 03:04:58PM +, Hanjun Guo wrote: [...] diff --git

Re: [PATCH v7 10/17] ARM64 / ACPI: Parse MADT for SMP initialization

2015-01-20 Thread Hanjun Guo
Hi Lorenzo, Sorry for the late reply, I was updating this patch according to your comments and see if it works, inline reply below. On 2015年01月17日 02:18, Lorenzo Pieralisi wrote: Hi Hanjun, On Wed, Jan 14, 2015 at 03:04:58PM +, Hanjun Guo wrote: [...] diff --git

Re: [PATCH v7 10/17] ARM64 / ACPI: Parse MADT for SMP initialization

2015-01-20 Thread Lorenzo Pieralisi
On Tue, Jan 20, 2015 at 01:09:55PM +, Hanjun Guo wrote: [...] +{ + int cpu; + + if (mpidr == INVALID_HWID) { + pr_info(Skip MADT cpu entry with invalid MPIDR\n); + return -EINVAL; + } + + total_cpus++; + if

Re: [PATCH v7 10/17] ARM64 / ACPI: Parse MADT for SMP initialization

2015-01-16 Thread Lorenzo Pieralisi
Hi Hanjun, On Wed, Jan 14, 2015 at 03:04:58PM +, Hanjun Guo wrote: [...] > diff --git a/arch/arm64/include/asm/smp.h b/arch/arm64/include/asm/smp.h > index 780f82c..bf22650 100644 > --- a/arch/arm64/include/asm/smp.h > +++ b/arch/arm64/include/asm/smp.h > @@ -39,9 +39,10 @@ extern void

Re: [PATCH v7 10/17] ARM64 / ACPI: Parse MADT for SMP initialization

2015-01-16 Thread Lorenzo Pieralisi
Hi Hanjun, On Wed, Jan 14, 2015 at 03:04:58PM +, Hanjun Guo wrote: [...] diff --git a/arch/arm64/include/asm/smp.h b/arch/arm64/include/asm/smp.h index 780f82c..bf22650 100644 --- a/arch/arm64/include/asm/smp.h +++ b/arch/arm64/include/asm/smp.h @@ -39,9 +39,10 @@ extern void

Re: [PATCH v7 10/17] ARM64 / ACPI: Parse MADT for SMP initialization

2015-01-15 Thread Mark Langsdorf
On 01/14/2015 09:04 AM, Hanjun Guo wrote: MADT contains the information for MPIDR which is essential for SMP initialization, parse the GIC cpu interface structures to get the MPIDR value and map it to cpu_logical_map(), and add enabled cpu with valid MPIDR into cpu_possible_map. ACPI 5.1 only

Re: [PATCH v7 10/17] ARM64 / ACPI: Parse MADT for SMP initialization

2015-01-15 Thread Mark Langsdorf
On 01/14/2015 09:04 AM, Hanjun Guo wrote: MADT contains the information for MPIDR which is essential for SMP initialization, parse the GIC cpu interface structures to get the MPIDR value and map it to cpu_logical_map(), and add enabled cpu with valid MPIDR into cpu_possible_map. ACPI 5.1 only

[PATCH v7 10/17] ARM64 / ACPI: Parse MADT for SMP initialization

2015-01-14 Thread Hanjun Guo
MADT contains the information for MPIDR which is essential for SMP initialization, parse the GIC cpu interface structures to get the MPIDR value and map it to cpu_logical_map(), and add enabled cpu with valid MPIDR into cpu_possible_map. ACPI 5.1 only has two explicit methods to boot up SMP, PSCI

[PATCH v7 10/17] ARM64 / ACPI: Parse MADT for SMP initialization

2015-01-14 Thread Hanjun Guo
MADT contains the information for MPIDR which is essential for SMP initialization, parse the GIC cpu interface structures to get the MPIDR value and map it to cpu_logical_map(), and add enabled cpu with valid MPIDR into cpu_possible_map. ACPI 5.1 only has two explicit methods to boot up SMP, PSCI