Re: [PATCH v2 09/18] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2014-08-20 Thread Hanjun Guo
On 2014-8-20 22:56, Catalin Marinas wrote: > On Tue, Aug 19, 2014 at 09:37:34AM +0100, Hanjun Guo wrote: >> On 2014-8-18 22:27, Catalin Marinas wrote: >>> On Mon, Aug 04, 2014 at 04:28:16PM +0100, Hanjun Guo wrote: diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c

Re: [PATCH v2 09/18] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2014-08-20 Thread Catalin Marinas
On Tue, Aug 19, 2014 at 09:37:34AM +0100, Hanjun Guo wrote: > On 2014-8-18 22:27, Catalin Marinas wrote: > > On Mon, Aug 04, 2014 at 04:28:16PM +0100, Hanjun Guo wrote: > >> diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c > >> index e32321c..4007313 100644 > >> --- a/driv

Re: [PATCH v2 09/18] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2014-08-19 Thread Hanjun Guo
On 2014-8-19 2:34, Sudeep Holla wrote: [...] >> >> +#include >> + >> /* Basic configuration for ACPI */ >> #ifdefCONFIG_ACPI >> /* >> @@ -59,6 +61,18 @@ static inline void disable_acpi(void) >> acpi_noirq = 1; >> } >> >> +u32 pack_mpidr_into_32_bits(u64 mpidr); >> + >> +/* >> + *

Re: [PATCH v2 09/18] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2014-08-19 Thread Hanjun Guo
On 2014-8-18 22:27, Catalin Marinas wrote: > On Mon, Aug 04, 2014 at 04:28:16PM +0100, Hanjun Guo wrote: >> diff --git a/arch/arm64/include/asm/acpi.h b/arch/arm64/include/asm/acpi.h >> index 022f4ad..a81898d 100644 >> --- a/arch/arm64/include/asm/acpi.h >> +++ b/arch/arm64/include/asm/acpi.h >> @@

Re: [PATCH v2 09/18] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2014-08-18 Thread Sudeep Holla
On 04/08/14 16:28, 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. Signed-of

[PATCH v2 09/18] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2014-08-04 Thread Hanjun Guo
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. Signed-off-by: Hanjun Guo --- arch/arm64/include