Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Mar 2002 12:57:56 -0800
From:      Michael Smith <msmith@freebsd.org>
To:        Jeff Roberson <jroberson@chesapeake.net>
Cc:        Doug Rabson <dfr@nlsystems.com>, Jeff Roberson <jeff@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys smp.h src/sys/kern subr_smp.c src/sys/i386/i386 mp_machdep.c src/sys/alpha/alpha mp_machdep.c 
Message-ID:  <200203102058.g2AKvum00955@mass.dis.org>
In-Reply-To: Your message of "Sat, 09 Mar 2002 16:59:01 EST." <20020309165518.W58901-100000@mail.chesapeake.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > This screws up the SMP probe for ia64 because the information which
> > cpu_mp_probe() uses isn't available until after cpu_startup() is called
> > (i.e. SI_SUB_CPU:SI_ORDER_FIRST). The code in the ia64 platform which
> > detects SMP can't (currently) run before the VM system is started...
> 
> Is it possible to do it at all before the VM starts up?  This really
> throws a wrench in my uma plans.  Can you even tell how many cpus you have
> before then?  If you can do this, and force your cpu ids to be virtual and
> non sparse, then you can set mp_maxid to the number of cpus.

The CPU ID array should be "reasonably dense".

On systems where the CPU ID space is sparse, a "dense to sparse" 
translation can be performed relatively cheaply.

You're causing massive (bad) upheaval in the system for the sake of 
supporting a poor design choice.  Instead, just shift the CPU ID paradigm 
back to where it was.

In many cases (IA64 is one of them), CPUs other than the boot processor 
may be detected and started up at any time.  You want a constant that 
allows the maximum number of CPUs supported by the platform, rather than 
to detect the number of CPUs currently on the platform; just pick a sane 
upper bound (eg. 8) and work with it for now.

-- 
To announce that there must be no criticism of the president,
or that we are to stand by the president, right or wrong, is not
only unpatriotic and servile, but is morally treasonable to 
the American public.  - Theodore Roosevelt



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203102058.g2AKvum00955>