From: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
To: Andi Kleen <ak@muc.de>
Cc: YhLu <YhLu@tyan.com>, Ashok Raj <ashok.raj@intel.com>,
linux-kernel@vger.kernel.org, suresh.b.siddha@intel.com
Subject: Re: 2.6.12-rc5 is broken in nvidia Ck804 Opteron MB/with dual cor e dual way
Date: Fri, 3 Jun 2005 11:56:04 -0700 [thread overview]
Message-ID: <20050603115604.B29609@unix-os.sc.intel.com> (raw)
In-Reply-To: <20050603160932.GH1683@muc.de>; from ak@muc.de on Fri, Jun 03, 2005 at 06:09:32PM +0200
On Fri, Jun 03, 2005 at 06:09:32PM +0200, Andi Kleen wrote:
> On Thu, Jun 02, 2005 at 01:42:00PM -0700, YhLu wrote:
> >
> > for Intel it would be
> > c->x86_num_cores is 2 and smp_num_siblings is 2 too....
> > so every core will be HT....
>
> If that was true, then a true DC+HT machine would report 4.
>
> I doubt it is, but Suresh can probably clarify.
On a DC+HT, x86_num_cores will be 2 and kernel will set smp_num_siblings
to 2 (even though number of logical processors per physical package as
seen by cpuid.1.EBX.bits[23:16] will be 4).
Remember, smp_num_siblings in kernel will just represent HT logical siblings.
If CPU is just DC capable, cpuid.1.EBX.bits[23:16] will return '2' and
number of cores computation from cpuid.4.EAX.bits[31:26] will be 2.
And kernel will set x86_num_cores to 2 and smp_num_siblings will be set to 1
If CPU is just HT capable,cpuid.1.EBX.bits[23:16] will return '2' and
number of cores computation from cpuid.4.EAX.bits[31:26] will be 1.
And kernel will set x86_num_cores to 1 and smp_num_siblings will be set to 2.
> > Function 0000_0001[EBX]
> > EBX[23:16] Logical Processor Count. If CPUID Fn[8000_0001, 0000_0001][EDX:
> > HTT, ECX:
> > CMPLegacy] = 11b, then this field indicates the number of CPU cores in the
> > processor.
> > Otherwise, this field is reserved.
> >
> > what is intel value about cpuid(1) ebx [23:16], when the CPU is dual core,
> > but HT is disabled.
> > 1?
If CPU is DC+HT capable, but HT is disabled in bios, cpuid.1.EBX.bits[23:16]
will still be 4 and during bootup, kernel will figure out that no HT
siblings came up and will reset smp_num_siblings to 1.
I am planning to do more cleanup post 2.6.12, so that smp_num_siblings will
be moved to per cpuinfo.
thanks,
suresh
next prev parent reply other threads:[~2005-06-03 18:57 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-02 20:42 2.6.12-rc5 is broken in nvidia Ck804 Opteron MB/with dual cor e dual way YhLu
2005-06-03 16:09 ` Andi Kleen
2005-06-03 18:56 ` Siddha, Suresh B [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-06-02 21:34 YhLu
2005-06-02 21:33 YhLu
2005-06-03 16:12 ` Andi Kleen
2005-06-02 21:15 YhLu
2005-06-02 18:56 YhLu
2005-06-02 19:03 ` Dave Jones
2005-06-03 19:26 ` Siddha, Suresh B
2005-06-02 19:06 ` Ashok Raj
2005-06-02 18:55 YhLu
2005-06-02 3:26 YhLu
2005-06-02 18:51 ` Andi Kleen
2005-06-02 3:16 YhLu
2005-06-02 18:50 ` Andi Kleen
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=20050603115604.B29609@unix-os.sc.intel.com \
--to=suresh.b.siddha@intel.com \
--cc=YhLu@tyan.com \
--cc=ak@muc.de \
--cc=ashok.raj@intel.com \
--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