From: Ingo Molnar <mingo@elte.hu>
To: Andreas Herrmann <herrmann.der.user@googlemail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
linux-kernel@vger.kernel.org, Yinghai Lu <yinghai@kernel.org>
Subject: Re: x86, amd: Get multi-node CPU info from NodeId MSR instead of PCI config space
Date: Fri, 16 Oct 2009 14:38:53 +0200 [thread overview]
Message-ID: <20091016123853.GA15393@elte.hu> (raw)
In-Reply-To: <20091016122229.GB8387@alberich.amd.com>
* Andreas Herrmann <herrmann.der.user@googlemail.com> wrote:
> Use newly introduced NodeId MSR to get NodeId and number of nodes per
> processor.
What will happen on CPUs that dont have this MSR and got this info from
the PCI config space:
> static void __cpuinit amd_fixup_dcm(struct cpuinfo_x86 *c)
> {
> -#ifdef CONFIG_PCI
> - u32 t, cpn;
> - u8 n, n_id;
> int cpu = smp_processor_id();
>
> /* fixup topology information only once for a core */
> if (cpu_has(c, X86_FEATURE_AMD_DCM))
> return;
>
> - /* check for multi-node processor on boot cpu */
> - t = read_pci_config(0, 24, 3, 0xe8);
> - if (!(t & (1 << 29)))
> return;
>
> set_cpu_cap(c, X86_FEATURE_AMD_DCM);
are there any such CPUs? I.e. we want to know the effect of this patch
on various models of AMD CPUs - is the change really .32 safe? Does it
solve any problem that makes it .32 material versus being for .33?
Ingo
next prev parent reply other threads:[~2009-10-16 12:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-16 12:22 Andreas Herrmann
2009-10-16 12:38 ` Ingo Molnar [this message]
2009-10-16 12:57 ` Andreas Herrmann
2009-10-16 13:00 ` Ingo Molnar
2009-10-16 13:05 ` Andreas Herrmann
2009-10-27 9:33 ` [PATCH RESEND] " Andreas Herrmann
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=20091016123853.GA15393@elte.hu \
--to=mingo@elte.hu \
--cc=herrmann.der.user@googlemail.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=yinghai@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®