[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 3/4] arm: dont give up on EAGAIN if PSCI is defined



Currently the platforms define an empty, zero-returning cpu_up
function to state that they don't need any special treatment beside
the GIC SEV kick to come up.
Allow platforms which only provide PSCI to not define a platform
specific cpu_up() function at all. For this we need to handle the
EAGAIN error code that the platform returns in this case and ignore
that if a PSCI node was found in the DTB.

Signed-off-by: Andre Przywara <andre.przywara@xxxxxxxxxx>
---
 xen/arch/arm/smpboot.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c
index 44326d8..14774c5 100644
--- a/xen/arch/arm/smpboot.c
+++ b/xen/arch/arm/smpboot.c
@@ -412,8 +412,11 @@ int __cpu_up(unsigned int cpu)
 
     if ( rc < 0 )
     {
-        printk("Failed to bring up CPU%d\n", cpu);
-        return rc;
+        if ( rc != -EAGAIN || psci_host_cpu_on_nr == 0 )
+        {
+            printk("Failed to bring up CPU%d\n", cpu);
+            return rc;
+        }
     }
 
     if ( psci_host_cpu_on_nr != 0 )
-- 
1.7.12.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.