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

[XenPPC] [xenppc-unstable] [XEN][POWERPC] Flush the ERAT very early on secondary processors.



# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 3817c84cb7e81647578042d3e725941ee5f24c51
# Parent  4589b3dec1fd875096858471ae493c708e7049a3
[XEN][POWERPC] Flush the ERAT very early on secondary processors.

This patch solves the problem with the "Synchronizing timebase hang"
that both SMP and "nosmp" users have experienced.  It blows away the
ERAT but performing an SLBIA in the seconadry processor "spinup" code.

Signed-off-by: Amos Waterland <apw@xxxxxxxxxx>
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 xen/arch/powerpc/powerpc64/exceptions.S |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)

diff -r 4589b3dec1fd -r 3817c84cb7e8 xen/arch/powerpc/powerpc64/exceptions.S
--- a/xen/arch/powerpc/powerpc64/exceptions.S   Sat Nov 11 10:30:07 2006 -0500
+++ b/xen/arch/powerpc/powerpc64/exceptions.S   Sat Nov 11 12:04:45 2006 -0500
@@ -564,7 +564,11 @@ _GLOBAL(sleep)
  */    
     .globl spin_start
 spin_start:
-
+    /* We discovered by experiment that the ERAT must be flushed early.  */
+    isync
+    slbia
+    isync
+       
     /* Do a cache flush for our text, in case the loader didn't */
     LOADADDR(r9, _start)
     LOADADDR(r8, _etext)

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel


 


Rackspace

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