Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64 sun4v: disable MP suport for now in cpu_boo...



details:   https://anonhg.NetBSD.org/src/rev/bce27cd719de
branches:  trunk
changeset: 808134:bce27cd719de
user:      palle <palle%NetBSD.org@localhost>
date:      Thu May 07 04:03:38 2015 +0000

description:
sun4v: disable MP suport for now in cpu_boot_secondary_processors() - this will allow the kernel to start probing for devices with the primary cpu as the only active cpu

diffstat:

 sys/arch/sparc64/doc/TODO      |  3 ++-
 sys/arch/sparc64/sparc64/cpu.c |  8 ++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r c9e6a6640482 -r bce27cd719de sys/arch/sparc64/doc/TODO
--- a/sys/arch/sparc64/doc/TODO Thu May 07 01:35:35 2015 +0000
+++ b/sys/arch/sparc64/doc/TODO Thu May 07 04:03:38 2015 +0000
@@ -1,4 +1,4 @@
- /* $NetBSD: TODO,v 1.10 2015/02/11 04:47:11 palle Exp $ */
+ /* $NetBSD: TODO,v 1.11 2015/05/07 04:03:38 palle Exp $ */
 
 Things to be done:
 
@@ -24,3 +24,4 @@
 - replace constructs line "wrpr %g0, PSTATE_INTR, %pstate" with ALTERNATE_GOBALS
 - sun4v tsb no need to lock... per cpu... anyway...
 - ci_tsb_desc->td_ctxidx: -1 or 1?
+- MP support - currently bypassed in cpu_boot_secondary_processors() for sun4v
diff -r c9e6a6640482 -r bce27cd719de sys/arch/sparc64/sparc64/cpu.c
--- a/sys/arch/sparc64/sparc64/cpu.c    Thu May 07 01:35:35 2015 +0000
+++ b/sys/arch/sparc64/sparc64/cpu.c    Thu May 07 04:03:38 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.124 2015/03/22 19:37:54 palle Exp $ */
+/*     $NetBSD: cpu.c,v 1.125 2015/05/07 04:03:38 palle Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.124 2015/03/22 19:37:54 palle Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.125 2015/05/07 04:03:38 palle Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -670,6 +670,10 @@
                return;
        }
 
+       /* No MP for SUN4V yet */
+       if (CPU_ISSUN4V)
+               return;
+       
        for (ci = cpus; ci != NULL; ci = ci->ci_next) {
                if (ci->ci_cpuid == cpu_myid())
                        continue;



Home | Main Index | Thread Index | Old Index