Re: [PATCH v7 11/17] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2015-01-20 Thread Lorenzo Pieralisi
On Wed, Jan 14, 2015 at 03:04:59PM +, Hanjun Guo wrote: > Introduce a new function map_gicc_mpidr() to allow MPIDRs to be obtained > from the GICC Structure introduced by ACPI 5.1. > > MPIDR is the CPU hardware ID as local APIC ID on x86 platform, so we use > MPIDR not the GIC CPU interface

Re: [PATCH v7 11/17] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2015-01-20 Thread Hanjun Guo
On 2015年01月20日 19:17, Catalin Marinas wrote: On Wed, Jan 14, 2015 at 03:04:59PM +, Hanjun Guo wrote: --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c @@ -64,6 +64,38 @@ static int map_lsapic_id(struct acpi_subtable_header *entry, return 0; } +/* + * On ARM

Re: [PATCH v7 11/17] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2015-01-20 Thread Catalin Marinas
On Wed, Jan 14, 2015 at 03:04:59PM +, Hanjun Guo wrote: > --- a/drivers/acpi/processor_core.c > +++ b/drivers/acpi/processor_core.c > @@ -64,6 +64,38 @@ static int map_lsapic_id(struct acpi_subtable_header > *entry, > return 0; > } > > +/* > + * On ARM platform, MPIDR value is the

Re: [PATCH v7 11/17] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2015-01-20 Thread Catalin Marinas
On Wed, Jan 14, 2015 at 03:04:59PM +, Hanjun Guo wrote: --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c @@ -64,6 +64,38 @@ static int map_lsapic_id(struct acpi_subtable_header *entry, return 0; } +/* + * On ARM platform, MPIDR value is the hardware ID

Re: [PATCH v7 11/17] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2015-01-20 Thread Hanjun Guo
On 2015年01月20日 19:17, Catalin Marinas wrote: On Wed, Jan 14, 2015 at 03:04:59PM +, Hanjun Guo wrote: --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c @@ -64,6 +64,38 @@ static int map_lsapic_id(struct acpi_subtable_header *entry, return 0; } +/* + * On ARM

Re: [PATCH v7 11/17] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2015-01-20 Thread Lorenzo Pieralisi
On Wed, Jan 14, 2015 at 03:04:59PM +, Hanjun Guo wrote: Introduce a new function map_gicc_mpidr() to allow MPIDRs to be obtained from the GICC Structure introduced by ACPI 5.1. MPIDR is the CPU hardware ID as local APIC ID on x86 platform, so we use MPIDR not the GIC CPU interface ID to

Re: [PATCH v7 11/17] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2015-01-15 Thread Mark Langsdorf
On 01/14/2015 09:04 AM, Hanjun Guo wrote: Introduce a new function map_gicc_mpidr() to allow MPIDRs to be obtained from the GICC Structure introduced by ACPI 5.1. MPIDR is the CPU hardware ID as local APIC ID on x86 platform, so we use MPIDR not the GIC CPU interface ID to identify CPUs.

Re: [PATCH v7 11/17] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2015-01-15 Thread Mark Langsdorf
On 01/14/2015 09:04 AM, Hanjun Guo wrote: Introduce a new function map_gicc_mpidr() to allow MPIDRs to be obtained from the GICC Structure introduced by ACPI 5.1. MPIDR is the CPU hardware ID as local APIC ID on x86 platform, so we use MPIDR not the GIC CPU interface ID to identify CPUs.