From: Ian Campbell Subject: Re: [PATCH 1/4] arm: parse PSCI node from the host device-tree Date: Tue, 26 Nov 2013 11:25:17 +0000 Message-ID: <1385465117.23112.44.camel@kazak.uk.xensource.com> References: <1385380964-22230-1-git-send-email-andre.przywara@linaro.org> <1385380964-22230-2-git-send-email-andre.przywara@linaro.org> <1385464352.23112.32.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385464352.23112.32.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andre Przywara Cc: stefano.stabellini@eu.citrix.com, julien.grall@linaro.org, patches@linaro.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2013-11-26 at 11:12 +0000, Ian Campbell wrote: > On Mon, 2013-11-25 at 13:02 +0100, Andre Przywara wrote: > > The availability of a PSCI handler is advertised in the DTB. > > Find and parse the node (described in the Linux device-tree binding) > > and save the function number for bringing up a CPU for later usage. > > We do some sanity checks, especially we deny using HVC as a callling > > Too many l's in callling. > > > method, as it does not make much sense currently under Xen. > > > > Signed-off-by: Andre Przywara > > --- > > xen/arch/arm/smpboot.c | 43 +++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 43 insertions(+) > > > > diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c > > index 6c90fa6..97bd414 100644 > > --- a/xen/arch/arm/smpboot.c > > +++ b/xen/arch/arm/smpboot.c > > @@ -89,6 +89,44 @@ smp_clear_cpu_maps (void) > > cpu_logical_map(0) = READ_SYSREG(MPIDR_EL1) & MPIDR_HWID_MASK; > > } > > > > +uint32_t psci_host_cpu_on_nr; > > Can we make this static and have a global "psci_enable" flag to use > elsewhere please. I think it will have become clear in my comments on patch #0/#2 but also can we have this in a separate psci.c please. It would be useful to have a no-psci command line option too, please. Ian.