From: Chris Lalancette <clalance@redhat.com>
To: Mark Langsdorf <mark.langsdorf@amd.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] limit ACPIID to APICID reset to AMD machines
Date: Fri, 29 Feb 2008 16:46:58 -0500 [thread overview]
Message-ID: <47C87D52.9030000@redhat.com> (raw)
In-Reply-To: <200802291302.32010.mark.langsdorf@amd.com>
Mark Langsdorf wrote:
> Testing by Red Hat show that changeset:0034d9389130 causes regressions
> on Intel machines that don't use APIC ID lifting but that do have a
> strange ACPI to APIC numbering.
>
> Modify the patch so that it only applies to AMD machines.
This is still not right, because I saw the odd behavior on AMD machines
from a certain vendor.
>From my understanding though, this is addressing the wrong problem. The
real issue with the 16 core AMD's is that the APICID != CPUID, which it
seems to on all other platforms I've looked at. So the real problem is
not the acpiid_to_apicid array, but rather the cpu_to_apicid array. So
in the default case (cpufreq off, dom0 vcpu unpinned), we want the
current code, while with cpufrequency (cpufreq on, dom0 vcpu pinned) we
want to stick with the tables we parse out of ACPI. It seems to me the
correct fix here would be to actually parse the tables in mpparse-xen.c,
and then do something like:
if (!hypervisor_cpufreq_enabled())
x86_cpu_to_apicid(cpu, cpu)
in smpboot.c (and then drop everything mucking with the
acpiid_to_apicid array). The question, of course, becomes how to
determine that cpufreq is enabled or not. Is there a dom0 platform op
that we could query to find this out, and if not, can we add one?
Chris Lalancette
next prev parent reply other threads:[~2008-02-29 21:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-29 19:02 [PATCH] limit ACPIID to APICID reset to AMD machines Mark Langsdorf
2008-02-29 21:46 ` Chris Lalancette [this message]
2008-03-01 8:40 ` Keir Fraser
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=47C87D52.9030000@redhat.com \
--to=clalance@redhat.com \
--cc=mark.langsdorf@amd.com \
--cc=xen-devel@lists.xensource.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 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.