From owner-freebsd-alpha Fri Jun 8 3:39:41 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by hub.freebsd.org (Postfix) with ESMTP id 561AD37B401 for ; Fri, 8 Jun 2001 03:39:38 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from [62.49.251.130] (helo=herring.nlsystems.com) by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1) id 158Jg1-000Ay9-0C; Fri, 8 Jun 2001 10:39:37 +0000 Received: from herring (herring [10.0.0.2]) by herring.nlsystems.com (8.11.2/8.11.2) with ESMTP id f58AcL723684; Fri, 8 Jun 2001 11:38:21 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Fri, 8 Jun 2001 11:38:21 +0100 (BST) From: Doug Rabson To: Andrew Gallatin Cc: Wilko Bulte , Subject: Re: 8 CPU SMP attempt In-Reply-To: <15135.56068.265334.399553@grasshopper.cs.duke.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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