From: Julien Grall <julien.grall@linaro.org>
To: Andre Przywara <andre.przywara@linaro.org>
Cc: xen-devel@lists.xenproject.org, patches@linaro.org,
Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH v2 2/6] arm: move GIC SGI kicking into separate function
Date: Mon, 02 Dec 2013 13:57:15 +0000 [thread overview]
Message-ID: <529C91BB.8000606@linaro.org> (raw)
In-Reply-To: <529C89FF.2020604@linaro.org>
On 12/02/2013 01:24 PM, Andre Przywara wrote:
> On 12/02/2013 02:16 PM, Julien Grall wrote:
>>
>>
>> On 12/02/2013 11:08 AM, Andre Przywara wrote:
>>> Currently we unconditionally send SGIs to all cores on SMP bringup.
>>> PSCI will not need this, so we move this into a function and call it
>>> explicitly from the platforms that need it. This gets us get rid of
>>> the empty cpu_up() platform functions in ARM32 and the comment in
>>> there.
>>>
>>> Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
>>> ---
>>> xen/arch/arm/arm64/smpboot.c | 2 +-
>>> xen/arch/arm/platform.c | 2 +-
>>> xen/arch/arm/platforms/exynos5.c | 11 +----------
>>> xen/arch/arm/platforms/omap5.c | 11 +----------
>>> xen/arch/arm/platforms/vexpress.c | 10 +---------
>>> xen/arch/arm/smpboot.c | 15 ++++++++++-----
>>> xen/include/asm-arm/smp.h | 2 ++
>>> 7 files changed, 17 insertions(+), 36 deletions(-)
>>>
>>
>> [..]
>>
>>> diff --git a/xen/arch/arm/platform.c b/xen/arch/arm/platform.c
>>> index a7f9ee4..056d462 100644
>>> --- a/xen/arch/arm/platform.c
>>> +++ b/xen/arch/arm/platform.c
>>> @@ -112,7 +112,7 @@ int __init platform_cpu_up(int cpu)
>>> if ( platform && platform->cpu_up )
>>> return platform->cpu_up(cpu);
>>>
>>> - return -EAGAIN;
>>> + return -ENODEV;
>>
>> This change seems unrelated to this patch.
>
> That is disputable. If I read the original code directly, the intention
> of EAGAIN was like: "There is no platform specific code, try something
> else." Now with PSCI and the GIC kicking already folded into this
> function, the answer to "no PSCI and no platform code" is simply: I
> don't know how to enable SMP, so there is no SMP => ENODEV.
>
> I can add a comment if this helps.
Thanks for the explanation, I don't think it needs a comment.
Acked-by: Julien Grall <julien.grall@linaro.org>
--
Julien Grall
next prev parent reply other threads:[~2013-12-02 13:57 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 [this message]
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
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=529C91BB.8000606@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=andre.przywara@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.