Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2001 11:38:21 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        Wilko Bulte <wkb@freebie.demon.nl>, <freebsd-alpha@freebsd.org>
Subject:   Re: 8 CPU SMP attempt
Message-ID:  <Pine.BSF.4.33.0106081137590.23664-100000@herring.nlsystems.com>
In-Reply-To: <15135.56068.265334.399553@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 7 Jun 2001, Andrew Gallatin wrote:

>
> Wilko Bulte writes:
>  >
>  > Possible. I cannot really try as the smallest config would be a single
>  > CPU board housing 2 CPUs. Or do we honor the maxcpus (or whatever it
>  > is called..) SRM variable?
>
> "whatever its called" works, at least on Matt's 4100, so you could see if a
> dual or single processor config boots.  I think its just a bitmask of
> available CPUs on most (all?) platforms.

I use this patch to ignore all except the first secondary CPU.

Index: mp_machdep.c
===================================================================
RCS file: /home/ncvs/src/sys/alpha/alpha/mp_machdep.c,v
retrieving revision 1.20
diff -u -r1.20 mp_machdep.c
--- mp_machdep.c	2001/05/15 23:22:17	1.20
+++ mp_machdep.c	2001/05/22 13:17:13
@@ -363,13 +363,14 @@
 		}
 		all_cpus |= 1 << i;
 		mp_ncpus++;
+		break;
 	}
 	PCPU_SET(other_cpus, all_cpus & ~(1 << boot_cpu_id));

 	for (i = 0; i < hwrpb->rpb_pcs_cnt; i++) {
 		if (i == boot_cpu_id)
 			continue;
-		if (all_cpus & 1 << i)
+		if (all_cpus & 1 << i)
 			smp_start_secondary(i);
 	}
 }

-- 
Doug Rabson				Mail:  dfr@nlsystems.com
					Phone: +44 20 8348 6160



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0106081137590.23664-100000>