From: Peter Jones <pjones@redhat.com>
To: Len Brown <len.brown@intel.com>
Cc: linux-acpi@vger.kernel.org, Prarit Bhargava <prarit@redhat.com>
Subject: RE: Output ACPI info via sysfs
Date: Fri, 12 May 2006 11:06:09 -0400 [thread overview]
Message-ID: <1147446369.3604.20.camel@localhost.localdomain> (raw)
In-Reply-To: <44649D2E.90908@redhat.com>
(sorry for breaking threading, I'm not on the list and this was
forwarded to me)
> >Currently, after booting a system there is no way to tell what
> >hardware
> >is currently in the system. The current output from sysfs only
> >indicates what knowledge the kernel has of the system (ie, is
> >limited by
> >NR_CPUS, etc.). However, during ACPI initialization a lot of data is
> >output to the console about the precise number of CPUs, lapics, etc.
>
> Can you give an example of a person or program that can not
> access a specific piece of information that they need?
Anaconda can't determine the number of CPUs or sockets actually present
(in use or not, enabled or disabled) in a system, which we need to do in
order to determine what kernel we should install.
On x86_64 in RHEL, installation uses the default kernel, which is
compiled with support for 16 CPUs. We can't change that because
changing CONFIG_NR_CPUS changes the module ABI, and breaks modules built
by our ISVs. But on systems with more CPUs than that, our users are ok
with us breaking that ABI to use more CPUs, as long as it does not
effect systems with 16 or fewer processors. So we need to probe the
number of processors and install the appropriate kernel.
I've got code to read the ACPI tables from userland right now, but it
isn't terribly reliable. Some systems lock up if you read the tables
while X is running, and some systems sometimes give erroneous data. In
both cases, it seems the earlier you read the tables the better, and of
course the kernel reads them while it's still only got 1 CPU running,
which is the best possible case. The kernel hasn't triggered any of the
failures we've seen, and since it already has to read the tables, this
would be the best place for userland to get that data.
--
Peter
next parent reply other threads:[~2006-05-12 15:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <44649D2E.90908@redhat.com>
2006-05-12 15:06 ` Peter Jones [this message]
2006-05-15 22:21 Output ACPI info via sysfs Brown, Len
2006-05-16 15:03 ` Peter Jones
-- strict thread matches above, loose matches on Subject: below --
2006-05-15 19:36 Moore, Robert
2006-05-13 4:17 Brown, Len
2006-05-15 18:38 ` Peter Jones
2006-05-11 17:48 Brown, Len
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=1147446369.3604.20.camel@localhost.localdomain \
--to=pjones@redhat.com \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=prarit@redhat.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