From: Alex Chiang <achiang@hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] ia64: /proc/cpuinfo "physical id" field cleanups
Date: Tue, 09 Oct 2007 13:25:45 +0000 [thread overview]
Message-ID: <20071009132545.GC7493@ldl.fc.hp.com> (raw)
In-Reply-To: <20070928010850.GG16444@ldl.fc.hp.com>
Hi Tony,
Thanks for looking at this.
> > - expose "physical id" field, even on CPUs that are not
> > multi-core / multi-threaded. Now we know what sockets
> > Madisons live in too.
>
> This sounds like a good idea. But this patch didn't work for me
> to achieve that on my HP 2620. /proc/cpuinfo with this patch looks
> like this:
>
> processor : 0
> ...
> physical id: 4294967295
>
> processor : 1
> ...
> physical id: 4294967295
>
>
> So both my Madison cpus are apparently sharing the same socket! That
> big decimal number is just "-1" printed as an unsigned.
I spent some time looking at this and also talked with our
low-end firmware guys, and think I understand what's going on
now.
First, on HP low-end platforms, like your rx2620,
SAL_PHYSICAL_ID_INFO is hard coded to return 0. I missed this
because I tested on low-end and high-end with Montes, and on
high-end with Madisons. I must have missed low-end Madison based
platforms. :(
Based on that information, I will have to rethink my approach.
Second, SAL_PHYSICAL_ID_INFO did not show up until SAL 3.2, which
I think is why you got -1. On my rx2620, I have a relatively
modern firmware which does have the SAL call, and I get 0 for
each physical id (with Madisons).
In identify_cpu(), we initialize c->socket_id to -1 because we
expect that value to get overwritten later, in identify_siblings().
If you look at my patch, identify_siblings() calls
ia64_sal_physical_id_info(), and then returns if we get a
failure.
You should have seen this printk:
printk(KERN_ERR "ia64_sal_pltid failed with %ld\n", status);
Can you verify that you saw that in your dmesg? I think the
status should be -1, due to not-implemented.
Thanks.
/ac
next prev parent reply other threads:[~2007-10-09 13:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-28 1:08 [PATCH] ia64: /proc/cpuinfo "physical id" field cleanups Alex Chiang
2007-10-05 21:48 ` Alex Chiang
2007-10-08 18:27 ` Luck, Tony
2007-10-09 13:25 ` Alex Chiang [this message]
2007-10-09 16:07 ` Luck, Tony
2007-10-19 17:03 ` Alex Chiang
2007-10-19 18:19 ` Luck, Tony
2007-10-19 19:20 ` Alex Chiang
2007-10-24 17:26 ` Alex Chiang
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=20071009132545.GC7493@ldl.fc.hp.com \
--to=achiang@hp.com \
--cc=linux-ia64@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.