Re: [PATCH 10/20] ARM64 / ACPI: Enumerate possible/present CPU set and map logical cpu id to APIC id

2014-01-24 Thread Hanjun Guo
Hi Lorenzo, On 2014年01月22日 23:53, Lorenzo Pieralisi wrote: On Fri, Jan 17, 2014 at 12:25:04PM +, Hanjun Guo wrote: [...] +/* map logic cpu id to physical GIC id */ +extern int arm_cpu_to_apicid[NR_CPUS]; +#define cpu_physical_id(cpu) arm_cpu_to_apicid[cpu] Sudeep already commented on

Re: [PATCH 10/20] ARM64 / ACPI: Enumerate possible/present CPU set and map logical cpu id to APIC id

2014-01-24 Thread Lorenzo Pieralisi
On Fri, Jan 24, 2014 at 02:37:28PM +, Hanjun Guo wrote: Hi Lorenzo, On 2014?01?22? 23:53, Lorenzo Pieralisi wrote: On Fri, Jan 17, 2014 at 12:25:04PM +, Hanjun Guo wrote: [...] +/* map logic cpu id to physical GIC id */ +extern int arm_cpu_to_apicid[NR_CPUS]; +#define

Re: [PATCH 10/20] ARM64 / ACPI: Enumerate possible/present CPU set and map logical cpu id to APIC id

2014-01-24 Thread Hanjun Guo
On 2014年01月24日 23:35, Lorenzo Pieralisi wrote: On Fri, Jan 24, 2014 at 02:37:28PM +, Hanjun Guo wrote: Hi Lorenzo, On 2014?01?22? 23:53, Lorenzo Pieralisi wrote: On Fri, Jan 17, 2014 at 12:25:04PM +, Hanjun Guo wrote: [...] +/* map logic cpu id to physical GIC id */ +extern int

Re: [PATCH 10/20] ARM64 / ACPI: Enumerate possible/present CPU set and map logical cpu id to APIC id

2014-01-22 Thread Lorenzo Pieralisi
On Fri, Jan 17, 2014 at 12:25:04PM +, Hanjun Guo wrote: [...] +/* map logic cpu id to physical GIC id */ +extern int arm_cpu_to_apicid[NR_CPUS]; +#define cpu_physical_id(cpu) arm_cpu_to_apicid[cpu] Sudeep already commented on this, please update it accordingly. + #else/*

Re: [PATCH 10/20] ARM64 / ACPI: Enumerate possible/present CPU set and map logical cpu id to APIC id

2014-01-20 Thread Hanjun Guo
On 2014年01月18日 01:37, Sudeep Holla wrote: On 17/01/14 12:25, Hanjun Guo wrote: When boot the kernel with MADT, the cpu possible and present sets should be enumerated for later smp initialization. The logic cpu id maps to APIC id (GIC id) is also implemented, it is needed for acpi processor

[PATCH 10/20] ARM64 / ACPI: Enumerate possible/present CPU set and map logical cpu id to APIC id

2014-01-17 Thread Hanjun Guo
When boot the kernel with MADT, the cpu possible and present sets should be enumerated for later smp initialization. The logic cpu id maps to APIC id (GIC id) is also implemented, it is needed for acpi processor drivers. Signed-off-by: Hanjun Guo hanjun@linaro.org ---

Re: [PATCH 10/20] ARM64 / ACPI: Enumerate possible/present CPU set and map logical cpu id to APIC id

2014-01-17 Thread Sudeep Holla
On 17/01/14 12:25, Hanjun Guo wrote: When boot the kernel with MADT, the cpu possible and present sets should be enumerated for later smp initialization. The logic cpu id maps to APIC id (GIC id) is also implemented, it is needed for acpi processor drivers. Signed-off-by: Hanjun Guo