Re: [PATCH 06/19] ARM64 / ACPI: Parse FADT table to get PSCI flags for PSCI init

2014-08-20 Thread graeme.greg...@linaro.org
On Wed, Aug 20, 2014 at 04:29:44PM +0100, Catalin Marinas wrote: > On Wed, Aug 20, 2014 at 04:00:28PM +0100, Grant Likely wrote: > > On Thu, 24 Jul 2014 21:00:12 +0800, Hanjun Guo > > wrote: > > > @@ -345,13 +378,19 @@ int __init psci_init(void) > > > const struct of_device_id *matched_np; > >

Re: [PATCH 06/19] ARM64 / ACPI: Parse FADT table to get PSCI flags for PSCI init

2014-08-20 Thread Catalin Marinas
On Wed, Aug 20, 2014 at 04:00:28PM +0100, Grant Likely wrote: > On Thu, 24 Jul 2014 21:00:12 +0800, Hanjun Guo wrote: > > @@ -345,13 +378,19 @@ int __init psci_init(void) > > const struct of_device_id *matched_np; > > psci_initcall_t init_fn; > > > > - np = of_find_matching_node_and_ma

Re: [PATCH 06/19] ARM64 / ACPI: Parse FADT table to get PSCI flags for PSCI init

2014-08-20 Thread Grant Likely
On Thu, 31 Jul 2014 18:23:18 +0800, Hanjun Guo wrote: > On 2014-7-31 12:22, Olof Johansson wrote: > > Hi, > > Hi Olof, > > > > > On Thu, Jul 24, 2014 at 6:00 AM, Hanjun Guo wrote: > >> There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, > >> the former signals to the OS that the ha

Re: [PATCH 06/19] ARM64 / ACPI: Parse FADT table to get PSCI flags for PSCI init

2014-08-20 Thread Grant Likely
On Thu, 24 Jul 2014 21:00:12 +0800, Hanjun Guo wrote: > There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, > the former signals to the OS that the hardware is PSCI compliant. > The latter selects the appropriate conduit for PSCI calls by > toggling between Hypervisor Calls (HVC) and S

Re: [PATCH 06/19] ARM64 / ACPI: Parse FADT table to get PSCI flags for PSCI init

2014-07-30 Thread Hanjun Guo
On 2014-7-30 0:40, Sudeep Holla wrote: [...] >> >> +/* 1 to indicate PSCI is implemented */ >> +int acpi_psci_present; >> + >> +/* 1 to indicate HVC must be used instead of SMC as the PSCI conduit */ >> +int acpi_psci_use_hvc; >> + > > These can be boolean but can be removed IMO, see below. > >>

Re: [PATCH 06/19] ARM64 / ACPI: Parse FADT table to get PSCI flags for PSCI init

2014-07-29 Thread Sudeep Holla
On 24/07/14 14:00, Hanjun Guo wrote: There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, the former signals to the OS that the hardware is PSCI compliant. The latter selects the appropriate conduit for PSCI calls by toggling between Hypervisor Calls (HVC) and Secure Monitor Calls (S

[PATCH 06/19] ARM64 / ACPI: Parse FADT table to get PSCI flags for PSCI init

2014-07-24 Thread Hanjun Guo
There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, the former signals to the OS that the hardware 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 contains such informatio