From: "Kevin D. Kissell" <kevink@mips.com>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: Linux-MIPS Mailing List <linux-mips@linux-mips.org>
Subject: Re: Dubious MIPS kernel SMP Structures
Date: Wed, 17 Nov 2004 18:07:39 +0100 [thread overview]
Message-ID: <419B855B.1050304@mips.com> (raw)
In-Reply-To: <20041117164629.GA10920@linux-mips.org>
Ralf Baechle wrote:
[snip of lots of cool historical explanations]
> As you found the IP27 code doesn't properly setup these mappings anymore;
> partly because it's SMP initialization code is twisted to the point
> where nobody understands it anymore. Partly also because the systems
> we used as SGI were too large to leave CPU numbers unused :)
>
> Honestly no idea why the Sibyte code is using that mapping stuff. The
> Sibyte firmware is always launching the kernel on CPU 0 anyway so we have
> the case of either only CPU 0 or both CPU 0 and CPU 1 which means the
> mapping would always be a 1:1 mapping.
>
> For most simple SMP or ccNUMA configurations assuming a 1:1 mapping is
> reasonable. For some uniprocessor configurations where a uniprocessor
> kernel is running on a single processor other than processor number 0 on
> a multiprocessor platform this also may be useful.
But my question is really one of why it is that the platform-independent
MIPS kernel code needs/needed to know anything about physical CPU numbers?
Naively, I would have thought that any such mapping would be burried
in the platform code, and that the architectural kernel code would
simply invoke (possibly null) platform-level functions that do whatever
mapping of logical 0...N CPU numbers to bizarre mesh node numbers might
be necessary. As it stands, people who have no need to do mapping (SiByte,
PMC-Sierra, and stuff we're doing at MIPS around MIPS MT) are mindlessly
replicating code to set up 1:1 mappings that will never (in the PMC-Sierra
and MIPS cases) be referenced.
Regards,
Kevin K.
prev parent reply other threads:[~2004-11-17 17:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 15:29 Dubious MIPS kernel SMP Structures Kevin D. Kissell
2004-11-17 16:46 ` Ralf Baechle
2004-11-17 17:07 ` Kevin D. Kissell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=419B855B.1050304@mips.com \
--to=kevink@mips.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox