From: Mike Travis <travis@sgi.com>
To: Jack Steiner <steiner@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>, LKML <linux-kernel@vger.kernel.org>,
"H. Peter Anvin" <hpa@zytor.com>,
Thomas Gleixner <tglx@linutronix.de>,
Yinghai Lu <yinghai@kernel.org>,
"Maciej W. Rozycki" <macro@linux-mips.org>
Subject: Re: [PATCH] x86: put trigger in to detect mismatched apic versions.
Date: Mon, 19 Jan 2009 09:08:31 -0800 [thread overview]
Message-ID: <4974B38F.5060503@sgi.com> (raw)
In-Reply-To: <20090118212553.GA164127@sgi.com>
Jack Steiner wrote:
> On Sun, Jan 18, 2009 at 08:08:49PM +0100, Ingo Molnar wrote:
>> * Jack Steiner <steiner@sgi.com> wrote:
>>
>>>> Btw, I checked with our UV architect and the problem is that we need a
>>>> 16 bit apic id which is what caused the MAX_APICS to be bumped to 32k.
>>>> The lower 8 bits are the normal apic id, and the upper bit relate to
>>>> the node. This means cpu 0 on node 0 has the same apic id as cpu 0 on
>>>> node 1, etc. I also asked about whether we could rely on always
>>>> having
>>> Not strictly true. The apicids in the ACPI tables are always globally
>>> unique across the entire system. Because of the size of UV systems, UV
>>> needs 16 bit apicids. This fits in the ACPI apicid id/eid fields.
Ahh, I did mean to say this applied to the lower 8 bits only.
>>>
>>> The actual processor apicid register is unfortunately only 11 bits and
>>> there are some restrictions on the actual values loaded into the apicid
>>> register.
This is for x2apics only, yes?
>>>
>>> If we can put unique ids into the apicid register, we do. If we can't,
>>> the function that reads the apicid will automatically supply the rest of
>>> the bits. Most of the kernel is unaware that the processor apicid
>>> register may have only a subset of the bits that are in the ACPI tables.
>> apicid remapping is something we need/want, so we cannot remove that
>> array. But it would be nice to offload such properties to the percpu area
>> instead - is there any reason why that is hard? The local apic is attached
>> to a CPU in any case. Is there some early init reason that complicates
>> this?
>
> I can't think of any reason why it could not be moved into
> the percpu data area. Mike???
WHich array? There are two now, the x86_cpu_to_apicid and x86_bios_cpu_apicid
that are in the percpu area? (Maybe it's time to find out why there are two. ;-)
Thanks,
Mike
next prev parent reply other threads:[~2009-01-19 17:08 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-16 9:05 [PULL}: latest tip/cpus4096 changes Mike Travis
2009-01-16 9:25 ` Ingo Molnar
2009-01-16 17:53 ` Mike Travis
2009-01-16 22:30 ` Ingo Molnar
2009-01-16 23:22 ` [PATCH] x86: put trigger in to detect mismatched apic versions Mike Travis
2009-01-17 0:06 ` Mike Travis
2009-01-17 3:07 ` Jack Steiner
2009-01-18 19:08 ` Ingo Molnar
2009-01-18 21:25 ` Jack Steiner
2009-01-19 17:08 ` Mike Travis [this message]
2009-01-18 19:04 ` Ingo Molnar
2009-01-16 9:28 ` [PULL}: latest tip/cpus4096 changes Ingo Molnar
2009-01-16 17:54 ` Mike Travis
2009-01-16 9:34 ` Ingo Molnar
2009-01-16 17:08 ` Jeremy Fitzhardinge
2009-01-16 19:55 ` Mike Travis
2009-01-16 21:15 ` Jeremy Fitzhardinge
2009-01-16 17:55 ` Mike Travis
2009-01-16 14:25 ` Ingo Molnar
2009-01-16 18:03 ` Mike Travis
2009-01-16 22:32 ` Ingo Molnar
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=4974B38F.5060503@sgi.com \
--to=travis@sgi.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=macro@linux-mips.org \
--cc=mingo@elte.hu \
--cc=steiner@sgi.com \
--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 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.