All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xenproject.org, julien.grall@linaro.org,
	patches@linaro.org, stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH v2 3/6] arm: parse PSCI node from the host device-tree
Date: Wed, 04 Dec 2013 13:37:31 +0100	[thread overview]
Message-ID: <529F220B.9040007@linaro.org> (raw)
In-Reply-To: <1385996716.7108.108.camel@kazak.uk.xensource.com>

On 12/02/2013 04:05 PM, Ian Campbell wrote:
> 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.

Well, it is already, at least kind of.
psci_available means that the DTB contains a valid and sane PSCI node, 
so Xen should use PSCI as the SMP bringup method (that's why _available 
and not _enabled).
And the message was to inform the user that PSCI is _going to be used_ 
for SMP bringup. I should change the wording to be more clear here.
On Linux this kind of information gave me valuable hints on debugging 
SMP issues in the past.

Thanks

>
> Other than those two things this patch looks good. If you change at
> least the second one then:
> Acked-by: Ian Campbell <ian.campbell@citrix.com>
>
> (I leave the first one up to you in case I've simply misparsed it)
>
> Ian.
>
>

  reply	other threads:[~2013-12-04 12:37 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-02 11:08 [PATCH v2 0/6] Andre Przywara
2013-12-02 11:08 ` [PATCH v2 1/6] arm: rename xen/arch/arm/psci.c into vpsci.c Andre Przywara
2013-12-02 13:02   ` Julien Grall
2013-12-02 13:06     ` Ian Campbell
2013-12-02 13:08       ` Julien Grall
2013-12-02 14:53   ` Ian Campbell
2013-12-02 11:08 ` [PATCH v2 2/6] arm: move GIC SGI kicking into separate function Andre Przywara
2013-12-02 13:16   ` Julien Grall
2013-12-02 13:24     ` Andre Przywara
2013-12-02 13:57       ` Julien Grall
2013-12-02 15:01   ` Ian Campbell
2013-12-04 12:15     ` Andre Przywara
2013-12-04 12:28       ` Ian Campbell
2013-12-04 12:33         ` Andre Przywara
2013-12-04 12:35           ` Ian Campbell
2013-12-02 11:08 ` [PATCH v2 3/6] arm: parse PSCI node from the host device-tree Andre Przywara
2013-12-02 13:28   ` Julien Grall
2013-12-02 13:44     ` Andre Przywara
2013-12-02 15:00       ` Julien Grall
2013-12-02 15:14         ` Ian Campbell
2013-12-02 15:05   ` Ian Campbell
2013-12-04 12:37     ` Andre Przywara [this message]
2013-12-04 12:41       ` Ian Campbell
2013-12-04 12:44         ` Andre Przywara
2013-12-02 11:08 ` [PATCH v2 4/6] arm: add a function to invoke the PSCI handler Andre Przywara
2013-12-02 15:07   ` Ian Campbell
2013-12-04 12:25     ` Andre Przywara
2013-12-04 12:32       ` Ian Campbell
2013-12-02 11:08 ` [PATCH v2 5/6] arm32: enable PSCI secondary CPU bringup Andre Przywara
2013-12-02 15:09   ` Ian Campbell
2013-12-02 11:08 ` [PATCH v2 6/6] arm64: " Andre Przywara
2013-12-02 15:11   ` Ian Campbell
2013-12-02 14:52 ` [PATCH v2 0/6] Ian Campbell
2013-12-04 12:16   ` Andre Przywara
2013-12-04 12:29     ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=529F220B.9040007@linaro.org \
    --to=andre.przywara@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=julien.grall@linaro.org \
    --cc=patches@linaro.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.