From: Brijesh Singh <brijeshkumar.singh@amd.com>
To: xen-devel@lists.xen.org
Cc: ian.campbell@citrix.com, julien.grall@citrix.com,
stefano.stabellini@citrix.com, suravee.suthikulpanit@amd.com,
xen-arm@lists.xen.org, Brijesh Singh <brijeshkumar.singh@amd.com>
Subject: [PATCH] xen:arm: use SMC64 version function id on ARM64
Date: Fri, 2 Oct 2015 16:36:07 -0500 [thread overview]
Message-ID: <1443821767-20349-1-git-send-email-brijeshkumar.singh@amd.com> (raw)
On AMD Seattle, Xen failed to boot secondary CPU's. This patch fixes it.
As per PSCI spec, If CPU_ON entry_point_address is 64-bit then function id parameter should be set to SMC64 version (0xC4000003).
Signed-off-by: Brijesh Singh <brijeshkumar.singh@amd.com>
---
xen/arch/arm/psci.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/xen/arch/arm/psci.c b/xen/arch/arm/psci.c
index 7ad6a43..117c6a9 100644
--- a/xen/arch/arm/psci.c
+++ b/xen/arch/arm/psci.c
@@ -116,7 +116,11 @@ int __init psci_init_0_2(void)
return -EOPNOTSUPP;
}
+#ifdef CONFIG_ARM_64
+ psci_cpu_on_nr = PSCI_0_2_FN64_CPU_ON;
+#else
psci_cpu_on_nr = PSCI_0_2_FN_CPU_ON;
+#endif
printk(XENLOG_INFO "Using PSCI-0.2 for SMP bringup\n");
--
1.9.1
next reply other threads:[~2015-10-02 21:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-02 21:36 Brijesh Singh [this message]
2015-10-02 22:38 ` [PATCH] xen:arm: use SMC64 version function id on ARM64 Julien Grall
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=1443821767-20349-1-git-send-email-brijeshkumar.singh@amd.com \
--to=brijeshkumar.singh@amd.com \
--cc=ian.campbell@citrix.com \
--cc=julien.grall@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=xen-arm@lists.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).