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

[Xen-devel] [PATCH] Make cpufreq drivers (powernow-k8) Xen-compatible

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Make cpufreq drivers (powernow-k8) Xen-compatible
From: "Matt T. Yourst" <yourst@xxxxxxxxxx>
Date: Wed, 29 Mar 2006 19:35:30 -0500
Cc: yourst@xxxxxxxxxxxxxxxxx
Delivery-date: Thu, 30 Mar 2006 17:16:15 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
User-agent: KMail/1.8
Hi,

The attached patch fixes the powernow-k8 cpufreq module so it uses DOM0_OP_MSR 
to properly set the K8 voltage/frequency MSRs when running under Xen, instead 
of directly using rdmsr/wrmsr, which were being silently ignored.

The patch will eliminate syslog messages like this:

  kernel: powernow-k8: transition frequency failed
  kernel: powernow-k8: fid trans failed, fid 0xa, curr 0x0

I'm now successfully using Xen on my Athlon 64 laptop with this patch, and the 
CPU really changes frequency/voltage, instead of just pretending to do so 
when wrmsr was ignored without the patch.

Presently it only works on single CPU machines, but you could readily extend 
it to many cores by properly setting the cpumask vector before calling 
DOM0_OP_MSR (note that cpufreq itself still seems to have bugs on the 
dual-core Opterons, so that may not be relevant right now).

The xen_access_msr() function can be easily pasted into the other cpufreq 
drivers, but since I have an Athlon 64, that's the only one I patched.

[I'm not on the list, please forward replies].

- Matt Yourst

-------------------------------------------------------
 Matt T. Yourst               yourst@xxxxxxxxxxxxxxxxx
 Binghamton University, Department of Computer Science
-------------------------------------------------------

Attachment: linux-2.6.16-xen-powernow-k8-msr-fix.diff
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Make cpufreq drivers (powernow-k8) Xen-compatible, Matt T. Yourst <=