mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: YhLu <YhLu@tyan.com>
To: Andi Kleen <ak@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: 2.6.12 with dual way dual core ck804 MB
Date: Tue, 21 Jun 2005 14:41:52 -0700	[thread overview]
Message-ID: <3174569B9743D511922F00A0C94314230A40468C@TYANWEB> (raw)

andi,

for the dual way dual core Opteron ck804 MB, the 2.6.12 still has the timing
problem, I  still need to add one printk in amd_detec_cmp after the
phys_proc_id is setup.

Regards

YH

static void __init amd_detect_cmp(struct cpuinfo_x86 *c)
{
#ifdef CONFIG_SMP
        int cpu = smp_processor_id();
        int node = 0;
        unsigned bits;
        if (c->x86_num_cores == 1)
                return;

        bits = 0;
        while ((1 << bits) < c->x86_num_cores)
                bits++;

        /* Low order bits define the core id (index of core in socket) */
        cpu_core_id[cpu] = phys_proc_id[cpu] & ((1 << bits)-1);
        /* Convert the APIC ID into the socket ID */
        phys_proc_id[cpu] >>= bits;
+        printk(KERN_INFO "  CPU %d(%d)  phys_proc_id %d  Core %d\n",
+                        cpu, c->x86_num_cores, phys_proc_id[cpu],
cpu_core_id[cpu]);

             reply	other threads:[~2005-06-21 22:35 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-21 21:41 YhLu [this message]
2005-06-21 22:12 ` Andi Kleen
2005-06-22 22:26   ` Peter Buckingham
2005-06-22 23:10     ` Andi Kleen
2005-06-22 23:31       ` Peter Buckingham
2005-06-21 22:36 ` Andi Kleen
2005-06-21 22:17 YhLu
2005-06-21 22:50 YhLu
2005-06-21 23:55 ` Andi Kleen
2005-06-22 23:37 YhLu
2005-06-22 23:37 ` Andi Kleen
2005-06-23  0:07 YhLu
2005-06-23  0:12 ` Andi Kleen
2005-06-24 18:56 YhLu
2005-06-24 23:42 YhLu
2005-06-24 23:42 ` Andi Kleen
2005-06-24 23:47 YhLu
2005-06-29  2:40 ` Eric W. Biederman
2005-06-30 18:54 ` Andrew Vasquez
2005-06-30 20:54   ` Eric W. Biederman
2005-06-29  1:01 YhLu

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=3174569B9743D511922F00A0C94314230A40468C@TYANWEB \
    --to=yhlu@tyan.com \
    --cc=ak@suse.de \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®