public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Mika Penttilä" <mika.penttila@kolumbus.fi>
To: linux-kernel@vger.kernel.org
Cc: William Lee Irwin III <wli@holomorphy.com>
Subject: Numaq in 2.4 and 2.6
Date: Sat, 06 Dec 2003 11:45:51 +0200	[thread overview]
Message-ID: <3FD1A54F.101@kolumbus.fi> (raw)

While comparing numaq support in 2.4.23 and 2.6.0-test11 came accross 
following...

In 2.4.23 mpparse.c we do :
    phys_cpu_present_map |= apicid_to_phys_cpu_present(m->mpc_apicid);

and then launch the cpus using NMI and logical addressing in the order 
phys_cpu_present_map indicates.


In 2.6.0-test11mpparse.c we do :
    tmp = apicid_to_cpu_present(apicid);
    physids_or(phys_cpu_present_map, phys_cpu_present_map, tmp);

where apicid is the result of :
    static inline int generate_logical_apicid(int quad, int phys_apicid)
    {
        return (quad << 4) + (phys_apicid ? phys_apicid << 1 : 1);
    }

and phys_apicid == m->mpc_apicid

Again we lauch the cpus using NMI and logical addressing.


So the the set of apicids fed to do_boot_cpu() in 2.4 and 2.6 must be 
different using the same mp table. And both use logical addressing. 
Seems that 2.4 expects mpc_apicid to be something like (quad | cpu) and 
2.6 only cpu, the quad comes from the translation table.

The conclusion is that the same mp table can't work in 2.4 and 2.6? No?

--Mika



             reply	other threads:[~2003-12-06  9:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-06  9:45 Mika Penttilä [this message]
2003-12-06 11:23 ` Numaq in 2.4 and 2.6 William Lee Irwin III
2003-12-06 12:20   ` Mika Penttilä
     [not found]   ` <3FD1C94C.1020104@kolumbus.fi>
2003-12-06 12:36     ` William Lee Irwin III
2003-12-06 13:09       ` Mika Penttilä
2003-12-06 13:07         ` William Lee Irwin III
2003-12-06 13:23           ` Mika Penttilä
2003-12-06 13:23             ` William Lee Irwin III

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=3FD1A54F.101@kolumbus.fi \
    --to=mika.penttila@kolumbus.fi \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wli@holomorphy.com \
    /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