Re: [PATCH v10 10/21] ARM64 / ACPI: Get PSCI flags in FADT for PSCI init

2015-03-16 Thread Lorenzo Pieralisi
On Mon, Mar 16, 2015 at 11:45:25AM +, Hanjun Guo wrote: > On 2015年03月13日 22:51, Lorenzo Pieralisi wrote: > > On Wed, Mar 11, 2015 at 12:39:36PM +, Hanjun Guo wrote: > > > > [...] > > > >> +static void __init psci_0_2_set_functions(void) > >> +{ > >> + pr_info("Using standard PSCI v0.2

Re: [PATCH v10 10/21] ARM64 / ACPI: Get PSCI flags in FADT for PSCI init

2015-03-16 Thread Hanjun Guo
On 2015年03月13日 22:51, Lorenzo Pieralisi wrote: On Wed, Mar 11, 2015 at 12:39:36PM +, Hanjun Guo wrote: [...] +static void __init psci_0_2_set_functions(void) +{ + pr_info("Using standard PSCI v0.2 function IDs\n"); + psci_function_id[PSCI_FN_CPU_SUSPEND] =

Re: [PATCH v10 10/21] ARM64 / ACPI: Get PSCI flags in FADT for PSCI init

2015-03-16 Thread Hanjun Guo
On 2015年03月13日 22:51, Lorenzo Pieralisi wrote: On Wed, Mar 11, 2015 at 12:39:36PM +, Hanjun Guo wrote: [...] +static void __init psci_0_2_set_functions(void) +{ + pr_info(Using standard PSCI v0.2 function IDs\n); + psci_function_id[PSCI_FN_CPU_SUSPEND] =

Re: [PATCH v10 10/21] ARM64 / ACPI: Get PSCI flags in FADT for PSCI init

2015-03-16 Thread Lorenzo Pieralisi
On Mon, Mar 16, 2015 at 11:45:25AM +, Hanjun Guo wrote: On 2015年03月13日 22:51, Lorenzo Pieralisi wrote: On Wed, Mar 11, 2015 at 12:39:36PM +, Hanjun Guo wrote: [...] +static void __init psci_0_2_set_functions(void) +{ + pr_info(Using standard PSCI v0.2 function IDs\n); +

Re: [PATCH v10 10/21] ARM64 / ACPI: Get PSCI flags in FADT for PSCI init

2015-03-13 Thread Lorenzo Pieralisi
On Wed, Mar 11, 2015 at 12:39:36PM +, Hanjun Guo wrote: [...] > +static void __init psci_0_2_set_functions(void) > +{ > + pr_info("Using standard PSCI v0.2 function IDs\n"); > + psci_function_id[PSCI_FN_CPU_SUSPEND] = PSCI_0_2_FN64_CPU_SUSPEND; > + psci_ops.cpu_suspend =

Re: [PATCH v10 10/21] ARM64 / ACPI: Get PSCI flags in FADT for PSCI init

2015-03-13 Thread Lorenzo Pieralisi
On Wed, Mar 11, 2015 at 12:39:36PM +, Hanjun Guo wrote: [...] +static void __init psci_0_2_set_functions(void) +{ + pr_info(Using standard PSCI v0.2 function IDs\n); + psci_function_id[PSCI_FN_CPU_SUSPEND] = PSCI_0_2_FN64_CPU_SUSPEND; + psci_ops.cpu_suspend =

[PATCH v10 10/21] ARM64 / ACPI: Get PSCI flags in FADT for PSCI init

2015-03-11 Thread Hanjun Guo
From: Graeme Gregory There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, the former signals to the OS that the firmware is PSCI compliant. The latter selects the appropriate conduit for PSCI calls by toggling between Hypervisor Calls (HVC) and Secure Monitor Calls (SMC). FADT table

[PATCH v10 10/21] ARM64 / ACPI: Get PSCI flags in FADT for PSCI init

2015-03-11 Thread Hanjun Guo
From: Graeme Gregory graeme.greg...@linaro.org There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, the former signals to the OS that the firmware is PSCI compliant. The latter selects the appropriate conduit for PSCI calls by toggling between Hypervisor Calls (HVC) and Secure Monitor