From: Ian Campbell Subject: Re: [PATCH v2 3/6] arm: parse PSCI node from the host device-tree Date: Mon, 2 Dec 2013 15:05:16 +0000 Message-ID: <1385996716.7108.108.camel@kazak.uk.xensource.com> References: <1385982538-17855-1-git-send-email-andre.przywara@linaro.org> <1385982538-17855-4-git-send-email-andre.przywara@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VnV3s-0004WK-Mn for xen-devel@lists.xenproject.org; Mon, 02 Dec 2013 15:05:24 +0000 In-Reply-To: <1385982538-17855-4-git-send-email-andre.przywara@linaro.org> 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: xen-devel@lists.xenproject.org, julien.grall@linaro.org, patches@linaro.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, 2013-12-02 at 12:08 +0100, Andre Przywara wrote: > +int __init psci_init(void) > +{ [...] > + /* Since Xen runs in HYP all of the time, it does not make sense to > + * let it call into HYP for PSCI handling, since the handler won't > + * just be there. So bail out with an error if "smc" is not used. s/won't just/just won't/. > diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c > index 52cef30..3a9be90 100644 > --- a/xen/arch/arm/smpboot.c > +++ b/xen/arch/arm/smpboot.c > [...] > @@ -105,6 +106,12 @@ void __init smp_init_cpus(void) > bool_t bootcpu_valid = 0; > int rc; > > + if ( psci_init() == 0 ) > + { > + printk(XENLOG_INFO "Using PSCI for SMP bringup\n"); > + psci_available = 1; IMHO this log + flag twiddling belong as the last act of psci init. Other than those two things this patch looks good. If you change at least the second one then: Acked-by: Ian Campbell (I leave the first one up to you in case I've simply misparsed it) Ian.