WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] limit ACPIID to APICID reset to AMD machines

To: Chris Lalancette <clalance@xxxxxxxxxx>, Mark Langsdorf <mark.langsdorf@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH] limit ACPIID to APICID reset to AMD machines
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Sat, 01 Mar 2008 08:40:25 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 01 Mar 2008 00:40:17 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47C87D52.9030000@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ach7d+TMIy4awudrEdybQwAWy6hiGQ==
Thread-topic: [Xen-devel] [PATCH] limit ACPIID to APICID reset to AMD machines
User-agent: Microsoft-Entourage/11.3.6.070618
On 29/2/08 21:46, "Chris Lalancette" <clalance@xxxxxxxxxx> wrote:

>> 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?

Yes, this is the approach I originally proposed. You are quite correct that
there is no reason to suppose that ACPI IDs will map 1:1 to Xen's concept of
CPU IDs. I will yank the acpiid-apicid patch.

It shouldn't be dependent on dom0-cpufreq by the way, but merely on
dom0-vcpus-pinned.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-devel] [PATCH] limit ACPIID to APICID reset to AMD machines, Keir Fraser <=