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] cpufreq support status

To: Jan Beulich <jbeulich@xxxxxxxxxx>, Mark Langsdorf <mark.langsdorf@xxxxxxx>
Subject: Re: [Xen-devel] cpufreq support status
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 17 Oct 2007 16:22:27 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 17 Oct 2007 08:23:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47164254.76E4.0078.0@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: AcgQ0YZzxMyj2HzEEdyDiAAX8io7RQ==
Thread-topic: [Xen-devel] cpufreq support status
User-agent: Microsoft-Entourage/11.3.6.070618
On 17/10/07 16:11, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:

>> It's definitely k8-powernow only right now. acpi-cpufreq might work if the
>> control register is an i/o port. It won't work if the control register is an
>> MSR, since the MSR would not be whitelisted in the WRMSR emulation in
>> emulate_privileged_op().
> 
> Does ACPI have means to specify MSRs as the access mechanism? I don't
> recall platform specific behavior like this, I thought this was restricted to
> the set of types named ACPI_ADR_SPACE_* in Linux' include/acpi/actypes.h
> (and which already goes beyond what is in ACPI 3.0b).

Well, kind of but not really. ACPI_ADR_SPACE_FIXED_HARDWARE is used, and
this is a cop-out in the ACPI spec which means 'the OS needs extra info from
the CPU vendor'. So typically for power management it means that CPUID must
be mined to discover whether e.g., PowerNow or EnhancedSpeedStep MSRs should
be used.

This effectively means that the range of possible power-management MSRs is
very limited (since they cannot be specified dynamically in the ACPI tables)
and Xen itself should easily be able to probe for and dynamically white-list
available MSRs as appropriate. Probably all that needs to be added is
support for EnhancedSpeedStep MSRs, since we already have PowerNow support.

 -- Keir



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