From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Cc: tim@xen.org, stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH] xen: arm: use physical processor ID (MPIDR) when calling psci CPU_ON
Date: Mon, 14 Jul 2014 19:13:31 +0100 [thread overview]
Message-ID: <53C41DCB.5050608@linaro.org> (raw)
In-Reply-To: <1405354907-3743-1-git-send-email-ian.campbell@citrix.com>
Hi Ian,
On 07/14/2014 05:21 PM, Ian Campbell wrote:
> Xen's logical CPU map can differ from the underlying layout.
>
> Also add an emacs magic block to this file.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Any plan to backport this patch for Xen 4.4? I suspect we have the same
issue on the Versatile Express when PSCI and A7 are used.
> ---
> xen/arch/arm/psci.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/xen/arch/arm/psci.c b/xen/arch/arm/psci.c
> index 25a8697..b6360d5 100644
> --- a/xen/arch/arm/psci.c
> +++ b/xen/arch/arm/psci.c
> @@ -54,7 +54,8 @@ static uint32_t psci_cpu_on_nr;
>
> int call_psci_cpu_on(int cpu)
> {
> - return __invoke_psci_fn_smc(psci_cpu_on_nr, cpu, __pa(init_secondary), 0);
> + return __invoke_psci_fn_smc(psci_cpu_on_nr,
> + cpu_logical_map(cpu), __pa(init_secondary), 0);
> }
>
> int __init psci_init(void)
> @@ -96,3 +97,12 @@ int __init psci_init(void)
>
> return 0;
> }
> +
> +/*
> + * Local variables:
> + * mode: C
> + * c-file-style: "BSD"
> + * c-basic-offset: 4
> + * indent-tabs-mode: nil
> + * End:
> + */
>
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-07-14 18:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-14 16:21 [PATCH] xen: arm: use physical processor ID (MPIDR) when calling psci CPU_ON Ian Campbell
2014-07-14 18:13 ` Julien Grall [this message]
2014-07-15 9:32 ` Ian Campbell
2014-07-18 12:52 ` 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=53C41DCB.5050608@linaro.org \
--to=julien.grall@linaro.org \
--cc=ian.campbell@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.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.