Re: [PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-08-04 Thread Hanjun Guo
Hi Olof, On 2014-7-31 18:57, Hanjun Guo wrote: > On 2014-7-31 14:54, Olof Johansson wrote: [...] >>> +static void __init acpi_smp_init_cpus(void) >>> +{ >>> + int cpu; >>> + >>> + for_each_possible_cpu(cpu) { >>> + if (cpu_acpi_read_ops(cpu) != 0) >>> + continue;

Re: [PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-08-04 Thread Hanjun Guo
Hi Olof, On 2014-7-31 18:57, Hanjun Guo wrote: On 2014-7-31 14:54, Olof Johansson wrote: [...] +static void __init acpi_smp_init_cpus(void) +{ + int cpu; + + for_each_possible_cpu(cpu) { + if (cpu_acpi_read_ops(cpu) != 0) + continue; + +

Re: [PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-08-01 Thread Hanjun Guo
On 2014-8-1 2:52, Geoff Levand wrote: > Hi Hanjun, Hi Geoff, > > On Thu, 2014-07-24 at 21:00 +0800, Hanjun Guo wrote: >> ACPI 5.1 only has two explicit methods to boot up SMP, >> PSCI and Parking protocol, but the Parking protocol is >> only suitable for ARMv7 now, so make PSCI as the only way

Re: [PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-08-01 Thread Hanjun Guo
On 2014-8-1 2:52, Geoff Levand wrote: Hi Hanjun, Hi Geoff, On Thu, 2014-07-24 at 21:00 +0800, Hanjun Guo wrote: ACPI 5.1 only has two explicit methods to boot up SMP, PSCI and Parking protocol, but the Parking protocol is only suitable for ARMv7 now, so make PSCI as the only way for the

Re: [PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-07-31 Thread Geoff Levand
Hi Hanjun, On Thu, 2014-07-24 at 21:00 +0800, Hanjun Guo wrote: > ACPI 5.1 only has two explicit methods to boot up SMP, > PSCI and Parking protocol, but the Parking protocol is > only suitable for ARMv7 now, so make PSCI as the only way > for the SMP boot protocol before some updates for the >

Re: [PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-07-31 Thread Hanjun Guo
On 2014-7-31 14:54, Olof Johansson wrote: > Hi, > > On Thu, Jul 24, 2014 at 09:00:16PM +0800, Hanjun Guo wrote: >> +/* >> + * In ACPI mode, the cpu possible map was enumerated before SMP >> + * initialization when MADT table was parsed, so we can get the >> + * possible map here to initialize

Re: [PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-07-31 Thread Olof Johansson
Hi, On Thu, Jul 24, 2014 at 09:00:16PM +0800, Hanjun Guo wrote: > +/* > + * In ACPI mode, the cpu possible map was enumerated before SMP > + * initialization when MADT table was parsed, so we can get the > + * possible map here to initialize CPUs. > + */ The DT smp init will warn if the kernel

Re: [PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-07-31 Thread Olof Johansson
Hi, On Thu, Jul 24, 2014 at 09:00:16PM +0800, Hanjun Guo wrote: +/* + * In ACPI mode, the cpu possible map was enumerated before SMP + * initialization when MADT table was parsed, so we can get the + * possible map here to initialize CPUs. + */ The DT smp init will warn if the kernel has

Re: [PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-07-31 Thread Hanjun Guo
On 2014-7-31 14:54, Olof Johansson wrote: Hi, On Thu, Jul 24, 2014 at 09:00:16PM +0800, Hanjun Guo wrote: +/* + * In ACPI mode, the cpu possible map was enumerated before SMP + * initialization when MADT table was parsed, so we can get the + * possible map here to initialize CPUs. + */

Re: [PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-07-31 Thread Geoff Levand
Hi Hanjun, On Thu, 2014-07-24 at 21:00 +0800, Hanjun Guo wrote: ACPI 5.1 only has two explicit methods to boot up SMP, PSCI and Parking protocol, but the Parking protocol is only suitable for ARMv7 now, so make PSCI as the only way for the SMP boot protocol before some updates for the ACPI

[PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-07-24 Thread Hanjun Guo
ACPI 5.1 only has two explicit methods to boot up SMP, PSCI and Parking protocol, but the Parking protocol is only suitable for ARMv7 now, so make PSCI as the only way for the SMP boot protocol before some updates for the ACPI spec or the Parking protocol spec. Signed-off-by: Hanjun Guo

[PATCH 10/19] ARM64 / ACPI: Get the enable method for SMP initialization in ACPI way

2014-07-24 Thread Hanjun Guo
ACPI 5.1 only has two explicit methods to boot up SMP, PSCI and Parking protocol, but the Parking protocol is only suitable for ARMv7 now, so make PSCI as the only way for the SMP boot protocol before some updates for the ACPI spec or the Parking protocol spec. Signed-off-by: Hanjun Guo